dotfiles/.tmux.conf

40 lines
1.8 KiB
Plaintext

set -g default-command "/usr/bin/bash"
# Support mouse scrolling, system clipboard, etc.
set -g mouse on
# CTRL-A instead of CTRL-B as prefix
unbind C-b
set-option -g prefix C-Space
bind-key C-a send-prefix
# Necessary for the styling!
setw -g pane-base-index 1
set -g base-index 1
# Styling
set-option -ga terminal-overrides ",xterm-256color:Tc"
set -g status-style bg=#3c3836,fg=#a89984
set -g status-left "#[bg=#fb4934,fg=#3c3836]  #{session_name} #[bg=#fe8019,fg=#fb4943]#[bg=#504945,fg=#fe8019]"
set -g window-status-format "#[bg=#504945] #{window_index}-#{window_name} #{?#{==:#{window_index},#{session_windows}},#[bg=#3c3836 fg=#504945],}"
set -g window-status-current-format "#[bg=#a89984,fg=#504945]#[fg=#282828] #{window_index}-#{window_name} #[bg=#504945,fg=#a89984]#{?#{==:#{window_index},#{session_windows}},#[bg=#3c3836],}"
set -g window-status-separator ""
set -g status-right "#(pwd) #[fg=#504945]#[bg=#504945,fg=#a89984] #(whoami)  #[bg=#a89984,fg=#282828] #{host_short} 󰍹 #[bg=#a89984,fg=#fe8019]#[bg=#fe8019,fg=#fb4934]#[bg=#fb4934,fg=#3c3836] #(date +%H:%M) "
set -g status-right-length 500
set -g status-interval 1
set -g pane-base-index 1
set -g pane-border-format "#{?pane_active,#[fg=#3c3836 bg=#fb4934] #{pane_index}-#{pane_current_command} #[fg=#fb4934 bg=default], #{pane_index}-#{pane_current_command} }"
set -g pane-border-status 'top'
set -g pane-border-style fg=#fb4934
set -g pane-active-border-style fg=#fb4934
bind-key -T prefix h select-pane -L
bind-key -T prefix j select-pane -D
bind-key -T prefix k select-pane -U
bind-key -T prefix l select-pane -R
bind-key -r -T prefix C-h resize-pane -L 2
bind-key -r -T prefix C-j resize-pane -D 2
bind-key -r -T prefix C-k resize-pane -U 2
bind-key -r -T prefix C-l resize-pane -R 2