Guest User

Untitled

a guest
Mar 24th, 2018
102
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.96 KB | None | 0 0
  1. # the following two lines give a two-line status, with the current window highlighted
  2. hardstatus alwayslastline
  3. hardstatus string '%{= kG}[%{G}%H%? %1`%?%{g}][%= %{= kw}%-w%{+b yk} %n*%t%?(%u)%? %{-}%+w %=%{g}][%{B}%m/%d %{W}%C%A%{g}]'
  4.  
  5. # huge scrollback buffer
  6. defscrollback 5000
  7.  
  8. # no welcome message
  9. startup_message off
  10.  
  11. # 256 colors
  12. attrcolor b ".I"
  13. termcapinfo xterm 'Co#256:AB=\E[48;5;%dm:AF=\E[38;5;%dm'
  14. defbce on
  15.  
  16. # mouse tracking allows to switch region focus by clicking
  17. mousetrack on
  18.  
  19. # default windows
  20. select 0
  21. bind c screen 1 # window numbering starts at 1 not 0
  22. bind 0 select 10
  23.  
  24. # get rid of silly xoff stuff
  25. bind s split
  26.  
  27. # layouts
  28. layout autosave on
  29. layout new one
  30. select 1
  31. layout new two
  32. select 1
  33. split
  34. resize -v +8
  35. focus down
  36. select 4
  37. focus up
  38. layout new three
  39. select 1
  40. split
  41. resize -v +7
  42. focus down
  43. select 3
  44. split -v
  45. resize -h +10
  46. focus right
  47. select 4
  48. focus up
  49.  
  50. layout attach one
  51. layout select one
  52.  
  53. # navigating regions with Ctrl-arrows
  54. bindkey "^[[1;5D" focus left
  55. bindkey "^[[1;5C" focus right
  56. bindkey "^[[1;5A" focus up
  57. bindkey "^[[1;5B" focus down
  58.  
  59. # switch windows with F3 (prev) and F4 (next)
  60. bindkey "^[OR" prev
  61. bindkey "^[OS" next
  62.  
  63. # switch layouts with Ctrl+F3 (prev layout) and Ctrl+F4 (next)
  64. bindkey "^[O1;5R" layout prev
  65. bindkey "^[O1;5S" layout next
  66.  
  67. # F2 puts Screen into resize mode. Resize regions using hjkl keys.
  68. bindkey "^[OQ" eval "command -c rsz" # enter resize mode
  69.  
  70. # use hjkl keys to resize regions
  71. bind -c rsz h eval "resize -h -5" "command -c rsz"
  72. bind -c rsz j eval "resize -v -5" "command -c rsz"
  73. bind -c rsz k eval "resize -v +5" "command -c rsz"
  74. bind -c rsz l eval "resize -h +5" "command -c rsz"
  75.  
  76. # quickly switch between regions using tab and arrows
  77. bind -c rsz \t eval "focus" "command -c rsz" # Tab
  78. bind -c rsz -k kl eval "focus left" "command -c rsz" # Left
  79. bind -c rsz -k kr eval "focus right" "command -c rsz" # Right
  80. bind -c rsz -k ku eval "focus up" "command -c rsz" # Up
  81. bind -c rsz -k kd eval "focus down" "command -c rsz" # Down
Add Comment
Please, Sign In to add comment