Skip to content

Instantly share code, notes, and snippets.

@akkerman
Created September 14, 2021 08:44
Show Gist options
  • Save akkerman/853d168d8a244f30ada96402fc4d4416 to your computer and use it in GitHub Desktop.
Save akkerman/853d168d8a244f30ada96402fc4d4416 to your computer and use it in GitHub Desktop.
set -g prefix C-a
unbind C-b
bind C-a send-prefix # press C-a twice to send it through
bind r source-file ~/.config/tmux/tmux.conf \; display "tmux.conf Reloaded"
set -g mouse
set -as terminal-overrides ',st*:Ss@' # fix for crashes (st, tmux, nvim)
setw -g mode-keys vi
set -g base-index 1
set -g pane-base-index 1
# split window {{{1
bind | split-window -h
bind - split-window -v
#}}}1
# gruvbox status bar {{{
set -g status "on"
# set -g status-attr "none"
set -g status-justify "left"
set -g status-bg "colour237"
# status left
# set -g status-left-attr "none"
set -g status-left-length "100"
set -g status-left "#[fg=colour237,bg=colour7,bold] #S #[fg=colour7,bg=colour237,nobold,nounderscore,noitalics] "
# status right
# set -g status-right-attr "none"
set -g status-right-length "100"
set -g status-right "#[fg=colour12]#{?client_prefix,#[reverse]Command#[noreverse] ,} #[fg=colour238,bg=colour237,nobold,nounderscore,noitalics]#[fg=colour7,bg=colour238] #{battery_percentage} #[fg=colour3,bg=colour237] #[fg=colour7,bg=colour238] %Y-%m-%d %H:%M #[fg=colour3,bg=colour237] #[fg=colour237,bg=colour7] #h "
# window
# setw -g window-status-attr "none"
setw -g window-status-separator ""
setw -g window-status-format " #[fg=colour7,bg=colour237]#I:#[fg=colour7,bg=colour237]#W "
# active window
# setw -g window-status-activity-attr "none"
setw -g window-status-current-format "#[fg=colour237,bg=colour3,nobold,nounderscore,noitalics]#[fg=colour237,bg=colour3] #I:#[fg=colour237,bg=colour3]#W #[fg=colour3,bg=colour237,nobold,nounderscore,noitalics]"
# panes
set -g pane-border-style fg=colour238
set -g pane-active-border-style fg=colour248
# command bar
set -g message-command-style fg=colour237,bg=colour248
set -g message-style fg=colour237,bg=colour248
# gruvbox status bar }}}1
# List of plugins {{{1
set -g @plugin 'tmux-plugins/tpm'
set -g @plugin 'tmux-plugins/tmux-sensible'
set -g @plugin 'christoomey/vim-tmux-navigator'
set -g @plugin 'tmux-plugins/tmux-battery'
# set -g @plugin 'egel/tmux-gruvbox' #
# Initialize TMUX plugin manager (keep this line at the very bottom of tmux.conf)
run -b '~/.config/tmux/plugins/tpm/tpm'
# }}}1
# vim: set fdm=marker fcs=fold\:\ :
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment