2 # Purpose: config 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: Fre Sep 28 23:19:52 CEST 2007 [mika]
7 ################################################################################
9 backtick 1 60 60 /usr/bin/cpu-screen
10 backtick 2 60 60 /usr/bin/yacpi -p -t
11 caption always "%{rw}%n%f %t %{wk} | %?%-Lw%?%{bw}%n*%f %t%?(%u)%?%{wk}%?%+Lw%?"
12 hardstatus alwayslastline "%{+b kr}$USER@%{kw}%H | %{ky}(load: %l |%{kr} cpu: %1` | %{kG}acpi: %2`) %-21=%{kw}%D %d.%m.%Y %0c"
15 autodetach on # default: on
16 crlf off # default: off
17 deflogin off # default: on
18 # defsilence off # default: off
19 # hardcopy_append on # default: off
20 hardcopy_append off # default: off
21 nethack on # default: off
22 # don't display the copyright page
23 startup_message off # default: on
24 # no annoying audible bell, please
27 defscrollback 1000 # default: 100
28 # msgminwait 3 # default: 1
29 silencewait 15 # default: 30
31 hardcopydir $HOME/.hardcopy
33 # fix the "screen.linux" terminal problem (see Debian BTS #238355 + #239776)
38 # "sorendition": set the colors for
39 # the "messages" and "text marking"
40 # (ie text you mark in copy mode):
41 sorendition 10 99 # default!
43 # use %n to display the window number and %t for its title:
44 activity "activity in %n (%t) [%w:%s]~"
46 # pass on the "beep" (CTRL-G) by adding a '~':
47 bell "bell in %n (%t) [%w:%s]~"
49 # pow_detach_msg: Message shown when session
50 # gets power detached.
51 pow_detach_msg "Screen session of \$LOGNAME \$:cr:\$:nl:ended."
53 # vbell_msg: Message shown when the
54 # "virtual bell" rings.
58 # Remove some default key bindings by binding
59 # them to "nothing" (empty right-hand-side):
60 # bind . dumptermcap # default
65 # 040126 To be able to select windows with n > 9 ->
66 # press "C-a - #" instead of just "C-a #"
67 bind - command -c select_1n
68 bind -c select_1n 0 select 10
69 bind -c select_1n 1 select 11
70 bind -c select_1n 2 select 12
71 bind -c select_1n 3 select 13
72 bind -c select_1n 4 select 14
73 bind -c select_1n 5 select 15
74 bind -c select_1n 6 select 16
75 bind -c select_1n 7 select 17
76 bind -c select_1n 8 select 18
77 bind -c select_1n 9 select 19
78 bind -c select_1n - command -c select_2n
79 bind -c select_2n 0 select 20
80 bind -c select_2n 1 select 21
81 bind -c select_2n 2 select 22
82 bind -c select_2n 3 select 23
83 bind -c select_2n 4 select 24
84 bind -c select_2n 5 select 25
85 bind -c select_2n 6 select 26
86 bind -c select_2n 7 select 27
87 bind -c select_2n 8 select 28
88 bind -c select_2n 9 select 29
89 bind -c select_2n - select -
91 # Use the function keys F11 and F12 to cycle backwards/forwards in
92 # the list of existing windows:
96 # remove some stupid / dangerous key bindings
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: