From dd5aa469dc2d3f6cec52deb54236b5827b25ef03 Mon Sep 17 00:00:00 2001 From: Sagi Dayan Date: Sun, 6 Nov 2022 15:59:01 +0200 Subject: [PATCH] tmux: Config update --- files/dotfiles/tmux.conf | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) diff --git a/files/dotfiles/tmux.conf b/files/dotfiles/tmux.conf index 83989fa..df7b38f 100644 --- a/files/dotfiles/tmux.conf +++ b/files/dotfiles/tmux.conf @@ -14,16 +14,16 @@ bind -n M-h select-pane -L bind -n M-l select-pane -R bind -n M-k select-pane -U bind -n M-j select-pane -D - + # -h|l|Left|Right bind-key h previous-window bind-key Left previous-window bind-key l next-window bind-key Right next-window - + # Mouse mode setw -g mouse on - + # Set easier window split keys bind-key | split-window -h -c "#{pane_current_path}" bind-key \\ split-window -h -c "#{pane_current_path}" @@ -89,7 +89,7 @@ set -g history-limit 5000 bind -n C-k clear-history # Default Colors -set -g default-terminal "xterm-256color" +set -g default-terminal "tmux-256color" # Home/End support bind -n End send-key C-e @@ -153,9 +153,11 @@ set-window-option -g window-status-format '#[fg=#6699cc,bg=#2d4d2d] #I #[fg=#999 # make foreground window look like bold yellow foreground tab set-window-option -g window-status-current-style none -set-window-option -g window-status-current-format '#[fg=#f99157]#[fg=#6699cc]#I #[fg=#ffffff,bg=#6699cc] #W #[default]' +set-window-option -g window-status-current-format '#[fg=#f99157]#[fg=#6699cc]#I #{?window_zoomed_flag,[🔎] ,}#[fg=#ffffff,bg=#6699cc] #W #[default]' # active terminal yellow border, non-active white set -g pane-border-style bg=default set -g pane-border-style fg="#999999" set -g pane-active-border-style fg="#f99157" + +#set-hook -g after-resize-pane 'if "[ #{window_zoomed_flag} -eq 1 ]" "run \"tmux select-pane -P bg=red\"" "run \"tmux select-pane -P bg=black\""'