about summary refs log tree commit diff
path: root/swaywm/local/bin/i3status++
diff options
context:
space:
mode:
authorvenomade <venomade@venomade.com>2025-02-27 17:06:42 +0000
committervenomade <venomade@venomade.com>2025-02-27 17:06:42 +0000
commit1cace80e4832a5d250ef4b7ccd687996563fb01b (patch)
treedb1ced91d1382ca3cabe37dbae00da51231d6a99 /swaywm/local/bin/i3status++
Add old dotfiles
Diffstat (limited to 'swaywm/local/bin/i3status++')
-rwxr-xr-xswaywm/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