From 8ef8a28c718dbae2e83fb5c6cbef62ef6196f2e4 Mon Sep 17 00:00:00 2001 From: srdusr Date: Wed, 24 May 2023 22:52:57 +0200 Subject: Show current vi-mode onto tmux status --- .config/tmux/tmux.conf | 63 +++++++++++++++++++++++++++++--------------------- 1 file changed, 37 insertions(+), 26 deletions(-) (limited to '.config/tmux/tmux.conf') diff --git a/.config/tmux/tmux.conf b/.config/tmux/tmux.conf index 25effb5..99fd2fc 100644 --- a/.config/tmux/tmux.conf +++ b/.config/tmux/tmux.conf @@ -186,30 +186,35 @@ setw -g window-active-style fg=white ### Status ### -set -g status-position bottom # [top, bottom] -set -g status on -set -g status-interval 1 -set -g status-style fg=#50fa7b,bg=default - -## Left -#set -g status-left "" -set -g status-left-length 60 -set -g status-left "#[fg=#50fa7b,bg=default]#[bg=#50fa7b,fg=black] ❐ #S #[fg=#50fa7b,bg=default]" - -## Centre -set -g window-status-current-format "#[bg=default,fg=#50fa7b]#[fg=black,bg=#50fa7b] #I:#W #[bg=default,fg=#50fa7b]" -set -g status-justify absolute-centre - -## Right -set-option -g status-right "" -set -g status-right-length 60 -set -g status-right "#[fg=#50fa7b,bg=default] #{?client_prefix,#[reverse] Prefix #[noreverse] ,} #[bg=default,fg=#50fa7b]#[bg=#50fa7b,fg=black] %H:%M #[bg=default,fg=#50fa7b]" - -## Reload Status with IP addr, Cpu, Mem and Date -bind a run-shell ~/.config/tmux/tmux-toggle-option.sh - -## Reload Config/Status silently -bind b source-file ~/.config/tmux/tmux.conf +#set -g status-position bottom # [top, bottom] +#set -g status on +#set -g status-interval 1 +#set -g status-style fg=#50fa7b,bg=default +# +### Left +##set -g status-left "" +#set -g status-left-length 60 +#set -g status-left "#[fg=#50fa7b,bg=default]#[bg=#50fa7b,fg=black] ❐ #S #[fg=#50fa7b,bg=default]" +# +### Centre +#set -g window-status-current-format "#[bg=default,fg=#50fa7b]#[fg=black,bg=#50fa7b] #I:#W #[bg=default,fg=#50fa7b]" +#set -g status-justify absolute-centre +# +### Right +#set-option -g status-right "" +#set -g status-right-length 60 +#set -g status-right "#[fg=#50fa7b,bg=default] #{?client_prefix,#[reverse] Prefix #[noreverse] ,} #[bg=default,fg=#50fa7b]#[bg=#50fa7b,fg=black] %H:%M #[bg=default,fg=#50fa7b]" +# +### Reload Status with IP addr, Cpu, Mem and Date +#bind a run-shell ~/.config/tmux/tmux-toggle-option.sh +# +### Reload Config/Status silently +#bind b source-file ~/.config/tmux/tmux.conf + +set-option -g default-shell "/usr/bin/zsh" + +set -g status-interval 500 +set -g status-right "#[fg=white,bg=black]#(cat ~/.vi-mode)" #―――――――――――――――――――――――――――――――――――――――――― @@ -222,6 +227,8 @@ set -g @plugin "tmux-plugins/tmux-resurrect" set -g @plugin "tmux-plugins/tmux-continuum" set -g @plugin "christoomey/vim-tmux-navigator" #set -g @plugin "tmux-plugins/tmux-yank" +#set -g @plugin 'srdusr/tmux-vi-mode' +#set -g @plugin 'vi-mode ~/.config/tmux/plugins/vi-mode.sh' #―――――――――――――――――――――――――――――――――――――――――― @@ -256,10 +263,14 @@ set -g @plugin "christoomey/vim-tmux-navigator" # Press + alt + u to remove the plugin. # TMUX plugin manager (keep at the bottom of tmux.conf) - #run -b "~/.tmux/plugins/tpm/tpm" + #run "~/.config/tmux/plugins/tpm/tpm" 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'" run -b "~/.config/tmux/plugins/tpm/tpm" +# Load the vi-mode plugin - +#run-shell '~/.config/tmux/plugins/tmux-vi-mode/tmux-vi-mode.tmux' +#run-shell '~/.config/tmux/vi-mode' +# Load the vi-mode plugin +#run '~/.config/tmux/plugins/tpm/plugins/tmux-vi-mode/tmux-vi-mode.tmux' #―――――――――――――――――――――――――――――――――――――――――― -- cgit v1.2.3