sezanzeb / input-remapper

🎮 ⌨ An easy to use tool to change the behaviour of your input devices.
GNU General Public License v3.0
3.51k stars 150 forks source link

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

Open Logical-sh opened 1 year ago

Logical-sh commented 1 year ago

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 63957 Service ERROR 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)
sezanzeb commented 1 year ago
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 commented 1 year ago

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

sezanzeb commented 1 year ago

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

sezanzeb commented 1 year ago

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 commented 1 year ago

todo: