screenrc 1.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051
  1. hardstatus alwayslastline
  2. hardstatus string '%{= kG}[%{G}%H%? %1`%?%{g}][screen %S][%= %{= kw}%-w%{+b yk} %n*%t%?(%u)%? %{-}%+w %=%{g}][%{B}%d.%m. %{W}%c%{g}]'
  3. defscrollback 10000
  4. # no welcome message
  5. startup_message off
  6. # 256 colors
  7. attrcolor b ".I"
  8. termcapinfo xterm 'Co#256:AB=\E[48;5;%dm:AF=\E[38;5;%dm'
  9. defbce on
  10. # mouse tracking allows to switch region focus by clicking
  11. mousetrack on
  12. # enable use of the mouse's scrollwheel to scroll through the scrollback buffer
  13. # http://unix.stackexchange.com/questions/43229/is-there-a-way-to-make-screen-scroll-like-a-normal-terminal
  14. # http://stackoverflow.com/questions/359109/using-the-scrollwheel-in-gnu-screen
  15. # termcapinfo xterm* ti@:te@
  16. # termcapinfo xterm 'hs:ts=\E]2;:fs=07:ds=\E]2;screen07'
  17. # layouts
  18. layout autosave on
  19. # navigating regions
  20. bind -k kl eval "focus left"
  21. bind -k kd eval "focus down"
  22. bind -k ku eval "focus up"
  23. bind -k kr eval "focus right"
  24. bind -c focus h eval "focus left" "command -c focus"
  25. bind -c focus j eval "focus down" "command -c focus"
  26. bind -c focus k eval "focus up" "command -c focus"
  27. bind -c focus l eval "focus right" "command -c focus"
  28. bind -c focus -k kl eval "focus left" "command -c focus"
  29. bind -c focus -k kd eval "focus down" "command -c focus"
  30. bind -c focus -k ku eval "focus up" "command -c focus"
  31. bind -c focus -k kr eval "focus right" "command -c focus"
  32. bind y command -c focus
  33. # resizing regions
  34. bind -c resize h eval "resize -h -5" "command -c resize"
  35. bind -c resize j eval "resize -v +3" "command -c resize"
  36. bind -c resize k eval "resize -v -3" "command -c resize"
  37. bind -c resize l eval "resize -h +5" "command -c resize"
  38. bind -c resize -k kl eval "resize -h -5" "command -c resize"
  39. bind -c resize -k kd eval "resize -v +3" "command -c resize"
  40. bind -c resize -k ku eval "resize -v -3" "command -c resize"
  41. bind -c resize -k kr eval "resize -h +5" "command -c resize"
  42. bind R command -c resize
  43. # https://gist.github.com/joaopizani/2718397