diff options
| author | kkard2 <[email protected]> | 2024-04-14 11:53:38 +0200 |
|---|---|---|
| committer | kkard2 <[email protected]> | 2024-04-14 11:53:38 +0200 |
| commit | 7ae47a147fd9b967ae7d5ec37b2f6ca26093781e (patch) | |
| tree | 6dd6a4078f44bce389fc5affe29f0a1318cd1366 /_linux/i3/i3status_command | |
| parent | 9c1cb758e71e8a0a49378e4dd7b813b84e191b83 (diff) | |
average linux shell script
Diffstat (limited to '_linux/i3/i3status_command')
| -rwxr-xr-x | _linux/i3/i3status_command | 8 |
1 files changed, 6 insertions, 2 deletions
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 |
