## Wolfram Schlich ## screen configuration: ~/.screenrc ## $Id: .screenrc,v 1.1 2007/03/23 14:26:15 wschlich Exp wschlich $ ## vim:syn=screen:nowrap: ## ## configuration variables ## activity "activity in %n (%t)" autodetach on # backtick 1 5 1 uptime bell_msg "bell in %n (%t)" # caption splitonly # caption splitonly "%?%F%{.R.}%? %{.Y}%n %t%? (%u)%? %{..w}::.. %{=r dd}" # caption always # caption always "%?%F%{.R.}%? %{.Y}%n %t%? (%u)%? %{..w}::.. %{=r dd}" crlf off debug off defbce off defhstatus "screen: ^En (^Et)" deflogin off defmonitor off defscrollback 8192 defutf8 on escape ^Aa fit hardcopy_append on hardcopydir ~/.screen hardstatus alwayslastline "%{=b}%{bw} %{.w}%D %{.c}%Y-%m-%d %{.y}%0c %{-b}%{ck} %-Lw%{+b}%{gw} %n%f* %t%? (%u)%? %{-}%{-b}%+Lw %{=b}%{bw} %= %{.w}%H %{.c}[%l] " msgminwait 1 msgwait 3 pow_detach_msg "ALL YOUR SCREEN ARE BELONG TO US" # setenv PROMPT_COMMAND 'echo -n -e "\033k\033\134"' # shell -${SHELL} shell ${SHELL} shelltitle '$ |sh:' silencewait 5 sorendition =b ry startup_message off # term screen-bce # term screen-w # termcapinfo * '' 'hs:ts=\E_:fs=\E\\:ds=\E_\E\\' vbell on vbell_msg " WHAT YOU SAY!! " vbellwait 1 verbose off windowlist title " Num%+3=| Fl%+3=| Name" windowlist string " %2n%+3=| %f%+3=| %t" ## close windows of terminated programs with ^D, recreate them with ^C zombie ^D^C ## screensaver ;) # idle 600 blanker # blankerprg nice -n 19 cmatrix -abu9 ## ## internal functions ## ## reload ~/.screenrc bind ^r source "${HOME}/.screenrc" ## change escape keys bind ^e escape ^Xx bind ^y escape ^Aa ## lock the screen bind ^x lockscreen ## turn on copy mode bind o copy bind p paste . bind . number bind l lastmsg bind w windowlist -b bind r resize bind s select bind > split bind < remove bind ^f focus down bind = resize = bind + resize +5 bind - resize -5 bind ~ resize max ## ## external programs ## ## key prefixes/commands # favorites bind , command -c fav # system tools bind ; command -c sys # other external programs bind _ command -c ext ## favorites # bind -c ext m screen -t "mutt" 1 mutt ## system tools bind -c sys S screen -t "syslog" 38 sudo /usr/bin/env LESSSECURE=1 /usr/bin/less -SMIR +F /var/log/messages bind -c sys T screen -t "top" 39 sudo /usr/bin/top -s bind -c sys H screen -t "htop" 39 sudo /usr/bin/htop ## other external programs #bind -c ext l screen -t "links" links ## ## source host specific screenrc ## WARNING: the environment variable HOSTNAME is NOT exported automatically ## by the bash. YOU need to take care of doing this in your bashrc, like this: ## export HOSTNAME ## #exec ${SHELL} -c "test -e ${HOME}/.screenrc.${HOSTNAME} || touch ${HOME}/.screenrc.${HOSTNAME}" source "${HOME}/.screenrc.${HOSTNAME}" ## ## show version on startup ## version ## ## RCS Log: ## # $Log: .screenrc,v $ # Revision 1.1 2007/03/23 14:26:15 wschlich # Initial revision #