#!/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"