tmux.conf 3.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130
  1. # # bind-key -T root WheelDownPane if-shell -F -t = "#{alternate_on}" "send-keys -M" "select-pane -t =; send-keys -M"
  2. #
  3. # set -g mouse on
  4. # setw -g mode-keys vi
  5. # set -sg escape-time 10
  6. # set-option -g default-terminal "screen-256color"
  7. # set-option -sa terminal-overrides ',xterm-256color:RGB'
  8. # set -g history-limit 10000
  9. # set -g focus-events on
  10. #
  11. # bind-key -T copy-mode-vi 'v' send -X begin-selection
  12. # bind-key -T copy-mode-vi 'y' send -X copy-selection-and-cancel
  13. #
  14. # bind-key j select-pane -D
  15. # bind-key k select-pane -U
  16. # bind-key h select-pane -L
  17. # bind-key l select-pane -R
  18. #
  19. # # Split horiziontal and vertical splits, instead of % and "
  20. # # Also open them in the same directory
  21. # bind-key v split-window -h -c '#{pane_current_path}'
  22. # bind-key s split-window -v -c '#{pane_current_path}'
  23. ### =================================================================================================================================
  24. # Dracula Colours
  25. # background_color '#282a36'
  26. # current_line_color '#44475a'
  27. # foreground_color '#f8f8f2'
  28. # comment_color '#6272a4'
  29. # cyan '#8be9fd'
  30. # green '#50fa7b'
  31. # orange '#ffb86c'
  32. # pink '#ff79c6'
  33. # purple '#bd93f9'
  34. # red '#ff5555'
  35. # yellow '#f1fa8c'
  36. # tmux colorscheme
  37. set-option -g default-terminal "screen-256color"
  38. # pane border
  39. set -g pane-border-style fg='#6272a4'
  40. set -g pane-active-border-style fg='#ff79c6'
  41. # message text
  42. set -g message-style bg='#44475a',fg='#8be9fd'
  43. # status line
  44. set -g status-style bg='#44475a',fg='#bd93f9'
  45. set -g status-interval 1
  46. # status left
  47. # are we controlling tmux or the content of the panes?
  48. set -g status-left '#[bg=#f8f8f2]#[fg=#282a36]#{?client_prefix,#[bg=#ff79c6],} ☺ '
  49. # are we zoomed into a pane?
  50. set -ga status-left '#[bg=#44475a]#[fg=#ff79c6] #{?window_zoomed_flag, ↕ , }'
  51. # window status
  52. set-window-option -g window-status-style fg='#bd93f9',bg=default
  53. set-window-option -g window-status-current-style fg='#ff79c6',bg='#282a36'
  54. set -g window-status-current-format "#[fg=#44475a]#[bg=#bd93f9]#[fg=#f8f8f2]#[bg=#bd93f9] #I #W #[fg=#bd93f9]#[bg=#44475a]"
  55. set -g window-status-format "#[fg=#f8f8f2]#[bg=#44475a]#I #W #[fg=#44475a] "
  56. # status right
  57. set -g status-right '#[fg=#8be9fd,bg=#44475a]#[fg=#44475a,bg=#8be9fd] #(tmux-mem-cpu-load -g 5 --interval 2) '
  58. set -ga status-right '#[fg=#ff79c6,bg=#8be9fd]#[fg=#44475a,bg=#ff79c6] #(uptime | cut -f 4-5 -d " " | cut -f 1 -d ",") '
  59. set -ga status-right '#[fg=#bd93f9,bg=#ff79c6]#[fg=#f8f8f2,bg=#bd93f9] %a %H:%M:%S #[fg=#6272a4]%Y-%m-%d '
  60. # ==============================================================================
  61. # Default Prefix
  62. set -g prefix C-b
  63. # Name Sorting
  64. bind s choose-tree -sZ -O name
  65. # Start Index 1 ...
  66. set -g base-index 1
  67. setw -g pane-base-index 1
  68. # Переназначение клавиш
  69. unbind %
  70. bind | split-window -h
  71. unbind '"'
  72. bind - split-window -v
  73. unbind r
  74. bind r source-file ~/.tmux.conf
  75. bind -r j resize-pane -D 5
  76. bind -r k resize-pane -U 5
  77. bind -r l resize-pane -R 5
  78. bind -r h resize-pane -L 5
  79. bind -r m resize-pane -Z
  80. set -g mouse on
  81. set-window-option -g mode-keys vi
  82. bind-key -T copy-mode-vi 'v' send -X begin-selection
  83. bind-key -T copy-mode-vi 'y' send -X copy-selection
  84. unbind -T copy-mode-vi MouseDragEnd1Pane
  85. # List of plugins
  86. # Install Plugin Control + n + Shift + I
  87. # Update Control + n + Shift + U
  88. set -g @plugin 'tmux-plugins/tpm'
  89. set -g @plugin 'tmux-plugins/tmux-sensible'
  90. set -g @plugin 'christoomey/vim-tmux-navigator'
  91. # set -g @plugin 'jimeh/tmux-themepack'
  92. set -g @plugin 'tmux-plugins/tmux-resurrect'
  93. set -g @plugin 'tmux-plugins/tmux-continuum'
  94. set -g @plugin 'tmux-plugins/tmux-sessionist'
  95. set -g @themepack 'powerline/default/purple'
  96. set -g @resurrect-capture-pane-contents 'on'
  97. set -g @continuum-restore 'on'
  98. # Initialize TMUX plugin manager (keep this line at the very bottom of tmux.conf)
  99. run '~/.tmux/plugins/tpm/tpm'