Mercurial > ec-dotfiles
changeset 699:5ca9e6f4039e
[tmux] support custom status bg
author | nanaya <me@nanaya.pro> |
---|---|
date | Mon, 31 Oct 2022 17:53:58 +0900 |
parents | 8c2ba562b15a |
children | 6811226a75d9 |
files | rc/tmux-2.9.conf |
diffstat | 1 files changed, 5 insertions(+), 1 deletions(-) [+] |
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] '