Advertisement
Guest User

Untitled

a guest
May 25th, 2015
229
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.06 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. screen -t Shell1 1 bash
  21. screen -t Shell2 2 bash
  22. screen -t Python 3 python
  23. screen -t Media 4 bash
  24. select 0
  25. bind c screen 1 # window numbering starts at 1 not 0
  26. bind 0 select 10
  27.  
  28. # get rid of silly xoff stuff
  29. bind s split
  30.  
  31. # layouts
  32. layout autosave on
  33. layout new one
  34. select 1
  35. layout new two
  36. select 1
  37. split
  38. resize -v +8
  39. focus down
  40. select 4
  41. focus up
  42. layout new three
  43. select 1
  44. split
  45. resize -v +7
  46. focus down
  47. select 3
  48. split -v
  49. resize -h +10
  50. focus right
  51. select 4
  52. focus up
  53.  
  54. layout attach one
  55. layout select one
  56.  
  57. # navigating regions with Ctrl-arrows
  58. bindkey "^[[1;5D" focus left
  59. bindkey "^[[1;5C" focus right
  60. bindkey "^[[1;5A" focus up
  61. bindkey "^[[1;5B" focus down
  62.  
  63. # switch windows with F3 (prev) and F4 (next)
  64. bindkey "^[OR" prev
  65. bindkey "^[OS" next
  66.  
  67. # switch layouts with Ctrl+F3 (prev layout) and Ctrl+F4 (next)
  68. bindkey "^[O1;5R" layout prev
  69. bindkey "^[O1;5S" layout next
  70.  
  71. # F2 puts Screen into resize mode. Resize regions using hjkl keys.
  72. bindkey "^[OQ" eval "command -c rsz" # enter resize mode
  73.  
  74. # use hjkl keys to resize regions
  75. bind -c rsz h eval "resize -h -5" "command -c rsz"
  76. bind -c rsz j eval "resize -v -5" "command -c rsz"
  77. bind -c rsz k eval "resize -v +5" "command -c rsz"
  78. bind -c rsz l eval "resize -h +5" "command -c rsz"
  79.  
  80. # quickly switch between regions using tab and arrows
  81. bind -c rsz \t eval "focus" "command -c rsz" # Tab
  82. bind -c rsz -k kl eval "focus left" "command -c rsz" # Left
  83. bind -c rsz -k kr eval "focus right" "command -c rsz" # Right
  84. bind -c rsz -k ku eval "focus up" "command -c rsz" # Up
  85. bind -c rsz -k kd eval "focus down" "command -c rsz" # Down
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement