From 8050e93ca39dde364a3a2cd3163b6b60ed6d8dd7 Mon Sep 17 00:00:00 2001 From: Michael Prokop Date: Fri, 28 Sep 2007 23:37:47 +0200 Subject: [PATCH] Add /etc/grml/screenrc_generic; revert changes in caption/hardstatus switch --- etc/grml/screenrc | 11 ++-- etc/grml/screenrc_acpi | 10 +++- etc/grml/screenrc_generic | 150 ++++++++++++++++++++++++++++++++++++++++++++++ 3 files changed, 164 insertions(+), 7 deletions(-) create mode 100644 etc/grml/screenrc_generic diff --git a/etc/grml/screenrc b/etc/grml/screenrc index 5ec5c5f..8fab37f 100644 --- a/etc/grml/screenrc +++ b/etc/grml/screenrc @@ -3,14 +3,17 @@ # Authors: grml-team (grml.org), (c) Michael Prokop # Bug-Reports: see http://grml.org/bugs/ # License: This file is licensed under the GPL v2. -# Latest change: Don Okt 26 11:20:24 CEST 2006 [mika] +# Latest change: Fre Sep 28 23:35:32 CEST 2007 [mika] ################################################################################ backtick 1 0 60 /usr/bin/cpu-screen backtick 2 0 60 /usr/bin/ip-screen - hardstatus alwayslastline "%{+b kr}$USER@%{kw}%H | %{ky}(load: %l |%{kr} cpu: %1` | %{kG}net: %2`) %-21=%{kw}%D %d.%m.%Y %0c" - caption always "%{rw}%n%f %t %{wk} | %?%-Lw%?%{bw}%n*%f %t%?(%u)%?%{wk}%?%+Lw%?" -# hardstatus alwayslastline "%{bw}%1`%= " + caption always "%{+b kr}$USER@%{kw}%H | %{ky}(load: %l |%{kr} cpu: %1` | %{kG}net: %2`) %-21=%{kw}%D %d.%m.%Y %0c" + hardstatus alwayslastline "%{rw}%n%f %t %{wk} | %?%-Lw%?%{bw}%n*%f %t%?(%u)%?%{wk}%?%+Lw%?" + +# switch order of caption and hardstatus: +# hardstatus alwayslastline "%{+b kr}$USER@%{kw}%H | %{ky}(load: %l |%{kr} cpu: %1` | %{kG}net: %2`) %-21=%{kw}%D %d.%m.%Y %0c" +# caption always "%{rw}%n%f %t %{wk} | %?%-Lw%?%{bw}%n*%f %t%?(%u)%?%{wk}%?%+Lw%?" # detach on hangup autodetach on # default: on diff --git a/etc/grml/screenrc_acpi b/etc/grml/screenrc_acpi index 0ae48c0..f3b5e76 100644 --- a/etc/grml/screenrc_acpi +++ b/etc/grml/screenrc_acpi @@ -3,13 +3,17 @@ # Authors: grml-team (grml.org), (c) Michael Prokop # Bug-Reports: see http://grml.org/bugs/ # License: This file is licensed under the GPL v2. -# Latest change: Fre Sep 28 23:19:52 CEST 2007 [mika] +# Latest change: Fre Sep 28 23:35:39 CEST 2007 [mika] ################################################################################ backtick 1 60 60 /usr/bin/cpu-screen backtick 2 60 60 /usr/bin/yacpi -p -t - caption always "%{rw}%n%f %t %{wk} | %?%-Lw%?%{bw}%n*%f %t%?(%u)%?%{wk}%?%+Lw%?" - hardstatus alwayslastline "%{+b kr}$USER@%{kw}%H | %{ky}(load: %l |%{kr} cpu: %1` | %{kG}acpi: %2`) %-21=%{kw}%D %d.%m.%Y %0c" + caption always "%{+b kr}$USER@%{kw}%H | %{ky}(load: %l |%{kr} cpu: %1` | %{kG}acpi: %2`) %-21=%{kw}%D %d.%m.%Y %0c" + hardstatus alwayslastline "%{rw}%n%f %t %{wk} | %?%-Lw%?%{bw}%n*%f %t%?(%u)%?%{wk}%?%+Lw%?" + +# switch order of caption and hardstatus: +# caption always "%{rw}%n%f %t %{wk} | %?%-Lw%?%{bw}%n*%f %t%?(%u)%?%{wk}%?%+Lw%?" +# hardstatus alwayslastline "%{+b kr}$USER@%{kw}%H | %{ky}(load: %l |%{kr} cpu: %1` | %{kG}acpi: %2`) %-21=%{kw}%D %d.%m.%Y %0c" # detach on hangup autodetach on # default: on diff --git a/etc/grml/screenrc_generic b/etc/grml/screenrc_generic new file mode 100644 index 0000000..aa4799c --- /dev/null +++ b/etc/grml/screenrc_generic @@ -0,0 +1,150 @@ +# Filename: screenrc +# Purpose: config file for GNU screen +# Authors: grml-team (grml.org), (c) Michael Prokop +# Bug-Reports: see http://grml.org/bugs/ +# License: This file is licensed under the GPL v2. +# Latest change: Fre Sep 28 23:35:53 CEST 2007 [mika] +################################################################################ + + caption always "%{+b kr}$USER@%{kw}%H | %{ky}(load: %l |%{kr}) %-21=%{kw}%D %d.%m.%Y %0c" + hardstatus alwayslastline "%{rw}%n%f %t %{wk} | %?%-Lw%?%{bw}%n*%f %t%?(%u)%?%{wk}%?%+Lw%?" + +# switch order of caption and hardstatus: +# hardstatus alwayslastline "%{+b kr}$USER@%{kw}%H | %{ky}(load: %l |%{kr}) %-21=%{kw}%D %d.%m.%Y %0c" +# caption always "%{rw}%n%f %t %{wk} | %?%-Lw%?%{bw}%n*%f %t%?(%u)%?%{wk}%?%+Lw%?" + +# detach on hangup + autodetach on # default: on + crlf off # default: off + deflogin off # default: on +# defsilence off # default: off +# hardcopy_append on # default: off + hardcopy_append off # default: off + nethack on # default: off +# don't display the copyright page + startup_message off # default: on +# no annoying audible bell, please + vbell on + + defscrollback 1000 # default: 100 +# msgminwait 3 # default: 1 + silencewait 15 # default: 30 + + hardcopydir $HOME/.hardcopy + +# fix the "screen.linux" terminal problem (see Debian BTS #238355 + #239776) +# term linux + + shell /bin/zsh + +# "sorendition": set the colors for +# the "messages" and "text marking" +# (ie text you mark in copy mode): + sorendition 10 99 # default! + +# use %n to display the window number and %t for its title: + activity "activity in %n (%t) [%w:%s]~" + +# pass on the "beep" (CTRL-G) by adding a '~': + bell "bell in %n (%t) [%w:%s]~" + +# pow_detach_msg: Message shown when session +# gets power detached. + pow_detach_msg "Screen session of \$LOGNAME \$:cr:\$:nl:ended." + +# vbell_msg: Message shown when the +# "virtual bell" rings. + vbell_msg " *beep* " + +# Key bindings +# Remove some default key bindings by binding +# them to "nothing" (empty right-hand-side): +# bind . dumptermcap # default + bind . + bind ^\ + bind \\ + +# 040126 To be able to select windows with n > 9 -> +# press "C-a - #" instead of just "C-a #" + bind - command -c select_1n + bind -c select_1n 0 select 10 + bind -c select_1n 1 select 11 + bind -c select_1n 2 select 12 + bind -c select_1n 3 select 13 + bind -c select_1n 4 select 14 + bind -c select_1n 5 select 15 + bind -c select_1n 6 select 16 + bind -c select_1n 7 select 17 + bind -c select_1n 8 select 18 + bind -c select_1n 9 select 19 + bind -c select_1n - command -c select_2n + bind -c select_2n 0 select 20 + bind -c select_2n 1 select 21 + bind -c select_2n 2 select 22 + bind -c select_2n 3 select 23 + bind -c select_2n 4 select 24 + bind -c select_2n 5 select 25 + bind -c select_2n 6 select 26 + bind -c select_2n 7 select 27 + bind -c select_2n 8 select 28 + bind -c select_2n 9 select 29 + bind -c select_2n - select - + +# Use the function keys F11 and F12 to cycle backwards/forwards in +# the list of existing windows: +# bindkey -k F1 prev +# bindkey -k F2 next + +# remove some stupid / dangerous key bindings + bind k + bind ^k + bind . + bind ^\ + bind \\ + bind ^h + bind h hardcopy +# make them better + bind 'K' kill + bind 'I' login on + bind 'O' login off + bind '}' history + + bind G screen -t 'google' w3m www.google.com + bind H screen -t HeiseTicker w3m www.heise.de/newsticker/pda/data/paket4.html + +# Paste - use 'P' instead of ']': +# bind P # unbound by default + bind P paste . + +# Yet another hack: +# Prepend/append register [/] to the paste if ^a^] is pressed. +# This lets me have autoindent mode in vi. +# register [ "\033:se noai\015a" +# register ] "\033:se ai\015a" +# bind ^] paste [.] + +# X - a fast way to lock the current screen. + bind X lockscreen + +# 030511 Workaround for stupid machines without xmodmap ;-) + bindkey -t °a stuff "ä" + bindkey -t °A stuff "Ä" + bindkey -t °o stuff "ö" + bindkey -t °O stuff "Ö" + bindkey -t °u stuff "ü" + bindkey -t °U stuff "Ü" + bindkey -t °s stuff "ß" + + msgwait 1 + version +# change back to showing messages +# for duration of two seconds: + msgwait 2 + +# To get screen to add lines to xterm's scrollback buffer, uncomment the +# following termcapinfo line which tells xterm to use the normal screen buffer +# (which has scrollback), not the alternate screen buffer. + termcapinfo xterm|xterms|xs|rxvt ti@:te@ + +# Welcome the user: + echo "welcome BoFH!" -- 2.1.4