Skip to content

Instantly share code, notes, and snippets.

@nfedyashev
Created July 22, 2021 13:09
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save nfedyashev/3a09fba0ac121a3b2c6b2d9bd9b23d5f to your computer and use it in GitHub Desktop.
Save nfedyashev/3a09fba0ac121a3b2c6b2d9bd9b23d5f to your computer and use it in GitHub Desktop.
i3blocks - clickable command counter
[click-loop-json]
full_text=Click me!
command=ruby -r json -n -e '$_ = JSON.parse($_)' -e '$_["full_text"] = "Click %s at (%d,%d)" % $_.slice("button", "x", "y").values' -e 'puts JSON.dump($_)' -e 'STDOUT.flush'
interval=persist
format=json
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment