tmux: pretty much pointless update because i still dont use tmux

This commit is contained in:
Smirnov Oleksandr 2024-04-10 18:02:52 +03:00
parent 65435e18aa
commit 6d22e0a031

View file

@ -1,6 +1,9 @@
# vim: foldmethod=marker ts=2 sw=2
# general {{{
# i need my cute colors
set -g default-terminal "screen-256color" set -g default-terminal "screen-256color"
set-option -g status-position top
# mouse?
set -g mouse on set -g mouse on
set -sg escape-time 0 set -sg escape-time 0
set -g focus-events on set -g focus-events on
@ -8,29 +11,30 @@ set -g focus-events on
set -g base-index 1 set -g base-index 1
set -g pane-base-index 1 set -g pane-base-index 1
set -g pane-border-style fg=colour240 set-option -g allow-rename off
set -g pane-active-border-style fg=colour39
set-window-option -g window-status-current-style fg=colour39
# make bells fuck off
set -g visual-activity off
set -g visual-bell off
set -g visual-silence off
setw -g monitor-activity off
set -g bell-action none
# }}}
# help my vim addiction {{{
set-window-option -g mode-keys vi set-window-option -g mode-keys vi
bind-key -T copy-mode-vi 'v' send -X begin-selection bind-key -T copy-mode-vi 'v' send -X begin-selection
bind-key -T copy-mode-vi 'y' send -X copy-selection bind-key -T copy-mode-vi 'y' send -X copy-selection
unbind -T copy-mode-vi MouseDragEnd1Pane unbind -T copy-mode-vi MouseDragEnd1Pane
# }}}
# set prefix # keymaps {{{
set -g prefix C-r
unbind C-b unbind C-b
bind-key C-r send-prefix set -g prefix C-a
bind-key C-a send-prefix
# keys # some life-improvments
bind r source-file ~/.tmux.conf \; display 'Reloaded tmux config' bind r source-file ~/.tmux.conf \; display 'Reloaded tmux config'
bind Tab last-window bind Tab last-window
# split window
bind _ split-window -v
bind - split-window -h
# move windows
bind-key i swap-window -t -1
bind-key o swap-window -t +1
# change focus # change focus
bind -r h select-pane -L bind -r h select-pane -L
bind -r j select-pane -D bind -r j select-pane -D
@ -41,6 +45,14 @@ bind -r H resize-pane -L 2
bind -r J resize-pane -D 2 bind -r J resize-pane -D 2
bind -r K resize-pane -U 2 bind -r K resize-pane -U 2
bind -r L resize-pane -R 2 bind -r L resize-pane -R 2
# }}}
# apperence {{{
set-option -g status-position top
# colors
set -g pane-border-style fg=colour240
set -g pane-active-border-style fg=colour39
set-window-option -g window-status-current-style fg=colour39
# status bar # status bar
set -g status-right ' #{?client_prefix,*,} #S ' set -g status-right ' #{?client_prefix,*,} #S '
@ -48,8 +60,8 @@ set -g status-left ' '
set -g status-bg default set -g status-bg default
set -g status-fg colour254 set -g status-fg colour254
set -g status-style fg=colour110 set -g status-style fg=colour110
# }}}
# plugins # plugins {{{
set -g @plugin 'tmux-plugins/tpm' set -g @plugin 'tmux-plugins/tpm'
set -g @plugin 'tmux-plugins/tmux-resurrect' set -g @plugin 'tmux-plugins/tmux-resurrect'
set -g @plugin 'tmux-plugins/tmux-continuum' set -g @plugin 'tmux-plugins/tmux-continuum'
@ -58,3 +70,4 @@ set -g @resurrect-capture-pane-contents 'on'
set -g @continuum-restore 'on' set -g @continuum-restore 'on'
run '~/.tmux/plugins/tpm/tpm' run '~/.tmux/plugins/tpm/tpm'
# }}}