remapping scroll wheel button to spacebar doesn't actually get injected
i'm trying to remap the middle mouse button or scroll wheel button to the spacebar for a game. this works fine in the gui but doesn't actually get injected
remapper version = 2.1.1 6d846cf
2. which linux distro arch kernel = 6.15.9
3. echo $XDG_SESSION_TYPE=wayland
4. which desktop environment =gnome
5. sudo ls -l /proc/1/exe = lrwxrwxrwx 1 root root 0 Aug 13 08:28 /proc/1/exe -> /usr/lib/systemd/systemd
-
json = [ { "input_combination": [ { "type": 1, "code": 2, "origin_hash": "cbd82f8e273a779d08321edb5bffb04d" } ], "target_uinput": "keyboard", "output_symbol": "2", "mapping_type": "key_macro" }, { "input_combination": [ { "type": 1, "code": 3, "origin_hash": "cbd82f8e273a779d08321edb5bffb04d" } ], "target_uinput": "keyboard", "output_symbol": "3", "mapping_type": "key_macro" }, { "input_combination": [ { "type": 1, "code": 5, "origin_hash": "cbd82f8e273a779d08321edb5bffb04d" } ], "target_uinput": "keyboard", "output_symbol": "1", "mapping_type": "key_macro" }, { "input_combination": [ { "type": 1, "code": 6, "origin_hash": "cbd82f8e273a779d08321edb5bffb04d" } ], "target_uinput": "keyboard", "output_symbol": "4", "mapping_type": "key_macro" }, { "input_combination": [ { "type": 1, "code": 7, "origin_hash": "cbd82f8e273a779d08321edb5bffb04d" } ], "target_uinput": "keyboard", "output_symbol": "5", "mapping_type": "key_macro" }, { "input_combination": [ { "type": 1, "code": 8, "origin_hash": "cbd82f8e273a779d08321edb5bffb04d" } ], "target_uinput": "keyboard", "output_symbol": "6", "mapping_type": "key_macro" }, { "input_combination": [ { "type": 1, "code": 274, "origin_hash": "4a7e8e47ac053eac4fb9d67b78df2a8e" } ], "target_uinput": "keyboard", "output_symbol": " ", "mapping_type": "key_macro" }
-
sudo pkill -f input-remapper-service && input-remapper-gtk -d, apply the preset and hit your key. log.
- `sudo evtest= i only see
- /dev/input/event31: input-remapper keyboard
I think the next to last line of the json file is the space, right? This:
"type": 1, "code": 274, "origin_hash": "4a7e8e47ac053eac4fb9d67b78df2a8e" } ], "target_uinput": "keyboard", "output_symbol": " ", "mapping_type": "key_macro"
The next to last line ("output_symbol": " ",) has a literal space as the output symbol, which I wager is not read as a key output. Try replacing the literal space as follows:
change "output_symbol": " ", to "output_symbol": "KEY_SPACE",
In the code as written, there is no key for Input-Remapper to inject which may be why nothing happens. Let us know how this helps.
If this solves the issue, close this thread as Resolved/fixed. Sorry for the weird formatting at the beginning, I don't know how that happened.....
thx i'll try it out
Did the suggestion provide a fix for you?