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