diff --git a/.tmux.conf b/.tmux.conf index bbf0941..91bb701 100644 --- a/.tmux.conf +++ b/.tmux.conf @@ -29,31 +29,46 @@ unbind '"' unbind % bind Tab next-window -bind C-a previous-window +bind S-Tab previous-window +bind C-a last-window -set -g pane-active-border-style fg='#6f9dfe' -set -g status-style bg='#4f7dde',fg='#d3d0cc' +set -g pane-active-border-style bg='#6f9dfe',fg='#6f9dfe' -set -g status-left '#[bg=#4f7dde]#[fg=#d3d0cc]#{?client_prefix,#[bg=#cf8200]#[fg=#f8f8f8][A],[ ]}' +set -g status-style bg='#3f6dce',fg='#d3d0cc' -# set-window-option -g window-status-format "#{?client_prefix,#[bg=#cf8200],#[bg=#4f7dde]}#[fg=#d3d0cc] #I: #[fg=#d3d0cc,bold]#W #[fg=#d3d0cc,none][#{window_panes}#{?window_bell_flag,#[bg=#db4939]#[fg=#f8f8f8]!,.}#{?client_prefix,#[bg=#cf8200],#[bg=#4f7dde]}#F] " -set-window-option -g window-status-format " #I: #[fg=#d3d0cc,bold]#W #[fg=#d3d0cc,none][#{window_panes}#{?window_bell_flag,#[bg=#db4939]#[fg=#f8f8f8]!,.}#F] " +set -g status-left '#{tmux_mode_indicator}#[bg=#3f6dce]#[fg=#d3d0cc]#{?client_prefix,#[bg=#cf8200]#[fg=#f8f8f8][A],[ ]}#[bg=#3f6dce]##[fg=#2f5dbe]║' -set-window-option -g window-status-current-format "#{?client_prefix,#[bg=#cf8200],#[bg=#6f9dfe]}#[fg=#f8f8f8]<#I: #[fg=#ffffff,bold]#W #[fg=#f8f8f8,none][#{window_panes}#{?window_bell_flag,#[bg=#db4939]#[fg=#f8f8f8]!,.}#{?client_prefix,#[bg=#cf8200],#[bg=#6f9dfe]}#F]>" -set-window-option -g window-status-separator | +set-window-option -g window-status-format "#[bg=#4f7dde,noreverse] #I(#{?window_bell_flag,#[bg=#ffcc00]#[fg=#db4939]‼,#{?window_silence_flag,#[bg=#ffcc00]#[fg=#db4939]!,∘}}#[bg=#4f7dde]#[fg=#d3d0cc]#{window_panes})#{last_window}#{?window_last_flag,⁝,⁚} #[fg=#d3d0cc,bold]#W #[fg=#d3d0cc,none] " +set-window-option -g window-status-current-format "#{?client_prefix,#[bg=#cf8200],#[bg=#6f9dfe]}#[fg=#f8f8f8]❰#I(∘#[bg=#6f9dfe]#{window_panes}#{?client_prefix,#[bg=#cf8200],#[bg=#6f9dfe]})⁚ #[fg=#ffffff,bold]#W #[fg=#f8f8f8,none]❱" + +set-window-option -g window-status-separator "#[fg=#2f5dbe]║" #⟭⟬" + +set-window-option -g window-status-activity-style none + +# tmux-window-name config +# Shell programs, will show dir instead of the program +# set -g @tmux_window_name_shells "['zsh', 'bash', 'sh']" +# Programs that will show the dir name along with the program name. +# set -g @tmux_window_dir_programs "['kak', 'less', 'nvim', 'vim', 'vi', 'git']" # Plugins +# C-a I to install. +# C-a U to update. +# C-a Alt-u to uninstall. set -g @plugin 'tmux-plugins/tpm' set -g @plugin 'tmux-plugins/tmux-sensible' # set -g @plugin 'thewtex/tmux-mem-cpu-load' # FIXME does not work # set -g @plugin 'imomaliev/tmux-keyboard-layout' # FIXME does not work set -g @plugin 'tmux-plugins/tmux-net-speed' +set -g @plugin 'MunifTanjim/tmux-mode-indicator' +# set -g @plugin 'ofirgall/tmux-window-name' # set -g status-right '[#(tmux-mem-cpu-load --colors --graph-lines 10 --interval 2)] ~#{net_speed}~ _#{keyboard_layout}_ %H:%M:%S %Y-%m-%d(%W)' -set -g status-right '[#{download_speed}] — %H:%M:%S — %Y-%m-%d(%W)' +set -g status-right-length 50 +set -g status-right '↓#{download_speed}#[fg=#2f5dbe]║#[fg=#d3d0cc]#S#[fg=#ffffff]@#[fg=#d3d0cc]#h#[fg=#2f5dbe]║#[fg=#d3d0cc]%H:%M#[fg=#2f5dbe]║#[fg=#d3d0cc]%Y-%m-%d(%W)' # Initialize TMUX plugin manager (keep this line at the very bottom of tmux.conf) run '~/.tmux/plugins/tpm/tpm'