input-remapper
input-remapper copied to clipboard
the output_symbol "t" is not a valid keycode-name
Please install the newest version from source to see if the problem has already been solved.
Share some logs please:
-
input-remapper-control --version
input-remapper 1.6.0-beta abb1b76e853b25d27c35450dcb1717b56488d420 https://github.com/sezanzeb/input-remapper
-
which linux distro (ubuntu 20.04, manjaro, etc.) Arch
-
echo $XDG_SESSION_TYPE
wayland -
which desktop environment (gnome, plasma, xfce4, etc.) KDE
-
sudo ls -l /proc/1/exe
systemd -
paste the affected preset .json file from ~/.config/input-remapper/presets new preset.json.txt
-
sudo pkill -f input-remapper-service && input-remapper-gtk -d
, apply the preset and hit your key. Then share that log. log.txt -
sudo evtest
while the previous command is running, to see how events are injected. Devices starting withinput-remapper ...
are of interest.
Remapping itself isn't the issue. I am pretty sure this is the error in question.
16:49:24.712524 [38;5;47m63957 Service [0m[4;38;5;81mERROR preset.py:302: failed to Validate mapping for 1,6,1: 3 validation errors for Mapping
output_symbol
the output_symbol "t" is not a macro and not a valid keycode-name (type=value_error)
__root__
missing Argument: Mapping must either contain `output_symbol` or `output_type` and `output_code` (type=value_error)
__root__
missing macro or key: "5" is not used as analog input, but no output macro or key is programmed (type=value_error)[0m
Optional `xmodmap` command not found. This is not critical.
Without xmodmap, symbols like "t" are not available. Try KEY_T as output.
xmodmap is not a dependency, because I'm not sure how many X dependencies are pulled in on wayland installations and if people would be fine with that, and how useful it is on wayland DEs. Related: https://github.com/sezanzeb/input-remapper/issues/114, https://github.com/sezanzeb/input-remapper/issues/220
Maybe the error message should suggest to try installing xmodmap or to prefix it with KEY_
I just added xorg-xmodmap to optdepends
in the AUR packages
logs won't make it look like xmodmap.json contains usefull stuff when xmodmap is not even installed anymore: https://github.com/sezanzeb/input-remapper/pull/531
todo:
- [ ] hide
__root__
errors when there are other errors above it. Because__root__
errors usually seem to be the result of other errors and make understanding the error-message in this case more complicated - [ ] replace
__root__
withmapping