From 7ae47a147fd9b967ae7d5ec37b2f6ca26093781e Mon Sep 17 00:00:00 2001 From: kkard2 Date: Sun, 14 Apr 2024 11:53:38 +0200 Subject: average linux shell script --- _linux/i3/i3status_command | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) (limited to '_linux/i3/i3status_command') diff --git a/_linux/i3/i3status_command b/_linux/i3/i3status_command index 98b4b82..e130914 100755 --- a/_linux/i3/i3status_command +++ b/_linux/i3/i3status_command @@ -1,5 +1,9 @@ #!/usr/bin/bash +echo '{"version":1}' # ig?? +echo '[' +echo '[]' + i3status | while : do # following text is certainly code @@ -8,9 +12,9 @@ do if [[ $(pactl get-source-mute @DEFAULT_SOURCE@ | rg "yes") ]]; then - muted="MUTED MUTED MUTED MUTED MUTED MUTED|" + muted="MUTED MUTED MUTED MUTED MUTED MUTED MUTED MUTED MUTED MUTED" fi - line="$muted$line" + line=",[{\"full_text\":\"$muted\",\"background\":\"#ff00ff\"},{\"full_text\":\"$line\"}]" echo "$line" || exit 1 done -- cgit v1.3.1