1 # Filename: /etc/grml/screenrc
2 # Purpose: main configuration file for GNU screen
3 # Authors: grml-team (grml.org), (c) Michael Prokop <mika@grml.org>
4 # Bug-Reports: see http://grml.org/bugs/
5 # License: This file is licensed under the GPL v2.
6 # Latest change: Sam Sep 29 00:11:22 CEST 2007 [mika]
7 ################################################################################
9 backtick 1 0 60 /usr/bin/cpu-screen
10 backtick 2 0 60 /usr/bin/ip-screen
11 caption always "%{+b rk}$USER@%{wk}%H | %{yk}(load: %l |%{rk} cpu: %1` | %{Gk}net: %2`) %-21=%{wk}%D %d.%m.%Y %0c"
12 hardstatus alwayslastline "%{wr}%n%f %t %{kw} | %?%-Lw%?%{wb}%n*%f %t%?(%u)%?%{kw}%?%+Lw%? %{wk}"
14 # switch order of caption and hardstatus:
15 # hardstatus alwayslastline "%{+b rk}$USER@%{wk}%H | %{yk}(load: %l |%{rk} cpu: %1` | %{Gk}net: %2`) %-21=%{wk}%D %d.%m.%Y %0c"
16 # caption always "%{wr}%n%f %t %{kw} | %?%-Lw%?%{wb}%n*%f %t%?(%u)%?%{kw}%?%+Lw%? %{wk}"
19 autodetach on # default: on
20 crlf off # default: off
21 deflogin off # default: on
22 # defsilence off # default: off
23 # hardcopy_append on # default: off
24 hardcopy_append off # default: off
25 nethack on # default: off
26 # don't display the copyright page
27 startup_message off # default: on
28 # no annoying audible bell, please
31 defscrollback 1000 # default: 100
32 # msgminwait 3 # default: 1
33 silencewait 15 # default: 30
35 hardcopydir $HOME/.hardcopy
37 # fix the "screen.linux" terminal problem (see Debian BTS #238355 + #239776)
42 # "sorendition": set the colors for
43 # the "messages" and "text marking"
44 # (ie text you mark in copy mode):
45 sorendition 10 99 # default!
47 # use %n to display the window number and %t for its title:
48 activity "activity in %n (%t) [%w:%s]~"
50 # pass on the "beep" (CTRL-G) by adding a '~':
51 bell "bell in %n (%t) [%w:%s]~"
53 # pow_detach_msg: Message shown when session
54 # gets power detached.
55 pow_detach_msg "Screen session of \$LOGNAME \$:cr:\$:nl:ended."
57 # vbell_msg: Message shown when the
58 # "virtual bell" rings.
62 # Remove some default key bindings by binding
63 # them to "nothing" (empty right-hand-side):
64 # bind . dumptermcap # default
69 # 040126 To be able to select windows with n > 9 ->
70 # press "C-a - #" instead of just "C-a #"
71 bind - command -c select_1n
72 bind -c select_1n 0 select 10
73 bind -c select_1n 1 select 11
74 bind -c select_1n 2 select 12
75 bind -c select_1n 3 select 13
76 bind -c select_1n 4 select 14
77 bind -c select_1n 5 select 15
78 bind -c select_1n 6 select 16
79 bind -c select_1n 7 select 17
80 bind -c select_1n 8 select 18
81 bind -c select_1n 9 select 19
82 bind -c select_1n - command -c select_2n
83 bind -c select_2n 0 select 20
84 bind -c select_2n 1 select 21
85 bind -c select_2n 2 select 22
86 bind -c select_2n 3 select 23
87 bind -c select_2n 4 select 24
88 bind -c select_2n 5 select 25
89 bind -c select_2n 6 select 26
90 bind -c select_2n 7 select 27
91 bind -c select_2n 8 select 28
92 bind -c select_2n 9 select 29
93 bind -c select_2n - select -
95 # Use the function keys F11 and F12 to cycle backwards/forwards in
96 # the list of existing windows:
100 # remove some stupid / dangerous key bindings
114 bind G screen -t 'google' w3m www.google.com
115 bind H screen -t HeiseTicker w3m www.heise.de/newsticker/pda/data/paket4.html
117 # Paste - use 'P' instead of ']':
118 # bind P # unbound by default
122 # Prepend/append register [/] to the paste if ^a^] is pressed.
123 # This lets me have autoindent mode in vi.
124 # register [ "\033:se noai\015a"
125 # register ] "\033:se ai\015a"
128 # X - a fast way to lock the current screen.
131 # 030511 Workaround for stupid machines without xmodmap ;-)
132 bindkey -t °a stuff "ä"
133 bindkey -t °A stuff "Ä"
134 bindkey -t °o stuff "ö"
135 bindkey -t °O stuff "Ö"
136 bindkey -t °u stuff "ü"
137 bindkey -t °U stuff "Ü"
138 bindkey -t °s stuff "ß"
142 # change back to showing messages
143 # for duration of two seconds:
146 # To get screen to add lines to xterm's scrollback buffer, uncomment the
147 # following termcapinfo line which tells xterm to use the normal screen buffer
148 # (which has scrollback), not the alternate screen buffer.
149 termcapinfo xterm|xterms|xs|rxvt ti@:te@