123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293 |
- # GNU Screen - main configuration file
- # All other .screenrc files will source this file to inherit settings.
- # Author: Christian Wills - cwills.sys@gmail.com
- # C-b as prefix key
- escape ^Bb
- # Allow bold colors - necessary for some reason
- attrcolor b ".I"
- # Tell screen how to set colors. AB = background, AF=foreground
- termcapinfo xterm 'Co#256:AB=\E[48;5;%dm:AF=\E[38;5;%dm'
- # Enables use of shift-PgUp and shift-PgDn
- termcapinfo xterm|xterms|xs|rxvt ti@:te@
- # Erase background with current bg color
- defbce "on"
- # Enable 256 color term
- term xterm-256color
- # Cache 30000 lines for scroll back
- defscrollback 30000
- # # New mail notification
- # backtick 101 30 15 $HOME/bin/mailstatus.sh
- hardstatus alwayslastline
- # Very nice tabbed colored hardstatus line
- hardstatus string '%{= Kd} %{= Kd}%-w%{= Kr}[%{= KW}%n %t%{= Kr}]%{= Kd}%+w %-= %{KG} %H%{KW}|%{KY}%101`%{KW}|%D %M %d %Y%{= Kc} %C%A%{-}'
- # change command character from ctrl-a to ctrl-b (emacs users may want this)
- #escape ^Bb
- # Hide hardstatus: ctrl-a f
- bind f eval "hardstatus ignore"
- # Show hardstatus: ctrl-a F
- bind F eval "hardstatus alwayslastline"
- # General settings
- autodetach on
- startup_message off
- mousetrack on
- # Termcapinfo for xterm
- termcapinfo xterm* Z0=\E[?3h:Z1=\E[?3l:is=\E[r\E[m\E[2J\E[H\E[?7h\E[?1;4;6l # Do not resize window
- termcapinfo xterm* OL=1000 # Increase output buffer for speed
- # Remove various keyboard bindings
- bind x # Do not lock screen
- bind ^x # Idem
- bind h # Do not write out copy of screen to disk
- bind ^h # Idem
- bind ^\ # Do not kill all windows/exit screen
- bind . # Disable dumptermcap
- # Add keyboard bindings
- bind } history
- bind k kill
- # compozed by teh 5tinger
- altscreen on # clear screen after closing some programs
- defflow auto
- # shell -bash
- defutf8 on
- vbell off
- # shelltitle '$ |bash'
- # # backticks to display information in the statusbar
- # backtick 1 0 0 /usr/local/bin/screen-mem-usage
- # backtick 2 0 0 /usr/local/bin/screen-cpu-usage
- # colors
- #term screen-256color
- terminfo rxvt-unicode 'Co#256:AB=\E[48;5;%dm:AF=\E[38;5;%dm'
- # statusbar
- hardstatus on
- hardstatus alwayslastline
- hardstatus string '%{= G}[%{g}host:%{G}%H]%{g}[%= %{= w}%?%-Lw%?%{r}(%{W}%n*%f%t%?(%u)%?%{r})%{w}%?%+Lw%?%?%= %{g}][%{y}cpu:%{Y}%2`%%%{b}mem:%{B}%1`%{r}load:%{R}%l%{g}][%{c}%y-%m-%d %{C}%c:%s%{g}]'
- # warning of activity
- activity '%c activity -> %n%f %t'
- # left + right arrow key meta key mods
- bindkey '^[Od' prev # change window with ctrl-left
- bindkey '^[Oc' next # change window with ctrl-right
|