summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorkkard2 <[email protected]>2025-01-04 10:39:39 +0100
committerkkard2 <[email protected]>2025-01-04 10:39:39 +0100
commit72d74b370ea1515ee4755f3714e2f746cc1cba93 (patch)
tree3ae2bba6468acdab09dafb2eb564f94837c23a3e
parent36be36db446b480a1e1edfc4aea2f2e6972b490f (diff)
maybe now i'll be able to see
-rwxr-xr-x_linux/i3/i3status_command4
1 files changed, 3 insertions, 1 deletions
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