dotfiles

$HOME is where the <3 is
git clone git://git.alexkarle.com/dotfiles.git
Log | Files | Refs | Submodules | README

commit 23b940ce79f3007e7c14a9d6ead42d837419c93a (patch)
parent a7e3c5b0662a68e21165596c6af6bd4cccbc0b99
Author: Alex Karle <alex@karle.co>
Date:   Wed, 17 Jul 2019 00:03:02 -0400

[tmux] add slstatus to statusline, other theme tweaks

Most changes are just reorganizing the config to be a bit cleaner.

The clever part to this (not really, but I thought it was cool) is that
if a command for the statusline doesn't terminate, tmux just grabs the
topmost line. slstatus with the -s flag does just this--printing to
STDOUT every second (at which point tmux will grab the latest and
greatest).

Diffstat:
Mtmux/tmux.conf | 26+++++++++++++++++++-------
1 file changed, 19 insertions(+), 7 deletions(-)

diff --git a/tmux/tmux.conf b/tmux/tmux.conf @@ -56,18 +56,30 @@ set allow-rename off # Patch for apps such as electron in tmux on osx # set-option -g default-command "which reattach-to-user-namespace > /dev/null && reattach-to-user-namespace -l $SHELL || $SHELL" -# Nicer colored status bar -set -g status-style "fg=white,bg=black" +#-------# +# THEME # +#-------# + +# Message (command line) styles set -g message-command-style "fg=white,bg=black" set -g message-style "fg=white,bg=black" + +# Highlight current window in blue set -g window-status-current-style "fg=brightwhite,bg=blue" -# Show clock + update every minute -set -g status-right "[$USER@#h] [%m/%d/%y %I:%M]" -set -g status-right-style "bg=magenta" -set -g status-left-style "bg=yellow" +# Status +set -g status-style "fg=white,bg=black" set -g status-interval 60 -# border colours +# Status Left +set -g status-left-length 20 +set -g status-left-style "fg=black,bg=yellow" + +# Status Right +set -g status-right "[$USER@#h] #(slstatus -s)" +set -g status-right-length 90 +set -g status-right-style "fg=black,bg=magenta" + +# Border colors set -g pane-border-style fg=default,bold set -g pane-active-border-style fg=blue,bold