Advertisement
Guest User

kex tmux

a guest
Jun 7th, 2014
698
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Bash 2.14 KB | None | 0 0
  1. #delay
  2. set -sg escape-time 0
  3.  
  4. # change prefix to Ctrl-a (like in gnu-screen)
  5. unbind C-b
  6. set-option -g prefix C-a
  7. bind-key C-a send-prefix
  8.  
  9. # start with window 1 (instead of 0)
  10. set -g base-index 1
  11.  
  12. # start with pane 1
  13. set -g pane-base-index 1
  14.  
  15. # source config file
  16. bind r source-file ~/.tmux.conf
  17.  
  18. # allow terminal scrolling
  19. set-option -g terminal-overrides 'xterm*:smcup@:rmcup@'
  20.  
  21. # to make ctrl + arrows, etc work
  22. set-window-option -g xterm-keys on
  23.  
  24. # splitting
  25. unbind %
  26. bind h split-window -v
  27. unbind '"'
  28. bind v split-window -h
  29. bind x kill-pane
  30.  
  31. # panes
  32. set -g pane-border-fg black
  33. set -g pane-active-border-fg black
  34.  
  35. # Keybindings for layouts; M is alt
  36. bind-key  M-1 select-layout even-horizontal
  37. bind-key  M-2 select-layout even-vertical
  38. bind-key  M-3 select-layout main-horizontal
  39. bind-key  M-4 select-layout main-vertical
  40. bind-key  M-5 select-layout tiled
  41.  
  42. # status line
  43. set -g status-utf8 on
  44. set -g status-justify left
  45. set -g status-bg default
  46. set -g status-fg blue
  47. set -g status-interval 4
  48.  
  49. # messaging
  50. set -g message-attr bold
  51. set -g message-fg white
  52. set -g message-bg red
  53. set -g message-command-fg blue
  54. set -g message-command-bg black
  55.  
  56. # window status
  57. if '[ -z "$DISPLAY" ]' 'setw -g window-status-format " #F#I:#W "'
  58. if '[ -z "$DISPLAY" ]' 'setw -g window-status-current-format " #F#I:#W "'
  59. setw -g window-status-format "#[fg=darkblue]#[bg=default] #I #[bg=default]#[fg=darkblue] #W "
  60. setw -g window-status-current-format "#[fg=blue]#[bg=default] #I #[fg=blue]#[bg=default] #W "
  61. setw -g window-status-current-bg default
  62. setw -g window-status-current-fg default
  63. setw -g window-status-current-attr bold
  64. setw -g window-status-bg default
  65. setw -g window-status-fg default
  66. setw -g window-status-attr dim
  67. setw -g window-status-content-bg black
  68. setw -g window-status-content-fg black
  69. setw -g window-status-content-attr bold
  70. set -g status-justify centre
  71. # Info on left (no session display)
  72. set -g status-left ''
  73.  
  74. # Info on right
  75. set -g status-right-attr bold
  76. set -g status-right ''
  77. #set -g status-right '#[fg=brightyellow]Vol: #(sh ~/Scripts/tmux/volume)   #[fg=brightgreen]%a %H:%M '
  78. set -g status-right-length 60
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement