Skip to content

Instantly share code, notes, and snippets.

@langerma
Last active August 27, 2018 18:20
Show Gist options
  • Save langerma/1aaa97425423011d709433442c1acdb4 to your computer and use it in GitHub Desktop.
Save langerma/1aaa97425423011d709433442c1acdb4 to your computer and use it in GitHub Desktop.
.tmux.conf with battery and cpu / tpm plugins solarized
# tmux options
set-option -g default-terminal "screen-256color"
set-option -g mouse on
#set -g status-justify "centre"
set -g status "on"
set -g status-attr "none"
set -g status-left-attr "none"
set -g status-right-attr "none"
setw -g window-status-attr "none"
setw -g window-status-separator ""
# List of plugins
set -g @plugin 'seebi/tmux-colors-solarized'
set -g @plugin 'tmux-plugins/tpm'
set -g @plugin 'tmux-plugins/tmux-sensible'
set -g @plugin 'tmux-plugins/tmux-prefix-highlight'
set -g @plugin 'tmux-plugins/tmux-battery'
set -g @plugin 'tmux-plugins/tmux-cpu'
set -g @plugin 'tmux-plugins/tmux-yank'
set -g @plugin 'tmux-plugins/tmux-prefix-highlight'
set -g @plugin 'tmux-plugins/tmux-sidebar'
#set -g @colors-solarized '256'
set -g @colors-solarized 'dark'
#set -g @colors-solarized 'light'
#set -g @colors-solarized 'base16'
#set -g status-left "#S  #{prefix_highlight}"
#set -g status-right " #{cpu_icon}#{cpu_percentage}  %R  %a  %Y  #H"
#setw -g window-status-format "#I  #W "
#setw -g window-status-current-format "#I  #W "
set -g status-left-length "100"
set -g status-right-length "100"
set -g @prefix_highlight_fg "colour7"
set -g @prefix_highlight_bg "colour11"
set -g status-left "#[fg=colour15,bg=colour14,bold] #S  #{battery_graph} #{battery_percentage} #[fg=colour14,bg=colour0,nobold,nounderscore,noitalics]"
set -g status-right "#{prefix_highlight} #[fg=colour11,bg=colour0,nobold,nounderscore,noitalics]#[fg=colour7,bg=colour11] #{cpu_icon}#{cpu_percentage}  %R  %a %d-%m #[fg=colour14,bg=colour11,nobold,nounderscore,noitalics]#[fg=colour15,bg=colour14] #h "
setw -g window-status-format "#[fg=colour10,bg=colour0] #I:#[fg=colour10,bg=colour0] #W "
setw -g window-status-current-format "#[fg=colour0,bg=colour11,nobold,nounderscore,noitalics]#[fg=colour7,bg=colour11] #I:#[fg=colour7,bg=colour11] #W #[fg=colour11,bg=colour0,nobold,nounderscore,noitalics]"
run '~/.tmux/plugins/tpm/tpm'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment