Mercurial > ec-dotfiles
diff rc/tmux-2.9.conf @ 699:5ca9e6f4039e
[tmux] support custom status bg
author | nanaya <me@nanaya.pro> |
---|---|
date | Mon, 31 Oct 2022 17:53:58 +0900 |
parents | 5ebfac7426e5 |
children | 9ad5a65b1c7e |
line wrap: on
line diff
--- a/rc/tmux-2.9.conf Wed Oct 26 18:08:51 2022 +0900 +++ b/rc/tmux-2.9.conf Mon Oct 31 17:53:58 2022 +0900 @@ -1,6 +1,10 @@ set -g default-terminal "screen-256color" set -g repeat-time 0 -set -g status-bg cyan +%if "#{==:${TMUX_STATUS_BG},}" + set -g status-bg cyan +%else + set -g status-bg "${TMUX_STATUS_BG}" +%endif set -g status-fg black set -g status-left '#[bg=white,fg=black] #S #[default] '