zshrc: add (deactivated) MANWIDTH=80; fix colorschema in screenrc
[grml-etc-core.git] / etc / grml / screenrc
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: YDATE [mika]
7 ################################################################################
8
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}"
13
14 # switch order of caption and hardstatus:
15 #  hardstatus alwayslastline "%{+b kr}$USER@%{kw}%H | %{ky}(load: %l |%{kr} cpu: %1` | %{kG}net: %2`)  %-21=%{kw}%D %d.%m.%Y %0c"
16 #  caption always "%{rw}%n%f %t %{wk} | %?%-Lw%?%{bw}%n*%f %t%?(%u)%?%{wk}%?%+Lw%? %{wk}"
17
18 # detach on hangup
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
29   vbell                 on
30
31   defscrollback         1000            # default: 100
32 # msgminwait            3               # default: 1
33   silencewait           15              # default: 30
34
35   hardcopydir           $HOME/.hardcopy
36
37 # fix the "screen.linux" terminal problem (see Debian BTS #238355 + #239776)
38 #  term linux
39
40   shell                 /bin/zsh
41
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!
46
47 # use %n to display the window number and %t for its title:
48   activity              "activity in %n (%t) [%w:%s]~"
49
50 # pass on the "beep" (CTRL-G) by adding a '~':
51   bell                  "bell     in %n (%t) [%w:%s]~"
52
53 # pow_detach_msg:       Message shown when session
54 #                       gets power detached.
55   pow_detach_msg "Screen session of \$LOGNAME \$:cr:\$:nl:ended."
56
57 # vbell_msg:            Message shown when the
58 #                       "virtual bell" rings.
59   vbell_msg             " *beep* "
60
61 # Key bindings
62 # Remove some default key bindings by binding
63 # them to "nothing" (empty right-hand-side):
64 # bind .  dumptermcap # default
65   bind .
66   bind ^\
67   bind \\
68
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 -
94
95 # Use the function keys F11 and F12 to cycle backwards/forwards in
96 # the list of existing windows:
97 #  bindkey -k F1 prev
98 #  bindkey -k F2 next
99
100 # remove some stupid / dangerous key bindings
101   bind k
102   bind ^k
103   bind .
104   bind ^\
105   bind \\
106   bind ^h
107   bind h  hardcopy
108 # make them better
109   bind 'K' kill
110   bind 'I' login on
111   bind 'O' login off
112   bind '}' history
113
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
116
117 # Paste - use 'P' instead of ']':
118 # bind P # unbound by default
119   bind P paste .
120
121 # Yet another hack:
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"
126 #  bind ^] paste [.]
127
128 #      X - a fast way to lock the current screen.
129   bind X lockscreen
130
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 "ß"
139
140   msgwait 1
141   version
142 # change back to showing messages
143 # for duration of two seconds:
144   msgwait 2
145
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@
150
151 # Welcome the user:
152   echo "welcome BoFH!"