1 #
  2 #  NOTE: when using rxvt, use the option `-is +sk', allowing Shift-PageUP/DOWN to work
  3 #        (or use according resouces)
  4 #
  5 # ------------------------------------------------------------------------------
  6 # STARTUP SCREENS
  7 # ------------------------------------------------------------------------------
  8 screen               1
  9 screen               2
 10 screen               3
 11 screen    -t elinks  4 elinks
 12 screen -M -t mutt    5 mutt
 13 # keys 6 and 7 are too hard to reach :P
 14 #screen    -t irc     8 irssi
 15 #screen  -t mixer 9 aumix
 16 select 1
 17 
 18 # ------------------------------------------------------------------------------
 19 # TERMINAL/SCREEN SETTINGS
 20 # ------------------------------------------------------------------------------
 21 
 22 startup_message off
 23 
 24 deflogin on
 25 autodetach off
 26 
 27 nethack on            # (Silly) messages
 28 
 29 msgminwait 0          # the first message is ignored.
 30 msgwait 10            # the last message is displayed for 10 seconds or
 31                       # until keypress.
 32 hardstatus on
 33 hardstatus alwayslastline
 34 hardstatus string "%{.1099} %-w%{.bg}%n %t%{-}%+w %=%H %c:%s "
 35 #hardstatus lastline "%-Lw%{= BW}%50>%n%f* %t%{-}%+Lw%<"
 36 
 37 # Make screen messages stand out a little more - black on bright green.
 38 sorendition "+b kG"
 39 
 40 # Variants on Sven's custom messages.
 41 activity "%c activity -> %n%f %t"
 42 bell "%c:bell -> %n%f %t^G"
 43 vbell off
 44 vbell_msg " *beep* "
 45 
 46 # Keep dead windows around until I tell them to exit.
 47 zombie cr
 48 
 49 # And show the command for the windows when they're resurrected.
 50 verbose on
 51 
 52 # set these terminals up to be 'optimal' instead of vt100
 53 #termcapinfo xterm*|linux*|rxvt*|Eterm* OP
 54 
 55 # scrollback
 56 defscrollback 5000
 57 
 58 # If a window goes unresponsive, don't block the whole session waiting for it.
 59 nonblock on
 60 
 61 # Window numbering starts at 1, not 0.
 62 bind c screen 1
 63 bind 0 select 10
 64 
 65 # see at EOF
 66 #caption always "%?%F%{-b bc}%:%{-b bb}%?%C|%D|%M %d|%H%?%F%{+u wb}%? %L=%-Lw%45>%{+b by}%n%f* %t%{-}%+Lw%-0<"
 67 
 68 # ------------------------------------------------------------------------------
 69 # SCREEN KEYBINDINGS
 70 # ------------------------------------------------------------------------------
 71 
 72 escape Rr
 73 
 74 # Remove some stupid / dangerous key bindings
 75 #bind ^k
 76 #bind L
 77 #bind ^\
 78 # Make them better
 79 #bind \\ quit
 80 #bind K kill
 81 #bind I login on
 82 #bind O login off
 83 #bind } history
 84 
 85 # An example of a "screen scraper" which will launch urlview on the current
 86 # screen window
 87 #
 88 #bind ^B eval "hardcopy_append off" "hardcopy -h $HOME/.screen-urlview" "screen urlview $HOME/.screen-urlview"
 89 
 90 # k1 is f1; ie f1 jumps to window 1
 91 #bindkey -k k4  quit
 92 bindkey -k k5  next
 93 bindkey -k k6  select 4
 94 bindkey -k k7  select 5
 95 bindkey -k k8  quit
 96 bind  y  quit # allows to just double click y for quitting
 97 
 98 # Using tab to move around regions gets annoying.  These help.
 99 bind ^j focus down
100 bind ^k focus up
101 bind ^t focus top
102 bind ^b focus bottom
103 
104 
105 # ------------------------------------------------------------------------------
106 # caption description:
107 # ------------------------------------------------------------------------------
108 #
109 # caption always "%?%F%{-b bc}%:%{-b bb}%?%C|%D|%M %d|%H%?%F%{+u wb}%? %L=%-Lw%45>%{+b by}%n%f* %t%{-}%+Lw%-0<"
110 # 
111 # Anything I don't describe is treated literally.
112 # 
113 # %?          - Start of a conditional statement.
114 #  %F         - Use this part of the statement if the window has focus (i.e. it
115 #               is the only window or the currently active one).
116 #  %{-b bc}   - Turn off bold, blue foreground, cyan background.
117 # %:          - else
118 #  %{-b bb}   - Turn off bold, blue foreground, blue background (this obscures
119 #               the text on non-focused windows and just gives a blue line).
120 # %?          - End conditional statement.
121 #  %C         - time (hh:mm, leading space) in 12 hour format
122 #  %D         - Three-letter day-of-week appreviation
123 #  %M         - Three-letter month appreviation
124 #  %d         - Day of the month
125 #  %H         - hostname
126 #  %?         - Start of conditional statement.
127 #   %F        - Use this part of the statement if the window has focus.
128 #   %{+u wb}  - underlined, white foreground, blue background
129 #  %?         - End conditional (if not focused, text remaind blue on blue).
130 #    %L=      - truncation/padding point.  With the 'L' qualifier, basically
131 #               just acts as a reference point.  Further truncation/padding is
132 #               done relative to here, not the beginning of the string
133 #    %-Lw     - window list up to but not including the current window (-),
134 #               show window flags (L)
135 #    %45>     - truncation/padding marker; place this point about 45% of the
136 #               way into the display area (45)
137 #    %{+b by} - add bold (still underlined from before), blue foreground,
138 #               yellow background
139 #      %n     - number of the current window
140 #      %f     - flags for current window
141 #      %t     - title of current window
142 #    %{-}     - undo last color change (so now we're back to underlined white
143 #               on blue)  (technically, this is a pop; a second invocation
144 #               would drop things back to unadorned blue on cyan)
145 #    %+Lw     - window list from the next window on (-), show window flags (L)
146 #    %-0<     - truncation/padding point.  Place this point zero spaces (0)
147 #               from the right margin (-).