summaryrefslogtreecommitdiffstats
path: root/.i3/conky-wrapper.sh
diff options
context:
space:
mode:
Diffstat (limited to '.i3/conky-wrapper.sh')
-rwxr-xr-x.i3/conky-wrapper.sh13
1 files changed, 13 insertions, 0 deletions
diff --git a/.i3/conky-wrapper.sh b/.i3/conky-wrapper.sh
new file mode 100755
index 0000000..7d90551
--- /dev/null
+++ b/.i3/conky-wrapper.sh
@@ -0,0 +1,13 @@
+#!/bin/bash
+
+# Send the header so that i3bar knows we want to use JSON:
+printf "%s" '{"version":1}'
+
+# Begin the endless array.
+printf "%s" '['
+
+# We send an empty first array of blocks to make the loop simpler:
+printf "%s" '[],'
+
+# Now send blocks with information forever:
+exec conky -c "$HOME/.i3/conkyrc"