Skip to content

Instantly share code, notes, and snippets.

@telescreen
Last active June 8, 2020 02:25
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save telescreen/2bea724e52772fb14b8ff8e7746ffc9a to your computer and use it in GitHub Desktop.
Save telescreen/2bea724e52772fb14b8ff8e7746ffc9a to your computer and use it in GitHub Desktop.
Tmux config
# remap prefix from 'C-b' to 'C-a'
unbind C-b
set-option -g prefix C-o
bind-key C-o send-prefix
# split 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
set -g mouse on
# don't rename windows automatically
set-option -g allow-rename off
######################
### DESIGN CHANGES ###
######################
set -g default-terminal "xterm-256color"
# panes
set -g pane-border-style fg=black
set -g pane-active-border-style fg=brightred
# 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 on
set-window-option -g mode-keys vi
set-option -g bell-action none
# The modes {
setw -g clock-mode-colour colour135
setw -g mode-style bold
setw -g mode-style fg=colour196
setw -g mode-style bg=colour238
# }
# The panes {
set -g pane-border-style bg=colour235
set -g pane-border-style fg=colour238
set -g pane-active-border-style bg=colour236
set -g pane-active-border-style fg=colour202
# }
# The statusbar {
# status line
set -g status-justify left
set -g status-interval 2
set -g status-position bottom
set -g status-left ''
set -g status-right '#{sysstat_cpu} #{sysstat_mem} #{sysstat_swap} #{sysstat_loadavg}'
set -g status-right-length 100
set -g status-left-length 20
set -g status-bg colour235
set -g status-fg colour12
setw -g window-status-current-style fg=colour166
setw -g window-status-current-style bold
setw -g window-status-current-format ' #I#[fg=colour231]:#[fg=colour231]#W#[fg=colour231]#F '
setw -g window-status-format ' #I#[fg=colour237]:#[fg=colour250]#W#[fg=colour244]#F '
setw -g window-status-bell-style bold
setw -g window-status-bell-style bg=colour255
setw -g window-status-bell-style fg=colour1
set -g @sysstat_cpu_color_low "colour76"
set -g @sysstat_cpu_color_medium "colour220"
set -g @sysstat_cpu_color_stress "colour196"
set -g @sysstat_mem_color_low "colour40"
set -g @sysstat_mem_color_medium "colour27"
set -g @sysstat_mem_color_stress "colour196"
set -g @sysstat_swap_color_low "colour40"
set -g @sysstat_swap_color_medium "colour27"
set -g @sysstat_swap_color_stress "colour196"
# }
# The messages {
set -g message-style bold
set -g message-style fg=colour232
set -g message-style bg=colour166
# }
bind -T copy-mode-vi y send-keys -X copy-pipe-and-cancel 'xclip -in -selection clipboard'
# List of plugins
set -g @plugin 'tmux-plugins/tpm'
set -g @plugin 'tmux-plugins/tmux-sensible'
set -g @plugin 'samoshkin/tmux-plugin-sysstat'
run -b '~/.tmux/plugins/tpm/tpm'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment