input-remapper icon indicating copy to clipboard operation
input-remapper copied to clipboard

the output_symbol "t" is not a valid keycode-name

Open Logical-sh opened this issue 2 years ago • 5 comments

Please install the newest version from source to see if the problem has already been solved.

Share some logs please:

  1. input-remapper-control --version input-remapper 1.6.0-beta abb1b76e853b25d27c35450dcb1717b56488d420 https://github.com/sezanzeb/input-remapper

  2. which linux distro (ubuntu 20.04, manjaro, etc.) Arch

  3. echo $XDG_SESSION_TYPE wayland

  4. which desktop environment (gnome, plasma, xfce4, etc.) KDE

  5. sudo ls -l /proc/1/exe systemd

  6. paste the affected preset .json file from ~/.config/input-remapper/presets new preset.json.txt

  7. sudo pkill -f input-remapper-service && input-remapper-gtk -d, apply the preset and hit your key. Then share that log. log.txt

  8. sudo evtest while the previous command is running, to see how events are injected. Devices starting with input-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

Logical-sh avatar Nov 04 '22 21:11 Logical-sh

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

sezanzeb avatar Nov 05 '22 13:11 sezanzeb

Maybe the error message should suggest to try installing xmodmap or to prefix it with KEY_

sezanzeb avatar Nov 05 '22 13:11 sezanzeb

I just added xorg-xmodmap to optdepends in the AUR packages

sezanzeb avatar Nov 05 '22 13:11 sezanzeb

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

sezanzeb avatar Nov 05 '22 13:11 sezanzeb

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__ with mapping

sezanzeb avatar Nov 07 '22 18:11 sezanzeb