.screenrc 2.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293
  1. # GNU Screen - main configuration file
  2. # All other .screenrc files will source this file to inherit settings.
  3. # Author: Christian Wills - cwills.sys@gmail.com
  4. # C-b as prefix key
  5. escape ^Bb
  6. # Allow bold colors - necessary for some reason
  7. attrcolor b ".I"
  8. # Tell screen how to set colors. AB = background, AF=foreground
  9. termcapinfo xterm 'Co#256:AB=\E[48;5;%dm:AF=\E[38;5;%dm'
  10. # Enables use of shift-PgUp and shift-PgDn
  11. termcapinfo xterm|xterms|xs|rxvt ti@:te@
  12. # Erase background with current bg color
  13. defbce "on"
  14. # Enable 256 color term
  15. term xterm-256color
  16. # Cache 30000 lines for scroll back
  17. defscrollback 30000
  18. # # New mail notification
  19. # backtick 101 30 15 $HOME/bin/mailstatus.sh
  20. hardstatus alwayslastline
  21. # Very nice tabbed colored hardstatus line
  22. 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%{-}'
  23. # change command character from ctrl-a to ctrl-b (emacs users may want this)
  24. #escape ^Bb
  25. # Hide hardstatus: ctrl-a f
  26. bind f eval "hardstatus ignore"
  27. # Show hardstatus: ctrl-a F
  28. bind F eval "hardstatus alwayslastline"
  29. # General settings
  30. autodetach on
  31. startup_message off
  32. mousetrack on
  33. # Termcapinfo for xterm
  34. 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
  35. termcapinfo xterm* OL=1000 # Increase output buffer for speed
  36. # Remove various keyboard bindings
  37. bind x # Do not lock screen
  38. bind ^x # Idem
  39. bind h # Do not write out copy of screen to disk
  40. bind ^h # Idem
  41. bind ^\ # Do not kill all windows/exit screen
  42. bind . # Disable dumptermcap
  43. # Add keyboard bindings
  44. bind } history
  45. bind k kill
  46. # compozed by teh 5tinger
  47. altscreen on # clear screen after closing some programs
  48. defflow auto
  49. # shell -bash
  50. defutf8 on
  51. vbell off
  52. # shelltitle '$ |bash'
  53. # # backticks to display information in the statusbar
  54. # backtick 1 0 0 /usr/local/bin/screen-mem-usage
  55. # backtick 2 0 0 /usr/local/bin/screen-cpu-usage
  56. # colors
  57. #term screen-256color
  58. terminfo rxvt-unicode 'Co#256:AB=\E[48;5;%dm:AF=\E[38;5;%dm'
  59. # statusbar
  60. hardstatus on
  61. hardstatus alwayslastline
  62. 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}]'
  63. # warning of activity
  64. activity '%c activity -> %n%f %t'
  65. # left + right arrow key meta key mods
  66. bindkey '^[Od' prev # change window with ctrl-left
  67. bindkey '^[Oc' next # change window with ctrl-right