commit c4f7a4bc77a4815f05f189187ec9e82e589188d6
parent 5d2e2d83458a624a3c4b452ffcf2db8901180d74
Author: Alex Balgavy <alex@balgavy.eu>
Date: Sun, 27 Dec 2020 19:01:41 +0100
tmux: mpd paused indicator
Diffstat:
2 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/tmux/tmux-dark.conf b/tmux/tmux-dark.conf
@@ -16,7 +16,7 @@ set -g status-fg '#969696'
set -g status-interval 5
set -g status-justify right
set -g status-left-length 60
-set -g status-left '#[fg=#557983]» #[fg=#88a6f8,bold]#T#{?pane_synchronized, #[fg=#f59970#,bold][SYNC],} #[default,align=centre,italics]#(mpc current)#[default]'
+set -g status-left '#[fg=#557983]» #[fg=#88a6f8,bold]#T#{?pane_synchronized, #[fg=#f59970#,bold][SYNC],} #[default,align=centre,italics]#(mpc | grep -i '^\[paused\]' >/dev/null && printf "⏸ ")#(mpc current)#[default]'
set -g status-right-length 60
set -g status-right '#[fg=#557983,bold] »» Sesh #S | #(battery -p)%% | %R (%b %d, %a)#[default]'
set -g visual-activity on
diff --git a/tmux/tmux-light.conf b/tmux/tmux-light.conf
@@ -16,7 +16,7 @@ set -g status-fg '#2c2625'
set -g status-interval 5
set -g status-justify right
set -g status-left-length 60
-set -g status-left '#[fg=#228822]» #[fg=#4477ff,bold]#T#{?pane_synchronized, #[fg=#cc5500#,bold][SYNC],} #[default,align=centre,italics]#(mpc current)#[default]'
+set -g status-left '#[fg=#228822]» #[fg=#4477ff,bold]#T#{?pane_synchronized, #[fg=#cc5500#,bold][SYNC],} #[default,align=centre,italics]#(mpc | grep -i "^\[paused\]" >/dev/null && printf "⏸ ")#(mpc current)#[default]'
set -g status-right-length 60
set -g status-right "#[fg=#4477ff,bold] »» Sesh #S | #(battery -p)%% | %R (%b %d, %a)#[default]"
set -g visual-activity on