Use Second Keyboard for Macros #1031
Replies: 2 comments
-
While this is a cool idea, for us to consider it seriously, you'd have to demonstrate how the two keypresses can be differentiated outside of AutoKey. IDK what the desktop environment and lower levels like drivers do, but I would expect them to emit identical scan codes. If that's the case, AutoKey would have no way of detecting the difference. If you want to go down a rabbit hole, you can look into xmodmap and xkb. If they can tell the difference between the two keyboards, then you might be able to remap the keys on only the secondary keyboard to emit different characters that AutoKey could respond to. This approach has the advantage of being essentially independent of AutoKey, so you can ask the Linux gurus questions about it without even mentioning AutoKey which would be a lot more likely to get useful answers. Another direction to pursue was suggested by Le Chat AI: If I have two keyboards attached to a Linux system, is it possibe to tell which keyboard pressed a key in software like bash or Python? Using evtest Install evtest: Copy Copy Monitor a specific keyboard: Copy Using xinput List input devices: Copy Monitor a specific keyboard: Copy Example Copy Copy Copy By using these tools, you can programmatically determine which keyboard generated a key press event in your Linux system. This sounds hopeful, but hopefully you won't need sudo after you figure out what's going on. Running sudo from inside AutoKey - even if you can figure out how to get it authorized securely, is probably not a good idea. |
Beta Was this translation helpful? Give feedback.
-
The Customized special keys entry in the wiki might be useful to check the output of each keyboard. |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
Dropdown menu: (list of keyboards plugged in)
For each item, you get to choose which keyboard can initiate the action, and only from that keyboard alone.
I have a second keyboard that I want to use solely for macros, but both keyboards can initiate actions based on the shortcuts, which is not what I want. It would be cool if I can map
C
on my second keyboard that openschat
for example.Beta Was this translation helpful? Give feedback.
All reactions