diff options
Diffstat (limited to 'swaywm/local/bin/i3status++')
-rwxr-xr-x | swaywm/local/bin/i3status++ | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/swaywm/local/bin/i3status++ b/swaywm/local/bin/i3status++ new file mode 100755 index 0000000..ea4ede6 --- /dev/null +++ b/swaywm/local/bin/i3status++ @@ -0,0 +1,8 @@ +#!/bin/bash + +i3status | (read line; echo "$line"; read line ; echo "$line" ; read line ; echo "$line" ; while true +do + read line + json_array="$(echo $line | sed -e 's/^,//')" + echo ",$json_array" +done) \ No newline at end of file |