From 72d74b370ea1515ee4755f3714e2f746cc1cba93 Mon Sep 17 00:00:00 2001 From: kkard2 Date: Sat, 4 Jan 2025 10:39:39 +0100 Subject: maybe now i'll be able to see --- _linux/i3/i3status_command | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to '_linux/i3') diff --git a/_linux/i3/i3status_command b/_linux/i3/i3status_command index 4ffa8b4..9200583 100755 --- a/_linux/i3/i3status_command +++ b/_linux/i3/i3status_command @@ -9,12 +9,14 @@ do # following text is certainly code read line muted="" + color="#000000" if [[ $(pactl get-source-mute @DEFAULT_SOURCE@ | rg "yes") ]]; then + color="#ff0000" muted=" MUTED " fi - line=",[{\"full_text\":\"$muted\",\"background\":\"#ff0000\"},{\"full_text\":\"$line\"}]" + line=",[{\"full_text\":\"$muted\",\"background\":\"#ff0000\"},{\"full_text\":\"$line\",\"background\":\"$color\"}]" echo "$line" || exit 1 done -- cgit v1.3.1