Skip to content

Instantly share code, notes, and snippets.

@perusio
Last active October 25, 2021 17:17
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 perusio/0bcb521efb9351c3e204cb0ce73c481b to your computer and use it in GitHub Desktop.
Save perusio/0bcb521efb9351c3e204cb0ce73c481b to your computer and use it in GitHub Desktop.
My tmux.conf
## tmux configuration.
## Inspired by: https://github.com/tony/tmux-config/blob/master/.tmux.conf
# https://github.com/seebi/tmux-colors-solarized/blob/master/tmuxcolors-256.conf
set-option -g status-style bg=colour235,fg=colour136,default # bg=base02, fg=yellow
# Easy reload config.
bind-key r source-file ~/.tmux.conf \; display-message "~/.tmux.conf reloaded."
# set window split
bind-key v split-window -h
bind-key b split-window
# Allows for faster key repetition
set -s escape-time 50
setw -g automatic-rename on # rename window to reflect current program
set -g renumber-windows on # renumber windows when a window is closed
# Activity monitoring
setw -g monitor-activity on
set -g visual-activity on
## From: https://thevaluable.dev/tmux-config-mouseless/.
set -g history-limit 100000
## Add mouse.
set -g mouse on
## From: https://github.com/gpakosz/.tmux/blob/master/.tmux.conf.
set -q -g status-utf8 on # expect UTF-8 (tmux < 2.2)
setw -q -g utf8 on
# Status update interval
set -g status-interval 1
# Start numbering at 1 for both windows and panes.
set -g base-index 1
setw -g pane-base-index 1
## From: https://www.hamvocke.com/blog/a-guide-to-customizing-your-tmux-conf/.
# Modes.
# setw -g clock-mode-colour darkgreen
# setw -g mode-style 'fg=colour1 bg=colour19 bold'
# # Panes.
# set -g pane-border-style 'fg=colour19 bg=colour0'
# set -g pane-active-border-style 'bg=colour0 fg=colour9'
# # Status bar.
#set -g status-position bottom
#set -g status-justify left
#set -g status-style 'bg=#deb887 fg=white dim' # BurlyWood xcolor: #DEB887
#set -g status-left ''
# set -g status-right-length 50
# set -g status-left-length 20
## With some ideas stolen from here: https://gist.github.com/sshadmand/70a9d339f49aeaf343de7ef8f74a54a2.
set -g status-bg black
set -g status-fg white
set -g window-status-current-style 'fg=black bg=white bold'
## Status for the existing windows.
setw -g window-status-format ' #I#[fg=colour237]:#[fg=colour250]#W#[fg=colour244]#F '
set -g status-interval 60
set -g status-left-length 30
## whoami@hostname on the left.
set -g status-left '#[fg=green](#S) #(whoami)@#(hostname) '
## Date on the left.
set -g status-right '#[fg=green] %d.%m.%Y#[fg=green] %H:%M:%S '
setw -g window-status-bell-style 'fg=colour255 bg=colour1 bold'
setw -g clock-mode-colour '#005f00'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment