This commit is contained in:
Marc Beninca 2025-01-18 22:38:40 +01:00
parent e9e12b6b64
commit 6f396db454
Signed by: marc.beninca
GPG key ID: 9C7613450C80C24F

View file

@ -127,45 +127,42 @@ set-option -g status-position top
# │ key │
# ╰─────╯
# select sessions with Alt & ↑ | ↓
# detach client
bind-key -n F6 detach-client
# new window
bind-key -n F2 new-window
# select pane
bind-key -n C-S-Down select-pane -D
bind-key -n C-S-Left select-pane -L
bind-key -n C-S-Right select-pane -R
bind-key -n C-S-Up select-pane -U
# switch session
bind-key -n M-Down switch-client -n
bind-key -n M-Up switch-client -p
# switch window
bind-key -n M-Left previous-window
bind-key -n M-Right next-window
# ╭─────┬────────╮
# │ key │ prefix │
# ╰─────┴────────╯
# split window
bind-key h split-window -h
bind-key v split-window -v
# reload configuration
bind-key r source-file ${file} \\; display-message 'source-file ${file}'
# toggle mouse
bind-key t set-option -g mouse \\; display-message 'mouse = #{mouse}'
# ╭─╮
# ╰─╯
# bind key to detach client
bind-key -n F6 detach-client
# swap window with next or previous
# swap window
bind-key M-Left swap-window -t -1
bind-key M-Right swap-window -t +1
# create new window with F2
bind-key -n F2 new-window
# previous or next window with Alt & ← | →
bind-key -n M-Left previous-window
bind-key -n M-Right next-window
# select panes with Ctrl & Shift & ←↑↓→
bind-key -n C-S-Down select-pane -D
bind-key -n C-S-Left select-pane -L
bind-key -n C-S-Right select-pane -R
bind-key -n C-S-Up select-pane -U
# horizontal split with H
bind-key h split-window -h
# vertical split with V
bind-key v split-window -v
"
}