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