Skip to content

Instantly share code, notes, and snippets.

@gtanner
Created July 10, 2012 14:22

Revisions

  1. gtanner created this gist Jul 10, 2012.
    40 changes: 40 additions & 0 deletions .screenrc
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,40 @@
    startup_message off
    vbell off
    defscrollback 512
    shell -$SHELL
    shelltitle sh
    autodetach on

    # enable SHIFT-PGUP / SHIFT-PGDOWN scroll
    termcapinfo rxvt ti@:te@

    # change window with ALT-Q ALT-W
    bindkey "^[q" prev
    bindkey "^[w" next

    # F1-F4 switch
    # bindkey -k k1 select 1
    # bindkey -k k2 select 2
    # bindkey -k k3 select 3
    # bindkey -k k4 select 4

    # unbind defaults
    bind ^m
    bind ^i
    bind ^f
    bind ^s
    bind ^w

    # keyboard shortcuts
    bind ^m screen -t mpd ncmpc # C-a-m
    bind ^i screen -t icq centericq # C-a-i
    bind ^f screen -t fish fish # C-a-f
    bind ^s screen -t bge0 slurm -i bge0 # C-a-s
    bind ^w screen -t wpi0 slurm -i wpi0 # C-a-w

    # status
    hardstatus alwayslastline '%{= M} %{= G} %l %= %{= w}%-w%{+b r}%n*%t%{-b r}%{w}%+w %= %{c}%d %D %{B}%c '

    # add CPU idle/sustem/user/interrupt stats
    backtick 100 5 5 tail -1 /var/tmp/mprem.stats.top
    caption always '%{= wk} %200` %= %100` %='