/etc/grml/screenrc*: switch caption and hardstatus
[grml-etc-core.git] / etc / grml / screenrc_acpi
1 # Filename:      screenrc
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 ################################################################################
8
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"
13
14 # detach on hangup
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
25   vbell                 on
26
27   defscrollback         1000            # default: 100
28 # msgminwait            3               # default: 1
29   silencewait           15              # default: 30
30
31   hardcopydir           $HOME/.hardcopy
32
33 # fix the "screen.linux" terminal problem (see Debian BTS #238355 + #239776)
34 #  term linux
35
36   shell                 /bin/zsh
37
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!
42
43 # use %n to display the window number and %t for its title:
44   activity              "activity in %n (%t) [%w:%s]~"
45
46 # pass on the "beep" (CTRL-G) by adding a '~':
47   bell                  "bell     in %n (%t) [%w:%s]~"
48
49 # pow_detach_msg:       Message shown when session
50 #                       gets power detached.
51   pow_detach_msg "Screen session of \$LOGNAME \$:cr:\$:nl:ended."
52
53 # vbell_msg:            Message shown when the
54 #                       "virtual bell" rings.
55   vbell_msg             " *beep* "
56
57 # Key bindings
58 # Remove some default key bindings by binding
59 # them to "nothing" (empty right-hand-side):
60 # bind .  dumptermcap # default
61   bind .
62   bind ^\
63   bind \\
64
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 -
90
91 # Use the function keys F11 and F12 to cycle backwards/forwards in
92 # the list of existing windows:
93 #  bindkey -k F1 prev
94 #  bindkey -k F2 next
95
96 # remove some stupid / dangerous key bindings
97   bind k
98   bind ^k
99   bind .
100   bind ^\
101   bind \\
102   bind ^h
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   bind G screen -t 'google'    w3m www.google.com
111   bind H screen -t HeiseTicker w3m www.heise.de/newsticker/pda/data/paket4.html
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