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 ################################################################################
8 backtick 1 0 60 /usr/bin/cpu-screen
9 backtick 2 0 60 /usr/bin/ip-screen
10 caption always "%{+b rk}$USER@%{wk}%H | %{yk}(load: %l |%{rk} cpu: %1` | %{Gk}net: %2`) %-21=%{wk}%D %d.%m.%Y %0c"
11 hardstatus alwayslastline "%{wr}%n%f %t %{kw} | %?%-Lw%?%{wb}%n*%f %t%?(%u)%?%{kw}%?%+Lw%? %{wk}"
13 # switch order of caption and hardstatus:
14 # hardstatus alwayslastline "%{+b kr}$USER@%{kw}%H | %{ky}(load: %l |%{kr} cpu: %1` | %{kG}net: %2`) %-21=%{kw}%D %d.%m.%Y %0c"
15 # caption always "%{rw}%n%f %t %{wk} | %?%-Lw%?%{bw}%n*%f %t%?(%u)%?%{wk}%?%+Lw%? %{wk}"
18 autodetach on # default: on
19 crlf off # default: off
20 deflogin off # default: on
21 # defsilence off # default: off
22 # hardcopy_append on # default: off
23 hardcopy_append off # default: off
24 nethack on # default: off
25 # don't display the copyright page
26 startup_message off # default: on
27 # no annoying audible bell, please
30 defscrollback 1000 # default: 100
31 # msgminwait 3 # default: 1
32 silencewait 15 # default: 30
34 hardcopydir $HOME/.hardcopy
36 # fix the "screen.linux" terminal problem (see Debian BTS #238355 + #239776)
41 # "sorendition": set the colors for
42 # the "messages" and "text marking"
43 # (ie text you mark in copy mode):
44 sorendition 10 99 # default!
46 # use %n to display the window number and %t for its title:
47 activity "activity in %n (%t) [%w:%s]~"
49 # pass on the "beep" (CTRL-G) by adding a '~':
50 bell "bell in %n (%t) [%w:%s]~"
52 # pow_detach_msg: Message shown when session
53 # gets power detached.
54 pow_detach_msg "Screen session of \$LOGNAME \$:cr:\$:nl:ended."
56 # vbell_msg: Message shown when the
57 # "virtual bell" rings.
61 # Remove some default key bindings by binding
62 # them to "nothing" (empty right-hand-side):
63 # bind . dumptermcap # default
72 # 040126 To be able to select windows with n > 9 ->
73 # press "C-a - #" instead of just "C-a #"
74 bind - command -c select_1n
75 bind -c select_1n 0 select 10
76 bind -c select_1n 1 select 11
77 bind -c select_1n 2 select 12
78 bind -c select_1n 3 select 13
79 bind -c select_1n 4 select 14
80 bind -c select_1n 5 select 15
81 bind -c select_1n 6 select 16
82 bind -c select_1n 7 select 17
83 bind -c select_1n 8 select 18
84 bind -c select_1n 9 select 19
85 bind -c select_1n - command -c select_2n
86 bind -c select_2n 0 select 20
87 bind -c select_2n 1 select 21
88 bind -c select_2n 2 select 22
89 bind -c select_2n 3 select 23
90 bind -c select_2n 4 select 24
91 bind -c select_2n 5 select 25
92 bind -c select_2n 6 select 26
93 bind -c select_2n 7 select 27
94 bind -c select_2n 8 select 28
95 bind -c select_2n 9 select 29
96 bind -c select_2n - select -
98 # Use the function keys F11 and F12 to cycle backwards/forwards in
99 # the list of existing windows:
110 bind G screen -t 'google' w3m www.google.com
111 bind H screen -t HeiseTicker w3m www.heise.de/newsticker/pda/data/paket4.html
113 # Paste - use 'P' instead of ']':
114 # bind P # unbound by default
118 # Prepend/append register [/] to the paste if ^a^] is pressed.
119 # This lets me have autoindent mode in vi.
120 # register [ "\033:se noai\015a"
121 # register ] "\033:se ai\015a"
124 # X - a fast way to lock the current screen.
127 # 030511 Workaround for stupid machines without xmodmap ;-)
128 bindkey -t °a stuff "ä"
129 bindkey -t °A stuff "Ä"
130 bindkey -t °o stuff "ö"
131 bindkey -t °O stuff "Ö"
132 bindkey -t °u stuff "ü"
133 bindkey -t °U stuff "Ü"
134 bindkey -t °s stuff "ß"
138 # change back to showing messages
139 # for duration of two seconds:
142 # To get screen to add lines to xterm's scrollback buffer, uncomment the
143 # following termcapinfo line which tells xterm to use the normal screen buffer
144 # (which has scrollback), not the alternate screen buffer.
145 termcapinfo xterm|xterms|xs|rxvt ti@:te@
151 ## END OF FILE #################################################################