I got a big keyboard with F13-F24 keys. So here is the thing:

If you want to use e.g.: F22 as a shortcut in e.g.: Plasma settings it will get regonized as Touchpad On instead of as F22: https://imgur.com/a/GiyhBwD

The same goes for F13-F24:

F13 -> Tools
F14 -> Launch(7)
F20 -> Microphone Mute
F21 -> Touchpad Toggle

The shortcuts do work but the key name is just not correct.

I’d imagine that’s because of the function keys on laptops…? But I am not using a laptop.

Anways one way to “fix” this in X11 was to create a .Xmodmap file:

keycode 191 = F13 F13 F13
keycode 192 = F14 F14 F14
[...]
keycode 202 = F24 F24 F24

and afterwars the system will regonize e.g.: F22 as F22: https://imgur.com/a/LB29wgo


A .Xmodmap file does not work in Wayland. What are my options here?

Thank you for your help.

PS: I found a simliar question here: https://discuss.kde.org/t/remapping-keys-such-as-f13/10275/3 but not answer.
I also found https://old.reddit.com/r/wayland/comments/x3tff6/adding_f13_f24_keys/kf36xa0/ but I want a real solution that works on the “user level” (like a .Xmodmap file in my home directory)…

  • D_Air1@lemmy.ml
    link
    fedilink
    arrow-up
    4
    ·
    10 months ago

    I don’t know much about this kind of thing, but one thought that I had is that if you go to system settings -> keyboard -> keyboard. Is there any similar keyboard model that you can select that would essentially give you access to those keys?

    • sputge@lemmy.worldOP
      link
      fedilink
      arrow-up
      3
      ·
      edit-2
      10 months ago

      I have not found any… I guess I would need to select: “Generic | Generic 121-key PC” as the keyboard model, which does not exist.
      This is the keyboard: https://github.com/bluepylons/Boston

      But it’s running QMK so one would have the same problem e.g.: with a 36-key keyboard which is programmed to send F13-F24 in some way…

      • D_Air1@lemmy.ml
        link
        fedilink
        arrow-up
        1
        ·
        10 months ago

        Sorry, not sure what else to do. I couldn’t even find much information regarding a 121 key keyboard. I do wonder if there is a way to create a custom layout.