From 2229f7741b6680192901698475f8754925e5a0d3 Mon Sep 17 00:00:00 2001 From: Thomas Naderer Date: Sat, 21 Feb 2026 22:25:30 +0100 Subject: [PATCH] tmux: enforce prefix+number window switching --- tmux/tmux.conf | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/tmux/tmux.conf b/tmux/tmux.conf index 4a39e8d..5cb5f50 100644 --- a/tmux/tmux.conf +++ b/tmux/tmux.conf @@ -222,6 +222,18 @@ source-file ~/.config/tmux/themes/gruvbox.tmux # Toggle top status bar on/off (Prefix + b) bind b if -F "#{==:#{status},on}" "set -g status off ; set -g pane-border-status off" "set -g status on ; set -g pane-border-status top" +# Window switching with Prefix + number +bind-key -T prefix 1 select-window -t :=1 +bind-key -T prefix 2 select-window -t :=2 +bind-key -T prefix 3 select-window -t :=3 +bind-key -T prefix 4 select-window -t :=4 +bind-key -T prefix 5 select-window -t :=5 +bind-key -T prefix 6 select-window -t :=6 +bind-key -T prefix 7 select-window -t :=7 +bind-key -T prefix 8 select-window -t :=8 +bind-key -T prefix 9 select-window -t :=9 +bind-key -T prefix 0 select-window -t :=10 + # Theme switcher (Prefix + Shift+1/2/3 => !/@/#) bind ! source-file ~/.config/tmux/themes/gruvbox.tmux bind @ source-file ~/.config/tmux/themes/catppuccin.tmux