60 lines
1.3 KiB
Bash
60 lines
1.3 KiB
Bash
# i47i tmux config — Nord theme
|
|
|
|
# Prefix
|
|
unbind C-b
|
|
set -g prefix C-a
|
|
bind C-a send-prefix
|
|
|
|
# General
|
|
set -g default-terminal "tmux-256color"
|
|
set -ga terminal-overrides ",xterm-256color:Tc"
|
|
set -g history-limit 50000
|
|
set -g mouse on
|
|
set -g base-index 1
|
|
setw -g pane-base-index 1
|
|
set -g renumber-windows on
|
|
set -sg escape-time 0
|
|
|
|
# Vi mode
|
|
setw -g mode-keys vi
|
|
bind -T copy-mode-vi v send -X begin-selection
|
|
bind -T copy-mode-vi y send -X copy-selection-and-cancel
|
|
|
|
# Splits
|
|
bind | split-window -h -c "#{pane_current_path}"
|
|
bind - split-window -v -c "#{pane_current_path}"
|
|
|
|
# Pane navigation
|
|
bind h select-pane -L
|
|
bind j select-pane -D
|
|
bind k select-pane -U
|
|
bind l select-pane -R
|
|
|
|
# Resize
|
|
bind -r H resize-pane -L 5
|
|
bind -r J resize-pane -D 5
|
|
bind -r K resize-pane -U 5
|
|
bind -r L resize-pane -R 5
|
|
|
|
# Nord palette
|
|
nord0="#2e3440"
|
|
nord1="#3b4252"
|
|
nord3="#4c566a"
|
|
nord4="#d8dee9"
|
|
nord8="#88c0d0"
|
|
nord9="#81a1c1"
|
|
nord11="#bf616a"
|
|
nord14="#a3be8c"
|
|
|
|
# Status bar
|
|
set -g status-style "bg=$nord1,fg=$nord4"
|
|
set -g status-left "#[fg=$nord0,bg=$nord9,bold] #S #[default] "
|
|
set -g status-right "#[fg=$nord4]%H:%M #[fg=$nord8]%d-%b "
|
|
set -g status-left-length 30
|
|
setw -g window-status-format " #I:#W "
|
|
setw -g window-status-current-format "#[fg=$nord0,bg=$nord8,bold] #I:#W "
|
|
|
|
# Pane borders
|
|
set -g pane-border-style "fg=$nord3"
|
|
set -g pane-active-border-style "fg=$nord8"
|