ref(tmux)

This commit is contained in:
thek4n 2024-04-05 09:38:53 +03:00
parent ec5b3a0e29
commit 7747600976

View File

@ -19,21 +19,34 @@ bind -T off F12 \
# Switch new named session
bind n command-prompt -p "New session:" "new-session -A -d -s '%1' \; switch-client -t '%1'"
# Kill session and reattach to last session
bind k confirm-before -p "kill current session? (y/n)" "switch-client -l \; kill-session -t '#S'"
# Call prompt via prefix ;
bind ';' command-prompt
# Zoom pane
bind -n M-f resize-pane -Z
# Lock screen
bind l confirm-before -p "lock tmux? (y/n)" lock-session
# Reload config
bind r source-file ~/.config/tmux/tmux.conf \; display-message "Config reloaded..."
# Panes navigation
bind -n M-h select-pane -L
bind -n M-l select-pane -R
bind -n M-j select-pane -D
bind -n M-k select-pane -U
# Windows navigation
bind -n M-p previous-window
bind -n M-n next-window
@ -57,6 +70,7 @@ bind -n M-t split-window -v -l 20% -c "#{pane_current_path}"
bind | split-window -h -c "#{pane_current_path}"
bind \\ split-window -v -c "#{pane_current_path}"
# Resizing
bind -n C-M-l resize-pane -R
bind -n C-M-h resize-pane -L
@ -77,11 +91,6 @@ bind -T copy-mode-vi Escape send-keys -X cancel
bind -T copy-mode-vi C-c send-keys -X cancel
bind -T copy-mode-vi q send-keys -X cancel
# Lock screen
bind l confirm-before -p "lock tmux? (y/n)" lock-session
# Reload config
bind r source-file ~/.config/tmux/tmux.conf \; display-message "Config reloaded..."
# Session managment
bind 1 run-shell ~/.tmux/01.sh