diff --git a/home/user/.config/tmux/aliases.conf b/home/user/.config/tmux/aliases.conf index dcaa31c..4bbab08 100644 --- a/home/user/.config/tmux/aliases.conf +++ b/home/user/.config/tmux/aliases.conf @@ -35,4 +35,8 @@ set -g command-alias[109] toggle-zoom='resize-pane -Z' set -g command-alias[110] default-layout=" resize-pane -x $_tmux_main_pane_size select-layout '6c98,213x55,0,0{72x55,0,0,72,140x55,73,0,73}' -" \ No newline at end of file +" + +set -g command-alias[111] enable-zoom=' + if -F "#{window_zoomed_flag}" "" "resize-pane -Z" +' \ No newline at end of file diff --git a/home/user/.config/tmux/mappings.conf b/home/user/.config/tmux/mappings.conf index f9368a1..031d2b7 100644 --- a/home/user/.config/tmux/mappings.conf +++ b/home/user/.config/tmux/mappings.conf @@ -45,7 +45,7 @@ bind t display-popup -E -h 70% -w 60% bind c display-menu \ calendar c "display-popup -w 33% -h 70% 'cal -my'" \ - time t "clock-mode" + time t "enable-zoom; clock-mode" # Switch new session