Created
July 22, 2021 13:09
-
-
Save nfedyashev/3a09fba0ac121a3b2c6b2d9bd9b23d5f to your computer and use it in GitHub Desktop.
i3blocks - clickable command counter
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[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