does not need a display server. run as root or with input group.

printf ' ___\n/. .\\\n| . | cookie clicker\n\\___/\n' >&2 | cat /dev/input/mice | stdbuf --output=L xxd -pc3 | stdbuf --output=L sed -Ee 's/^./_/g' -e 's/....$//' -e 's/^_[13579bdf]/click/' -Ee 's/^_[^13579bdf]//' | stdbuf --output=L uniq | stdbuf --output=L grep click | pv -lrb >/dev/null

You must log in to comment.