From 23b940ce79f3007e7c14a9d6ead42d837419c93a Mon Sep 17 00:00:00 2001 From: Alex Karle Date: Wed, 17 Jul 2019 00:03:02 -0400 Subject: [PATCH] [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). --- tmux/tmux.conf | 26 +++++++++++++++++++------- 1 file changed, 19 insertions(+), 7 deletions(-) diff --git a/tmux/tmux.conf b/tmux/tmux.conf index e61a5d7..90e7587 100644 --- 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 -- libgit2 0.28.4