tmuxcolours.conf 1.3 KB

123456789101112131415161718192021222324252627282930
  1. # vim: ft=tmux
  2. # https://raw.githubusercontent.com/seebi/tmux-colors-solarized/master/tmuxcolors-256.conf
  3. source-file ~/dotfiles/tmux/tmuxcolors-256.conf
  4. # Default status line options.
  5. set-option -g status on
  6. set-option -g status-interval 2
  7. set-option -g status-bg colour234
  8. set-option -g status-fg colour231
  9. set-option -g status-attr default
  10. # Central window list.
  11. # `#I` = index, `#F` = last window indicator, `#W` = window name
  12. set-option -g status-justify "centre"
  13. set-option -g window-status-format "#[bg=colour234] #[fg=colour244]#I#[fg=red]#F#[fg=colour249]#W "
  14. set-option -g window-status-current-format "#[bg=red] #[fg=colour231]#I #[bold]#W "
  15. # Left status.
  16. # `#S` session name, `#h` = hostname
  17. set-option -g status-left-length 90
  18. set-option -g status-left '#[fg=colour189,bg=colour55] #h #[fg=colour55,bg=colour233] #S #[fg=colour233,bg=colour234]'
  19. # Right status.
  20. # `#H:#M %d/%m/%y` = hours, minutes, day, month, year
  21. set-option -g status-right-length 90
  22. set-option -g status-right '#[fg=colour233]#[fg=colour166,bg=colour233] %H:%M #[fg=colour233,bg=colour166]%d/%m/%y #(rainbarf --remaining --rgb --width 10)'
  23. if-shell '[[ $(version-compare $(tmux -V | sed "s/[tmux ]//g") 2.1) -le 0 ]]' 'set-option -g status-utf8 on'
  24. if-shell '[[ $(version-compare $(tmux -V | sed "s/[tmux ]//g") 2.1) -ge 0 ]]' 'source-file ~/dotfiles/tmux/tmuxcolours2.conf'