You are not logged in.
Pretty much the title, I'm trying to remap my mouse buttons to alt+q and alt+e and i'm not sure how to do it. i'm using kde and i tried using input-remapper but it doesn't seem capable of using one device to simulate another. Any help would be appreciated.
Offline
it doesn't seem capable of using one device to simulate another
https://github.com/sezanzeb/input-remapper/ certainly claims otherwise - what do you base your assumption on?
https://wiki.archlinux.org/title/Input_remap_utilities
If you're running kde on wayland, pick one that operates in the evdev/libinput level - cause the assumption that what works on one wayland compositor will also work on another is indeed a weak one.
Offline
Not basing it on an assumption but my own testing. I tried mapping the alt+q to BTN_LEFT (which as I understand it is the syntax for left click) and alt+e to BTN_RIGHT but upon testing it nothing happened. I can only assume that it either has a bug or just doesn't work between different devices. Either way I'm looking for some sort of work around
Offline
1. Ok, but how did you test the input succes
2. So you're trying to emulate the mouse with a keyboard shortcut, not the other way round?
3. Please don't paraphrase, https://bbs.archlinux.org/viewtopic.php?id=57855 - post the actual macro you added.
4. The dameon starts/is running, you can contact it and other (simpler) mappings work?
Offline
1 and 4. After adding the macros in input remapper I applied the remapper layout (by hitting the apply button) and tested other macros (I used Alt_L + w for up arrow and a few other simple ones) which all worked. The only macros which didn't were the ones binded to mouse buttons.
2. Yes precisely
3. Not Exactly sure what you mean or what you are asking for me to add? There's no way that i see to copy/paste a full macro?
Macros i'm trying to add:
ALT_L+Q -> BTN_LEFT
ALT_L+E -> BTN_RIGHT
I'm also away from my computer for about another hour so I can't include any logs for a while
Offline
Offline
the second article linked suggest that i use key(BTN_LEFT) and key(BTN_RIGHT) which is slightly different than what i was doing but it still isn't working. as for the first link, that one is referring to input combinations which require multiple devices at the same time, which is not what i am doing, my combination only requires the keyboard.
Last edited by brekker23 (2025-03-23 16:53:36)
Offline
oh for some reason it wasn't saving the fact that i was switching the target to mouse+keyboard? just noticed that. after a restart it seems to be working BUT the autostart failed -- very odd. Should i open a new issue for that?
Last edited by brekker23 (2025-03-23 17:05:50)
Offline
No, what's the service status, resp. does the system journal show the failure?
Offline