Skip to content

Instantly share code, notes, and snippets.

@siddharthvipul
Created September 28, 2018 09:51
Show Gist options
  • Save siddharthvipul/e871076dbf8b7527f016b3bd6c1a0eae to your computer and use it in GitHub Desktop.
Save siddharthvipul/e871076dbf8b7527f016b3bd6c1a0eae to your computer and use it in GitHub Desktop.
set -g default-terminal "screen-256color"
set -g status-justify centre
setw -g monitor-activity on
set -g visual-activity on
setw -g mode-keys vi
# remap prefix from 'C-b' to 'C-a'
unbind C-b
set-option -g prefix C-a
bind-key C-a send-prefix
# 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
# switch panes using prefix+vim style navigation
bind h select-pane -L
bind j select-pane -D
bind k select-pane -U
bind l select-pane -R
# split panes using | and -
bind v split-window -h
bind s split-window -v
unbind '"'
unbind %
# Enable mouse control (clickable windows, panes, resizable panes)
set -g mouse on
# Reload tmux config
bind r source-file ~/.tmux.conf
######################
### 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 colour6
setw -g mode-attr bold
setw -g mode-fg colour1
setw -g mode-bg colour2
# panes
set -g pane-border-bg colour0
set -g pane-border-fg colour19
set -g pane-active-border-bg colour0
set -g pane-active-border-fg colour9
# statusbar
set -g status-position bottom
set -g status-justify left
set -g status-bg colour23
set -g status-fg colour137
set -g status-attr dim
set -g status-left ''
set -g status-right '#[fg=colour233,bg=colour4,bold]%d/%m#[fg=colour233,bg=colour163,bold] %H:%M '
set -g status-right-length 50
set -g status-left-length 20
setw -g window-status-current-fg colour1
setw -g window-status-current-bg colour4
setw -g window-status-current-attr bold
setw -g window-status-current-format '#I#[fg=colour249]:#[fg=colour255]#W#[fg=colour249]#F '
setw -g window-status-fg colour9
setw -g window-status-bg colour4
setw -g window-status-attr none
setw -g window-status-format '#I#[fg=colour237]:#[fg=colour250]#W#[fg=colour255]#F '
setw -g window-status-bell-attr bold
setw -g window-status-bell-fg colour15
setw -g window-status-bell-bg colour1
# messages
set -g message-attr bold
set -g message-fg colour255
set -g message-bg colour16
#}}}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment