1 files changed,
64 insertions(+),
32 deletions(-)
Author:
Oleksandr Smirnov
olexsmir@gmail.com
Committed at:
2026-01-13 19:57:09 +0200
Parent:
2c78743
M
config/tmux/tmux.conf
··· 1 -# vim: foldmethod=marker ts=2 sw=2 ft=tmux 1 +# vim: foldenable foldmethod=marker ts=2 sw=2 ft=tmux 2 2 # general {{{ 3 -# i need my cute colors 4 -set -g default-terminal "screen-256color" 3 +set -g default-shell /bin/fish 4 +set -g default-terminal "tmux-256color" 5 +set -ag terminal-overrides ",xterm-kitty:Tc,xterm-kitty:U8=0" 6 +set -g set-clipboard on 7 +set -g allow-passthrough on 8 +set -g detach-on-destroy off 9 +set -ga terminal-overrides ",*256col*:Tc" 5 10 6 11 # mouse? 7 12 set -g mouse on ··· 20 25 setw -g monitor-activity off 21 26 set -g bell-action none 22 27 # }}} 23 -# help my vim addiction {{{ 28 +# keymaps {{{ 29 +unbind C-b 30 +set -g prefix C-t 31 +bind-key C-t send-prefix 32 + 33 +## vim all the way 24 34 set-window-option -g mode-keys vi 25 35 bind-key -T copy-mode-vi 'v' send -X begin-selection 26 36 bind-key -T copy-mode-vi 'y' send -X copy-selection 27 37 unbind -T copy-mode-vi MouseDragEnd1Pane 28 -# }}} 29 -# keymaps {{{ 30 -unbind C-b 31 -set -g prefix C-a 32 -bind-key C-a send-prefix 33 38 34 -# some life improvements 35 -bind r source-file ~/.tmux.conf \; display 'Reloaded tmux config' 39 +bind R source-file ~/.config/tmux/tmux.conf \; display 'Reloaded tmux config' 36 40 bind Tab last-window 37 41 38 -# change focus 39 -bind -r h select-pane -L 40 -bind -r j select-pane -D 41 -bind -r k select-pane -U 42 -bind -r l select-pane -R 43 -# resizing panes 42 +unbind c; bind t new-window -c "#{pane_current_path}"; 43 +unbind <; bind < swap-window -t -1; 44 +unbind >; bind > swap-window -t +1; 45 +unbind x; bind w kill-pane; 46 +unbind f; bind f resize-pane -Z; 47 +unbind s; bind o choose-session; 48 +bind O choose-tree; 49 +unbind /; bind / copy-mode; 50 +unbind '%'; bind n split-window -h -c "#{pane_current_path}"; 51 +unbind '"'; bind N split-window -v -c "#{pane_current_path}"; 52 +unbind '$'; bind r command-prompt -I "#S" "rename-session -- '%%'"; 53 +bind = resize-pane -U 5; 54 +bind - resize-pane -D 5; 55 + 56 +bind C-n new-session 57 + 58 +bind -n M-1 select-window -t 1 59 +bind -n M-2 select-window -t 2 60 +bind -n M-3 select-window -t 3 61 +bind -n M-4 select-window -t 4 62 +bind -n M-5 select-window -t 5 63 +bind -n M-6 select-window -t 6 64 +bind -n M-7 select-window -t 7 65 +bind -n M-8 select-window -t 8 66 +bind -n M-9 select-window -t 9 67 + 68 +bind h select-pane -L 69 +bind j select-pane -D 70 +bind k select-pane -U 71 +bind l select-pane -R 44 72 bind -r H resize-pane -L 2 45 73 bind -r J resize-pane -D 2 46 74 bind -r K resize-pane -U 2 47 75 bind -r L resize-pane -R 2 48 76 # }}} 49 -# apperence {{{ 50 -set-option -g status-position top 51 - 52 -# colors 53 -set -g pane-border-style fg=colour240 54 -set -g pane-active-border-style fg=colour39 55 -set-window-option -g window-status-current-style fg=colour39 77 +# appearance {{{ 78 +set -g mode-style "fg=#7aa2f7,bg=#16161e" 79 +set -g message-style "fg=#7aa2f7,bg=#3b4261" 80 +set -g message-command-style "fg=#7aa2f7,bg=#1a1b26" 81 +set -g pane-border-style "fg=#3b4261" 82 +set -g pane-active-border-style "fg=#7aa2f7" 83 +set -g status-style "fg=#7aa2f7,bg=#1a1b26" 84 +set -g window-status-current-style "fg=#7aa2f7" 85 +set -g window-status-style "fg=#c0caf5" 56 86 57 -# status bar 58 -set -g status-right ' #{?client_prefix,*,} #S ' 59 -set -g status-left ' ' 60 -set -g status-bg default 61 -set -g status-fg colour254 62 -set -g status-style fg=colour110 87 +set-option -g status-position top 88 +set -g status-left-length 85 89 +set -g status-left ' #[fg=#7aa2f7,bold] #S#[fg=#a9b1d6,nobold] #{?client_prefix,█,|} #[default]' 90 +set -g status-right '' 63 91 # }}} 64 92 # plugins {{{ 65 93 set -g @plugin 'tmux-plugins/tpm' 94 +set -g @plugin 'tmux-plugins/tmux-yank' 66 95 set -g @plugin 'tmux-plugins/tmux-resurrect' 67 96 set -g @plugin 'tmux-plugins/tmux-continuum' 68 97 69 -set -g @resurrect-capture-pane-contents 'on' 70 98 set -g @continuum-restore 'on' 99 +set -g @continuum-save-interval '10' 100 +set -g @resurrect-capture-pane-contents 'on' 101 +set -g @resurrect-strategy-nvim 'session' 71 102 72 -run '~/.tmux/plugins/tpm/tpm' 103 +if "test ! -d ~/.config/tmux/plugins/tpm" "run 'git clone https://github.com/tmux-plugins/tpm ~/.config/tmux/plugins/tpm && ~/.config/tmux/plugins/tpm/bin/install_plugins'" 104 +run '~/.config/tmux/plugins/tpm/tpm' 73 105 # }}}