dotfiles/tmux.conf

64 lines
1.8 KiB
Plaintext
Raw Normal View History

2020-06-26 12:19:50 +00:00
# https://gist.github.com/spicycode/1229612
2021-01-15 13:46:24 +00:00
set -g default-terminal "screen-256color"
2021-03-12 09:37:10 +00:00
set -ga terminal-overrides ',*256col*:Tc'
2020-06-26 12:19:50 +00:00
2021-03-12 09:37:10 +00:00
set -g base-index 1
2020-06-26 12:19:50 +00:00
set-window-option -g automatic-rename off
set-window-option -g allow-rename off
set-option -g set-titles on
2021-01-11 09:05:25 +00:00
set -g status-style 'fg=white, bg=colour8'
set -g window-status-current-style 'fg=black, bg=green'
set -g status-right '#[fg=black, bg=colour2] #(cut -d " " -f 1-3 /proc/loadavg) #[default] #[fg=white, bg=colour238] %H:%M #[default]'
2021-01-15 13:46:24 +00:00
set -g status-justify centre
2020-06-26 12:19:50 +00:00
2021-01-06 13:34:33 +00:00
set-window-option -g mode-keys vi
2020-06-26 12:19:50 +00:00
set -g status-keys vi
set -g history-limit 10000
set -g escape-time 0
2020-07-01 09:51:53 +00:00
set -g repeat-time 1000
2021-01-11 09:05:25 +00:00
setw -g mouse on
2020-06-26 12:19:50 +00:00
bind-key v split-window -h
bind-key s split-window -v
2021-01-11 09:05:25 +00:00
bind-key p new-window \; set window-status-style fg=white,bg=red
2020-06-26 12:19:50 +00:00
bind-key J resize-pane -D 5
bind-key K resize-pane -U 5
bind-key H resize-pane -L 5
bind-key L resize-pane -R 5
bind-key M-j resize-pane -D
bind-key M-k resize-pane -U
bind-key M-h resize-pane -L
bind-key M-l resize-pane -R
# Vim style pane selection
bind h select-pane -L
2021-01-11 09:05:25 +00:00
bind j select-pane -D
2020-06-26 12:19:50 +00:00
bind k select-pane -U
bind l select-pane -R
# Use Alt-vim keys without prefix key to switch panes
bind -n M-h select-pane -L
2021-01-11 09:05:25 +00:00
bind -n M-j select-pane -D
2020-06-26 12:19:50 +00:00
bind -n M-k select-pane -U
bind -n M-l select-pane -R
# Use Alt-arrow keys without prefix key to switch panes
bind -n M-Left select-pane -L
bind -n M-Right select-pane -R
bind -n M-Up select-pane -U
bind -n M-Down select-pane -D
# Shift arrow to switch windows
bind -n S-Left previous-window
bind -n S-Right next-window
2021-01-11 09:05:25 +00:00
bind -n C-S-Left swap-window -t -1\; select-window -t -1
bind -n C-S-Right swap-window -t +1\; select-window -t +1
2020-06-26 12:19:50 +00:00
bind -T copy-mode-vi y send-keys -X copy-pipe-and-cancel 'xclip -in -selection clipboard'
2021-01-19 08:54:13 +00:00
bind -n C-S-K send-keys -R \; clear-history
2020-06-26 12:19:50 +00:00
bind r source-file ~/.tmux.conf \; display "Reloading config..."