Closed Captn138 closed 2 months ago
I can verify the Problem and already found the Solution. The Problem is a wrong uinput key code in data_mappers/supported_devices.py.
KEY_PREVIOUS
needs to be KEY_PREVIOUSSONG
and
KEY_NEXT
needs to be KEY_NEXTSONG
KEY_STOP
needs to be KEY_STOPCD
I already tried it with a local rebuild and it works. I'll try to release a new version with the fix in a few days.
Thanks for reporting @Captn138
I released version 0.4.2 with the fix.
Just download the new version and use the uninstall and install script to update and all media keys should work fine.
Describe the bug The STOP, NEXT and PREVIOUS media keys do not work while using the g910-gkeys driver.
To Reproduce Steps to reproduce the behavior:
Expected behavior The keys should work as they do without the driver.
Additional info
Desktop:
Arch Linux
6.6.9-zen1-1-zen
Gnome 45.2
onWayland
0.4.0 (AUR)
3.11.6
[Service] Type=simple ExecStart=/usr/bin/env g910-gkeys ExecReload=/bin/kill -SIGUSR1 $MAINPID TimeoutStopSec=5 Restart=on-failure RestartSec=10
[Install] WantedBy=default.target
{ "__comment" : "following hotkey types are supported: nothing, typeout, shortcut and run; only en, fr, de and si keyboard mappings are currently supported", "keyboard_mapping": "fr", "notify": "False", "username": "captn", "profiles": { "MEMORY_1": { "MACRO_1": { "hotkey_type": "uinput", "do": "KEY_F14" }, "MACRO_2": { "hotkey_type": "uinput", "do": "KEY_F15" }, "MACRO_3": { "hotkey_type": "uinput", "do": "KEY_F16" }, "MACRO_4": { "hotkey_type": "uinput", "do": "KEY_F17" }, "MACRO_5": { "hotkey_type": "uinput", "do": "KEY_F18" }, "MACRO_6": { "hotkey_type": "shortcut", "do": "alt+F1" }, "MACRO_7": { "hotkey_type": "shortcut", "do": "alt+F2" }, "MACRO_8": { "hotkey_type": "shortcut", "do": "alt+F3" }, "MACRO_9": { "hotkey_type": "shortcut", "do": "alt+F12" } }, "MEMORY_2": { "MACRO_1": { "hotkey_type": "uinput", "do": "KEY_M" }, "MACRO_2": { "hotkey_type": "uinput", "do": "KEY_Y" }, "MACRO_3": { "hotkey_type": "uinput", "do": "KEY_F16" }, "MACRO_4": { "hotkey_type": "uinput", "do": "KEY_F17" }, "MACRO_5": { "hotkey_type": "uinput", "do": "KEY_F18" }, "MACRO_6": { "hotkey_type": "shortcut", "do": "alt+F1" }, "MACRO_7": { "hotkey_type": "shortcut", "do": "alt+F2" }, "MACRO_8": { "hotkey_type": "shortcut", "do": "alt+F3" }, "MACRO_9": { "hotkey_type": "shortcut", "do": "alt+F12" } }, "MEMORY_3": { "MACRO_1": { "hotkey_type": "uinput", "do": "KEY_F14" }, "MACRO_2": { "hotkey_type": "uinput", "do": "KEY_F15" }, "MACRO_3": { "hotkey_type": "uinput", "do": "KEY_F16" }, "MACRO_4": { "hotkey_type": "uinput", "do": "KEY_F17" }, "MACRO_5": { "hotkey_type": "uinput", "do": "KEY_F18" }, "MACRO_6": { "hotkey_type": "shortcut", "do": "alt+F1" }, "MACRO_7": { "hotkey_type": "shortcut", "do": "alt+F2" }, "MACRO_8": { "hotkey_type": "shortcut", "do": "alt+F3" }, "MACRO_9": { "hotkey_type": "shortcut", "do": "alt+F12" } } } }