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