Skip to content

Commit

Permalink
Firefox-style window switching for tmux
Browse files Browse the repository at this point in the history
  • Loading branch information
fortes committed Nov 15, 2023
1 parent d4f45e4 commit 3980ecf
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions stowed-files/tmux/.config/tmux/tmux.conf
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,17 @@ bind-key -N "Split window vertically" % split-window -h -c "#{pane_current_path}

# Custom Keybindings {{{

# Swap windows via Alt-<number>, similar to browser tabs in Firefox
bind-key -N "Swap to window 1" -n M-1 select-window -T -t 1
bind-key -N "Swap to window 2" -n M-2 select-window -T -t 2
bind-key -N "Swap to window 3" -n M-3 select-window -T -t 3
bind-key -N "Swap to window 4" -n M-4 select-window -T -t 4
bind-key -N "Swap to window 5" -n M-5 select-window -T -t 5
bind-key -N "Swap to window 6" -n M-6 select-window -T -t 6
bind-key -N "Swap to window 7" -n M-7 select-window -T -t 7
bind-key -N "Swap to window 8" -n M-8 select-window -T -t 8
bind-key -N "Swap to window 9" -n M-9 select-window -T -t 9

# Reload config via 'r' (also refresh-client, since that's default binding)
bind-key -N "Reload Configuration" r {
source-file ~/.config/tmux/tmux.conf;
Expand Down

0 comments on commit 3980ecf

Please sign in to comment.