repeats / Repeat

Cross-platform mouse/keyboard record/replay and automation hotkeys/macros creation, and more advanced automation features.
Apache License 2.0
1.03k stars 76 forks source link

Add support for "mod" key in i3wm on linux #23

Closed Migacz85 closed 3 years ago

Migacz85 commented 4 years ago

Hi It would be cool to have this working with i3wm. - Because everything there is keyboard driven. It would be nice to have possibility to use this tool along with i3wm. But unfortunetly this software is not registering "mod" key which is a win key in my case.

hptruong93 commented 4 years ago

Could you provide more details? The Win key is recognized as VK_META in Linux. https://github.com/repeats/SimpleNativeHooks/blob/master/src/org/simplenativehooks/x11/X11NativeKeyEvent.java#L351 https://github.com/torvalds/linux/blob/master/include/uapi/linux/input-event-codes.h#L202

What is the hotkey that you registered for your action? Or were you trying to record an action and replay it?

hptruong93 commented 4 years ago

Key #126 which is the right META key is not mapped. Perhaps this is your missing key. I'll update the underlying library. https://github.com/repeats/SimpleNativeHooks/blob/master/src/org/simplenativehooks/x11/X11NativeKeyEvent.java#L355

hptruong93 commented 4 years ago

The right META key should now be mapped in the latest release https://github.com/repeats/Repeat/releases/tag/v5.4.1

Let me know if this fixes the problem.

hptruong93 commented 3 years ago

Closing due to inactivity. Feel free to reopen if there's any new information.