Skip to content

Commit 2b44e06

Browse files
committed
feat(tmux): set up layouts cycle key
1 parent 19d692a commit 2b44e06

File tree

1 file changed

+7
-5
lines changed

1 file changed

+7
-5
lines changed

dot_config/tmux/tmux.conf

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,6 @@ set -g default-terminal "tmux-256color"
66
unbind C-b
77
set -g prefix C-Space
88
bind C-Space send-prefix
9-
bind Space last-window
109

1110
# Start numbering at 1
1211
set -g base-index 1
@@ -56,6 +55,13 @@ bind -T copy-mode-vi 'C-k' select-pane -U
5655
bind -T copy-mode-vi 'C-l' select-pane -R
5756
bind C-l send C-l
5857

58+
# Open pane in current directory
59+
bind % split-window -h -c "#{pane_current_path}"
60+
bind '"' split-window -v -c "#{pane_current_path}"
61+
62+
# Cycle through layouts
63+
bind -r Space next-layout
64+
5965
# Escape to enter copy mode, v to selection, y to yank, p to paste
6066
bind Escape copy-mode
6167
bind -T copy-mode-vi v send -X begin-selection
@@ -67,10 +73,6 @@ bind p paste-buffer -p
6773
# Reload configuration
6874
bind r source-file ~/.config/tmux/tmux.conf \; display-message "Config reloaded"
6975

70-
# Open pane in current directory
71-
bind % split-window -h -c "#{pane_current_path}"
72-
bind '"' split-window -v -c "#{pane_current_path}"
73-
7476
# Configure catppuccin plugin
7577
source-file -q ~/.config/tmux/theme.conf
7678
set -g @catppuccin_flavor "mocha"

0 commit comments

Comments
 (0)