by pydave · 3y ago · 0 comments
I found ahk python module [2] but combining it with the keyboard module doesn't work as well as autohotkey as a hotkey listener.
[1]: https://github.com/idbrii/daveconfig/blob/main/win/autohotke... [2]: https://pypi.org/project/ahk/
1. Do your multiline hotkeys have `Return` in them, or are they in braces?
2. Do you write `Send Foo` or `Send "Foo"`?
If you're doing the former, then I really recommend upgrading to v2, it makes a huge difference.
:-)
Windows: https://github.com/randyrants/sharpkeys
Ubuntu Linux (don't know about other Linuxes): /usr/share/X11/xkb/symbols/pc
key <CAPS> { [ Caps_Lock ] };
-> key <CAPS> { [ Control_L ] };
These solutions avoid needing to keep a keybinding application open. The Linux solution unfortunately resets after every version upgrade.(I am in the process of doing this inside OpenSCAD.)
Dreams of a universal hotkey listener you could use in any language via some wasm plugin magic?