123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130 |
- # # bind-key -T root WheelDownPane if-shell -F -t = "#{alternate_on}" "send-keys -M" "select-pane -t =; send-keys -M"
- #
- # set -g mouse on
- # setw -g mode-keys vi
- # set -sg escape-time 10
- # set-option -g default-terminal "screen-256color"
- # set-option -sa terminal-overrides ',xterm-256color:RGB'
- # set -g history-limit 10000
- # set -g focus-events on
- #
- # bind-key -T copy-mode-vi 'v' send -X begin-selection
- # bind-key -T copy-mode-vi 'y' send -X copy-selection-and-cancel
- #
- # bind-key j select-pane -D
- # bind-key k select-pane -U
- # bind-key h select-pane -L
- # bind-key l select-pane -R
- #
- # # Split horiziontal and vertical splits, instead of % and "
- # # Also open them in the same directory
- # bind-key v split-window -h -c '#{pane_current_path}'
- # bind-key s split-window -v -c '#{pane_current_path}'
- ### =================================================================================================================================
- # Dracula Colours
- # background_color '#282a36'
- # current_line_color '#44475a'
- # foreground_color '#f8f8f2'
- # comment_color '#6272a4'
- # cyan '#8be9fd'
- # green '#50fa7b'
- # orange '#ffb86c'
- # pink '#ff79c6'
- # purple '#bd93f9'
- # red '#ff5555'
- # yellow '#f1fa8c'
- # tmux colorscheme
- set-option -g default-terminal "screen-256color"
- # pane border
- set -g pane-border-style fg='#6272a4'
- set -g pane-active-border-style fg='#ff79c6'
- # message text
- set -g message-style bg='#44475a',fg='#8be9fd'
- # status line
- set -g status-style bg='#44475a',fg='#bd93f9'
- set -g status-interval 1
- # status left
- # are we controlling tmux or the content of the panes?
- set -g status-left '#[bg=#f8f8f2]#[fg=#282a36]#{?client_prefix,#[bg=#ff79c6],} ☺ '
- # are we zoomed into a pane?
- set -ga status-left '#[bg=#44475a]#[fg=#ff79c6] #{?window_zoomed_flag, ↕ , }'
- # window status
- set-window-option -g window-status-style fg='#bd93f9',bg=default
- set-window-option -g window-status-current-style fg='#ff79c6',bg='#282a36'
- set -g window-status-current-format "#[fg=#44475a]#[bg=#bd93f9]#[fg=#f8f8f2]#[bg=#bd93f9] #I #W #[fg=#bd93f9]#[bg=#44475a]"
- set -g window-status-format "#[fg=#f8f8f2]#[bg=#44475a]#I #W #[fg=#44475a] "
- # status right
- set -g status-right '#[fg=#8be9fd,bg=#44475a]#[fg=#44475a,bg=#8be9fd] #(tmux-mem-cpu-load -g 5 --interval 2) '
- set -ga status-right '#[fg=#ff79c6,bg=#8be9fd]#[fg=#44475a,bg=#ff79c6] #(uptime | cut -f 4-5 -d " " | cut -f 1 -d ",") '
- set -ga status-right '#[fg=#bd93f9,bg=#ff79c6]#[fg=#f8f8f2,bg=#bd93f9] %a %H:%M:%S #[fg=#6272a4]%Y-%m-%d '
- # ==============================================================================
- # Default Prefix
- set -g prefix C-b
- # Name Sorting
- bind s choose-tree -sZ -O name
- # Start Index 1 ...
- set -g base-index 1
- setw -g pane-base-index 1
- # Переназначение клавиш
- unbind %
- bind | split-window -h
- unbind '"'
- bind - split-window -v
- unbind r
- bind r source-file ~/.tmux.conf
- bind -r j resize-pane -D 5
- bind -r k resize-pane -U 5
- bind -r l resize-pane -R 5
- bind -r h resize-pane -L 5
- bind -r m resize-pane -Z
- set -g mouse on
- set-window-option -g mode-keys vi
- bind-key -T copy-mode-vi 'v' send -X begin-selection
- bind-key -T copy-mode-vi 'y' send -X copy-selection
- unbind -T copy-mode-vi MouseDragEnd1Pane
- # List of plugins
- # Install Plugin Control + n + Shift + I
- # Update Control + n + Shift + U
- set -g @plugin 'tmux-plugins/tpm'
- set -g @plugin 'tmux-plugins/tmux-sensible'
- set -g @plugin 'christoomey/vim-tmux-navigator'
- # set -g @plugin 'jimeh/tmux-themepack'
- set -g @plugin 'tmux-plugins/tmux-resurrect'
- set -g @plugin 'tmux-plugins/tmux-continuum'
- set -g @plugin 'tmux-plugins/tmux-sessionist'
- set -g @themepack 'powerline/default/purple'
- set -g @resurrect-capture-pane-contents 'on'
- set -g @continuum-restore 'on'
- # Initialize TMUX plugin manager (keep this line at the very bottom of tmux.conf)
- run '~/.tmux/plugins/tpm/tpm'
|