Skip to content

Instantly share code, notes, and snippets.

@laszlocph
Created October 12, 2021 08:03
Show Gist options
  • Save laszlocph/75b8e24794b042c1a19db8f192e383e8 to your computer and use it in GitHub Desktop.
Save laszlocph/75b8e24794b042c1a19db8f192e383e8 to your computer and use it in GitHub Desktop.
TMUX config
# https://www.hamvocke.com/blog/a-guide-to-customizing-your-tmux-conf/
# remap prefix from 'C-b to C-a'
unbind C-b
set-option -g prefix C-a
bind-key C-a send-prefix
# remap panes using | and -
bind | split-window -h
bind - split-window -v
unbind '"'
unbind %
# switch panes using Alt-arrow without prefix
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
# Enable mouse mode (tmux 2.1 and above)
set -g mouse on
# don't rename windows automatically
set-option -g allow-rename off
######################
### DESIGN CHANGES ###
######################
# loud or quiet?
set-option -g visual-activity off
set-option -g visual-bell off
set-option -g visual-silence off
set-window-option -g monitor-activity off
set-option -g bell-action none
# modes
setw -g clock-mode-colour colour5
# statusbar
set -g status-position bottom
set -g status-justify left
set -g status-bg colour18
set -g status-fg colour137
set -g status-left ''
set -g status-right '#[fg=colour233,bg=colour19,bold] %d/%m #[fg=colour233,bg=colour8,bold] %H:%M:%S '
set -g status-right-length 50
set -g status-left-length 20
setw -g window-status-current-format ' #I#[fg=colour249]:#[fg=colour255]#W#[fg=colour249]#F '
setw -g window-status-format ' #I#[fg=colour237]:#[fg=colour250]#W#[fg=colour244]#F '
# don't confirm pane killing
bind-key x kill-pane
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment