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