diff options
Diffstat (limited to 'tmux/.config')
-rw-r--r-- | tmux/.config/tmux/tmux.conf | 49 |
1 files changed, 22 insertions, 27 deletions
diff --git a/tmux/.config/tmux/tmux.conf b/tmux/.config/tmux/tmux.conf index 350dc95..f6444b7 100644 --- a/tmux/.config/tmux/tmux.conf +++ b/tmux/.config/tmux/tmux.conf @@ -1,22 +1,18 @@ -set-option -g default-terminal 'tmux-256color' +set -g default-terminal 'tmux-256color' -set-option -ga terminal-features ',*:hyperlinks' -set-option -ga terminal-features ',*:RGB' -set-option -ga terminal-features ',*:usstyle' -set-option -ga terminal-features ',*:strikethrough' +set -ga terminal-overrides ',*:Tc' +set -ga terminal-overrides ',*:RGB' +set -ga terminal-overrides ',*:Smulx=\E[4::%p1%dm' +set -ga terminal-overrides ',*:Setulc=\E[58::2::%p1%{65536}%/%d::%p1%{256}%/%{255}%&%d::%p1%{255}%&%d%;m' -set-option -g escape-time 50 -set-option -g mouse on -set-option -g prefix C-a +set -g escape-time 50 +set -g mouse on +set -g prefix C-a -set-option -g base-index 1 -set-option -g pane-base-index 1 -set-option -g detach-on-destroy off -set-option -g status-keys vi -set-option -g status-interval 1 - -set-option -g status-left "#[#{?client_prefix,#{window-status-bell-style},#{status-left-style}}][#S:#{host_short}]#[#{status-style}] " -set-option -g status-right "%Y-%m-%d %H:%M:%S" +set -g base-index 1 +set -g pane-base-index 1 +set -g detach-on-destroy off +set -g status-keys vi bind-key -N "Switch last session" A switch-client -l bind-key -N "Clock" T clock-mode @@ -49,21 +45,20 @@ bind-key '*' if-shell 'tmux swapw -d -t :=8' '' 'movew -t :=8' bind-key '(' if-shell 'tmux swapw -d -t :=9' '' 'movew -t :=9' bind-key ')' if-shell 'tmux swapw -d -t :=0' '' 'movew -t :=0' -set-option -g @colors-base16 'gruvbox-dark-hard' - -source-file -q $BASE16_CONFIG_PATH/tmux.base16.conf +set -g @plugin 'tmux-plugins/tpm' +set -g @plugin 'tmux-plugins/tmux-sensible' +set -g @plugin 'tmux-plugins/tmux-pain-control' +set -g @plugin 'lawabidingcactus/tmux-gruvbox-truecolor' -set-option -g @plugin 'tmux-plugins/tpm' -set-option -g @plugin 'tmux-plugins/tmux-sensible' -set-option -g @plugin 'tmux-plugins/tmux-pain-control' -set-option -g @plugin 'tinted-theming/base16-tmux' - -if-shell "test ! -d $XDG_CONFIG_HOME/tmux/plugins/tpm" \ +if "test ! -d $XDG_CONFIG_HOME/tmux/plugins/tpm" \ "run 'git clone https://github.com/tmux-plugins/tpm $XDG_CONFIG_HOME/tmux/plugins/tpm \ && $XDG_CONFIG_HOME/tmux/plugins/tpm/bin/install_plugins'" -run-shell '$XDG_CONFIG_HOME/tmux/plugins/tpm/tpm' +run '$XDG_CONFIG_HOME/tmux/plugins/tpm/tpm' + +set -g status-left-length 30 +set -g status-left "#[bg=#A89984, fg=#3C3836]#{?client_prefix,#[bg=#fe8019],#[bg=#A89984]} #{s|$HOME|~|:session_path} " %if #{m:*ssh,#{socket_path}} -source-file "$XDG_CONFIG_HOME/tmux/ssh.conf" +source "$XDG_CONFIG_HOME/tmux/ssh.conf" %endif |