dotfiles

configuration files for shell, text editor, graphical environment, etc.
git clone git://src.adamsgaard.dk/dotfiles
Log | Files | Refs | README | LICENSE Back to index

commit 149852eecffd6f0296082871a13cf19615283652
parent 9352f9503dc5b19b86767b3d1470385195b00bbf
Author: Anders Damsgaard <anders@adamsgaard.dk>
Date:   Tue, 21 May 2019 12:48:39 +0200

Hide tmux status if there is only a single window

Diffstat:
M.tmux.conf | 6+++++-
1 file changed, 5 insertions(+), 1 deletion(-)

diff --git a/.tmux.conf b/.tmux.conf @@ -42,12 +42,16 @@ set -g message-command-style fg=white # appearance of status message cmds set -g status-left "" # Status bar visibility -set -g status off bind -r -n M-t set status on bind -r -n M-T set status off bind t set status on bind T set status off +# Hide status bar if there is only one window +if -F "#{==:#{session_windows},1}" "set -g status off" "set -g status on" +set-hook -g window-linked 'if -F "#{==:#{session_windows},1}" "set -g status off" "set -g status on"' +set-hook -g window-unlinked 'if -F "#{==:#{session_windows},1}" "set -g status off" "set -g status on"' + # Right section of status bar if-shell 'uname | grep -qi Darwin' "set -g status-right \"#[fg=#81a2be]#(/usr/local/bin/mpc | head -n 1 | sed 's/volume.*$//') #[fg=cyan]#(~/.local/bin/battery-osx) #(~/.local/bin/mailstatus) #[fg=yellow]#(uptime|sed 's/.* //') #[fg=#666666]%F #[fg=#bababa]%R\""