dotfiles/tmux.conf
2021-05-10 17:57:51 +03:00

66 lines
1.4 KiB
Bash

###== General
set -sg escape-time 0
## Set prefix
set -g prefix C-d
## Set base index
set -g base-index 1
set -g pane-base-index 1
## Mouse support
set -g mouse on
setw -g mouse on
## 256 color support
set -g default-terminal "screen-256color"
set-option -sa terminal-overrides ",*:Tc"
###== Keybindongs
## HOME/END key support
bind-key -n Home send Escape "OH"
bind-key -n End send Escape "OF"
## Reload config
bind r source-file ~/.tmux.conf \; display 'Reloaded tmux config'
## Vim keys for change window
bind -r h select-pane -L
bind -r j select-pane -D
bind -r k select-pane -U
bind -r l select-pane -R
## Vim keys for resize window
bind -r H resize-pane -L 2
bind -r J resize-pane -D 2
bind -r K resize-pane -U 2
bind -r L resize-pane -R 2
## Alternative window move
bind-key i swap-window -t -1
bind-key o swap-window -t +1
## Alternative keys for create window
bind _ split-window -v
bind - split-window -h
## Change focus on last panel
bind Tab last-window
###== Status bar
## Position
set-option -g status-position top
## Items
set -g status-right ' #{?client_prefix,*,} #S '
set -g status-left ' '
## Colors
set -g status-bg default
set -g status-fg white
set -g status-style fg=colour110
###== Pane border colors
set -g pane-border-style fg=colour240
set -g pane-active-border-style fg=colour39
set-window-option -g window-status-current-style fg=colour39