You are not logged in.
I'm playing a game that requires a particular key to be mashed quite often. I'd like to be able to just hold the key instead of having to mash it to reduce finger strain.
I know that you can use xdotool to send keystrokes, and it does have a repeat option for repeated keystrokes. I also know how to bind commands to keys using xbindkeys, but it only sends them once.
Does anyone here know how to bind a key to send a command multiple times until I stop holding the key? Or alternatively, any packages that allow for rapid fire keystrokes directly?
Offline
while xinput query-state <device name here> | grep "key\[37\]=down"; do xdotool keyup ctrl keydown ctrl sleep 0.5; doneObviously kc 37 is (left) control, assuming that's the non-autorepeating key you're looking for.
Offline