Advertisement
anujpandey

tmux.conf

Aug 26th, 2022
829
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 2.71 KB | None | 0 0
  1. # status bar
  2. set-option -g status-utf8 on
  3.  
  4.  
  5. # https://github.com/seebi/tmux-colors-solarized/blob/master/tmuxcolors-256.conf
  6. set-option -g status-bg colour235 #base02
  7. set-option -g status-fg colour136 #yellow
  8. set-option -g status-attr default
  9.  
  10. # default window title colors
  11. set-window-option -g window-status-fg colour244 #base0
  12. set-window-option -g window-status-bg default
  13. #set-window-option -g window-status-attr dim
  14.  
  15. # active window title colors
  16. set-window-option -g window-status-current-fg colour166 #orange
  17. set-window-option -g window-status-current-bg default
  18. #set-window-option -g window-status-current-attr bright
  19.  
  20. # pane border
  21. set-option -g pane-border-fg colour235 #base02
  22. set-option -g pane-active-border-fg colour240 #base01
  23.  
  24. # message text
  25. set-option -g message-bg colour235 #base02
  26. set-option -g message-fg colour166 #orange
  27.  
  28. # pane number display
  29. set-option -g display-panes-active-colour colour33 #blue
  30. set-option -g display-panes-colour colour166 #orange
  31. # clock
  32. set-window-option -g clock-mode-colour green #green
  33.  
  34.  
  35. set -g status-interval 1
  36. set -g status-justify centre # center align window list
  37. set -g status-left-length 55
  38. set -g status-right-length 140
  39. set -g status-left '#[fg=green]#(~/molecule.sh) #[fg=black]• #[fg=green,bright]#(uname -r | cut -c 1-6)#[default]'
  40. set -g status-right '#[fg=red,dim,bg=default]#(~/branch.sh) #[fg=white,bg=default]%a%l:%M:%S %p#[default]#[fg=white,bg=default]%a%l:%M:%S %p#[default] #[fg=blue]%Y-%m-%d'
  41.  
  42.  
  43. # Start numbering at 1
  44. set -g base-index 1
  45.  
  46. # Allows for faster key repetition
  47. set -s escape-time 0
  48.  
  49. # Rather than constraining window size to the maximum size of any client
  50. # connected to the *session*, constrain window size to the maximum size of any
  51. # client connected to *that window*. Much more reasonable.
  52. setw -g aggressive-resize on
  53.  
  54. # Allows us to use C-a a <command> to send commands to a TMUX session inside
  55. # another TMUX session
  56. bind-key a send-prefix
  57.  
  58. # Activity monitoring
  59. setw -g monitor-activity on
  60. set -g visual-activity on
  61.  
  62. # Highlight active window
  63. #set-window-option -g window-status-current-bg red
  64.  
  65. # Vi copypaste mode
  66. set-window-option -g mode-keys vi
  67. bind-key -t vi-copy 'v' begin-selection
  68. bind-key -t vi-copy 'y' copy-selection
  69.  
  70. # hjkl pane traversal
  71. bind h select-pane -L
  72. bind j select-pane -D
  73. bind k select-pane -U
  74. bind l select-pane -R
  75.  
  76. # reload config
  77. bind r source-file ~/.tmux.conf \; display-message "Config reloaded..."
  78.  
  79. # auto window rename
  80. set-window-option -g automatic-rename
  81.  
  82. # rm mouse mode fail
  83. set -g mode-mouse on
  84. set -g mouse-select-window on
  85. set -g mouse-select-pane on
  86. set -g mouse-resize-pane on
  87. set -g mouse-utf on
  88.  
  89. # color
  90. set -g default-terminal "screen-256color"
  91.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement