screenrc: drop keybindings G (google) + H (heise.de)
[grml-etc-core.git] / etc / grml / screenrc_acpi
1 # Filename:      /etc/grml/screenrc_acpi
2 # Purpose:       configuration file for GNU screen providing ACPI output
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 60 60 /usr/bin/cpu-screen
9   backtick 2 60 60 /usr/bin/yacpi -p
10   caption always "%{+b rk}$USER@%{wk}%H | %{yk}(load: %l |%{rk} cpu: %1` | %{Gk}acpi: %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 rk}$USER@%{wk}%H | %{yk}(load: %l |%{rk} cpu: %1` | %{Gk}acpi: %2`)  %-21=%{wk}%D %Y-%m-%d %0c"
15 #  caption always "%{wr}%n%f %t %{kw} | %?%-Lw%?%{wb}%n*%f %t%?(%u)%?%{kw}%?%+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
68 # 040126 To be able to select windows with n > 9 ->
69 # press "C-a - #" instead of just "C-a #"
70   bind - command -c select_1n
71   bind -c select_1n 0 select 10
72   bind -c select_1n 1 select 11
73   bind -c select_1n 2 select 12
74   bind -c select_1n 3 select 13
75   bind -c select_1n 4 select 14
76   bind -c select_1n 5 select 15
77   bind -c select_1n 6 select 16
78   bind -c select_1n 7 select 17
79   bind -c select_1n 8 select 18
80   bind -c select_1n 9 select 19
81   bind -c select_1n - command -c select_2n
82   bind -c select_2n 0 select 20
83   bind -c select_2n 1 select 21
84   bind -c select_2n 2 select 22
85   bind -c select_2n 3 select 23
86   bind -c select_2n 4 select 24
87   bind -c select_2n 5 select 25
88   bind -c select_2n 6 select 26
89   bind -c select_2n 7 select 27
90   bind -c select_2n 8 select 28
91   bind -c select_2n 9 select 29
92   bind -c select_2n - select -
93
94 # Use the function keys F11 and F12 to cycle backwards/forwards in
95 # the list of existing windows:
96 #  bindkey -k F1 prev
97 #  bindkey -k F2 next
98
99 # remove some stupid / dangerous key bindings
100   bind k
101   bind ^k
102   bind .
103   bind ^\
104   bind \\
105   bind ^h
106   bind h  hardcopy
107 # make them better
108   bind 'K' kill
109   bind 'I' login on
110   bind 'O' login off
111   bind '}' history
112
113 # Paste - use 'P' instead of ']':
114 # bind P # unbound by default
115   bind P paste .
116
117 # Yet another hack:
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"
122   bind ^] paste [.]
123
124 #      X - a fast way to lock the current screen.
125   bind X lockscreen
126
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 "ß"
135
136   msgwait 1
137   version
138 # change back to showing messages
139 # for duration of two seconds:
140   msgwait 2
141 #
142 # Welcome the user:
143   echo "welcome BoFH!"
144
145 # vim: ft=screen
146 ## END OF FILE #################################################################