diff --git a/tmux.conf b/tmux.conf index d76defc..30481cf 100644 --- a/tmux.conf +++ b/tmux.conf @@ -13,6 +13,7 @@ set -g @plugin 'tmux-plugins/tmux-resurrect' # Config that is very close to a i3 window manager's keybinding. set -s escape-time 0 setw -g aggressive-resize on +set -sg repeat-time 1000 # First remove *all* keybindings unbind-key -a @@ -36,7 +37,7 @@ setw -g pane-base-index 1 # Set new prefix # Note : you can press super key by set M. # (tested with tty only) -set -g prefix M-f +set -g prefix C-f bind-key Space send-prefix # Clock @@ -46,18 +47,20 @@ setw -g clock-mode-style 24 bind R source-file ~/.tmux.conf \; display-message "Config reloaded" # Mouse on/off -set -g mouse off +set -g mouse on # Split window -bind-key g split-window -h +bind-key C-v split-window -h bind-key v split-window -v # Rotate Window # bind-key -n M-o rotate-window # Swap pane -bind-key -r L swap-pane -U -bind-key -r K swap-pane -D +# bind-key -r H swap-pane -L +bind-key -r J swap-pane -D +bind-key -r K swap-pane -U +# bind-key -r L swap-pane -R # Move pane with Control (no prefix) bind-key h select-pane -L @@ -66,10 +69,10 @@ bind-key k select-pane -U bind-key l select-pane -R # Resize pane with Alt (prefix with repeat) -bind-key -r H resize-pane -L 5 \; display-message "Resize left" -bind-key -r J resize-pane -D 5 \; display-message "Resize down" -bind-key -r K resize-pane -U 5 \; display-message "Resize up" -bind-key -r L resize-pane -R 5 \; display-message "Resize right" +bind-key -r C-H resize-pane -L 5 \; display-message "Resize left" +bind-key -r C-J resize-pane -D 5 \; display-message "Resize down" +bind-key -r C-K resize-pane -U 5 \; display-message "Resize up" +bind-key -r C-L resize-pane -R 5 \; display-message "Resize right" # Automatically set window title set-window-option -g automatic-rename on