dotfiles-remastered/.tmux.conf

62 lines
1.7 KiB
Plaintext
Raw Normal View History

2020-08-23 13:55:59 +00:00
# Prefix to C-a
set-option -g prefix C-a
# Start with index 1
set -g base-index 1
setw -g pane-base-index 1
# Clock
setw -g clock-mode-style 24
# unbind all
unbind-key -a
# command
bind-key : command-prompt
# detach client
bind-key d detach-client
# Config Reloads
bind r source-file ~/.tmux.conf \; display-message "Config reloaded"
# Split window
bind-key h split-window -h
bind-key v split-window -v
# Kill Selected Pane
bind-key q kill-pane
# Move to pane with Control (no prefix)
bind-key -n M-h select-pane -L
bind-key -n M-j select-pane -D
bind-key -n M-k select-pane -U
bind-key -n M-l select-pane -R
# Move to pane with arrow keys
bind-key Left select-pane -L
bind-key Down select-pane -D
bind-key Up select-pane -U
bind-key Right select-pane -R
# Switch windows
bind-key -n M-1 if-shell 'tmux select-window -t 1' '' 'new-window -t 1'
bind-key -n M-2 if-shell 'tmux select-window -t 2' '' 'new-window -t 2'
bind-key -n M-3 if-shell 'tmux select-window -t 3' '' 'new-window -t 3'
bind-key -n M-4 if-shell 'tmux select-window -t 4' '' 'new-window -t 4'
bind-key -n M-5 if-shell 'tmux select-window -t 5' '' 'new-window -t 5'
bind-key -n M-6 if-shell 'tmux select-window -t 6' '' 'new-window -t 6'
bind-key -n M-7 if-shell 'tmux select-window -t 7' '' 'new-window -t 7'
bind-key -n M-8 if-shell 'tmux select-window -t 8' '' 'new-window -t 8'
bind-key -n M-9 if-shell 'tmux select-window -t 9' '' 'new-window -t 9'
bind-key -n M-0 if-shell 'tmux select-window -t 10' '' 'new-window -t 10'
# resize pane
bind-key -n M-H resize-pane -L 5
bind-key -n M-J resize-pane -D 5
bind-key -n M-K resize-pane -U 5
bind-key -n M-L resize-pane -R 5
2022-01-20 00:21:30 +00:00
# Enable mouse scroll
set -g mouse on