diff --git a/.config/tmux/tmux.conf b/.config/tmux/tmux.conf index dca947d..8bcbd49 100644 --- a/.config/tmux/tmux.conf +++ b/.config/tmux/tmux.conf @@ -45,13 +45,16 @@ set -g @fingers-key f # Binds bind-key 'x' kill-pane bind-key 'h' previous-window +bind-key 'H' swap-window -t -1\; select-window -t -1 bind-key 'j' switch-client -p bind-key 'k' switch-client -n bind-key 'l' next-window +bind-key 'L' swap-window -t +1\; select-window -t +1 bind-key 'n' new-window -c '#{pane_current_path}' bind-key 'N' new-window bind-key 'c' kill-window + # Decide whether we're in a Vim process is_vim="ps -o state= -o comm= -t '#{pane_tty}' \ | grep -iqE '^[^TXZ ]+ +(\\S+\\/)?g?(view|n?vim?x?)(diff)?$'" @@ -66,7 +69,7 @@ unbind o bind-key 'o' if-shell "$is_vim" 'send-keys F8' 'select-pane -R' unbind s -bind-key 's' display-popup -E -w 60% -h 40% "~/.local/bin/tms" +bind-key 's' display-popup -E -w 60% -h 70% "~/.local/bin/tms" unbind t bind-key 't' display-popup -E -w 60% -h 40% "~/.local/bin/change-theme.sh" unbind g