-
Notifications
You must be signed in to change notification settings - Fork 25
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
How to assign multiple keypresses #18
Comments
No problems at all, thank YOU for trying it out and the kind words :) Unfortunately, you are limited to ONE key with modifiers. The modifiers are hard coded ( as per
Unfortunately this is a limitation of the firmware. The only way around this were if you had a running process that would capture a known combo and then produce the keys. This could be achieved using xbindkeys(1) to detect the combo, then xdotool to type the keys. |
I had explored xbindkeys + xdotool already and I was able to get them to work (see below); however they did not work within the proton/steam-play game "Grim Dawn.exe". Getting combos/macros working into these games is apparently non trivial. I'm still exploring other options. xbindkeys + xdotool use with ratslap
to test what that actually did, I can identify the button with xev. it appears however that xev can't detect the buttons properly if xbindkeys is running, so we kill it first.
then click inside the little xev test window and see what i get on the console
curious it calls that button 8 when i coded it as Button6. regardless..
kill any xbindkeys and restart it
and now when i press my g5 button 3 times, i get
|
I would try a key vs a mouse button too - might make a difference with the above and/or:
Does xmodmap -pp Mouse buttons work very different to keys and in fact the mouse even presents as different devices to deliver these events. I would certainly try keys as well, just in case. It doesn't even have to be one you have on your keyboard, eg |
Hi mate, thanks heaps for your efforts, I really appreciate what you have done and thanks so much for taking the time to document it and and publish it; it's awesome.
I was able to get ratslap working OK, and If i assign a single button it works fine; here i assign the number 5 key to mouse button 5:
As per your example I can use the + modifier OK:
However if i use the
+
syntax to assign both numbers 5 and 6 to mouse button 5 i get an error:The text was updated successfully, but these errors were encountered: