3cabb03c09677c680478cda7632072bd6ad75733
[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 ################################################################################
7
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 %Y-%m-%d %0c"
11   hardstatus alwayslastline "%{wr}%n%f %t %{kw} | %?%-Lw%?%{wb}%n*%f %t%?(%u)%?%{kw}%?%+Lw%? %{wk}"
12
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 %Y-%m-%d %0c"
15 #  caption always "%{rw}%n%f %t %{wk} | %?%-Lw%?%{bw}%n*%f %t%?(%u)%?%{wk}%?%+Lw%? %{wk}"
16
17 # detach on hangup
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
28   vbell                 on
29
30   defscrollback         1000            # default: 100
31 # msgminwait            3               # default: 1
32   silencewait           15              # default: 30
33
34   hardcopydir           $HOME/.hardcopy
35
36 # fix the "screen.linux" terminal problem (see Debian BTS #238355 + #239776)
37 #  term linux
38
39 # shell                 /bin/zsh
40
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!
45
46 # use %n to display the window number and %t for its title:
47   activity              "activity in %n (%t) [%w:%s]~"
48
49 # pass on the "beep" (CTRL-G) by adding a '~':
50   bell                  "bell     in %n (%t) [%w:%s]~"
51
52 # pow_detach_msg:       Message shown when session
53 #                       gets power detached.
54   pow_detach_msg "Screen session of \$LOGNAME \$:cr:\$:nl:ended."
55
56 # vbell_msg:            Message shown when the
57 #                       "virtual bell" rings.
58   vbell_msg             " *beep* "
59
60 # Key bindings
61 # Remove some default key bindings by binding
62 # them to "nothing" (empty right-hand-side):
63 # bind .  dumptermcap # default
64   bind .
65 # bind ^\
66 # bind \\
67   bind .
68   bind k
69   bind ^k
70   bind ^h
71
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 -
97
98 # Use the function keys F11 and F12 to cycle backwards/forwards in
99 # the list of existing windows:
100 #  bindkey -k F1 prev
101 #  bindkey -k F2 next
102
103   bind h  hardcopy
104 # make them better
105   bind 'K' kill
106   bind 'I' login on
107   bind 'O' login off
108   bind '}' history
109
110 # Paste - use 'P' instead of ']':
111 # bind P # unbound by default
112   bind P paste .
113
114 # Yet another hack:
115 # Prepend/append register [/] to the paste if ^a^] is pressed.
116 # This lets me have autoindent mode in vi.
117 #  register [ "\033:se noai\015a"
118 #  register ] "\033:se ai\015a"
119 #  bind ^] paste [.]
120
121 #      X - a fast way to lock the current screen.
122   bind X lockscreen
123
124 # 030511 Workaround for stupid machines without xmodmap ;-)
125   bindkey -t °a stuff "ä"
126   bindkey -t °A stuff "Ä"
127   bindkey -t °o stuff "ö"
128   bindkey -t °O stuff "Ö"
129   bindkey -t °u stuff "ü"
130   bindkey -t °U stuff "Ü"
131   bindkey -t °s stuff "ß"
132
133   msgwait 1
134   version
135 # change back to showing messages
136 # for duration of two seconds:
137   msgwait 2
138
139 # To get screen to add lines to xterm's scrollback buffer, uncomment the
140 # following termcapinfo line which tells xterm to use the normal screen buffer
141 # (which has scrollback), not the alternate screen buffer.
142   termcapinfo xterm|xterms|xs|rxvt ti@:te@
143
144 # Welcome the user:
145   echo "welcome BoFH!"
146
147 # vim: ft=screen
148 ## END OF FILE #################################################################