Skip to content

Instantly share code, notes, and snippets.

@mubeeniqbal
Last active August 29, 2015 14:10
Show Gist options
  • Save mubeeniqbal/abc233276c3185dac15b to your computer and use it in GitHub Desktop.
Save mubeeniqbal/abc233276c3185dac15b to your computer and use it in GitHub Desktop.
Wrapper script for Conky to run with i3bar.
#!/usr/bin/env bash
#
# Wrapper script for Conky to run with i3bar.
# Send the header so that i3bar knows we want to use JSON.
echo '{"version":1}'
# Begin an 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 --config="${HOME}/.conkyrc"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment