How can I make F13-F24 to be actually recognized as F13-F24 in KDE Wayland?

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: 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:


<span style="color:#323232;">keycode 191 = F13 F13 F13
</span><span style="color:#323232;">keycode 192 = F14 F14 F14
</span><span style="color:#323232;">[...]
</span><span style="color:#323232;">keycode 202 = F24 F24 F24
</span>

and afterwars the system will regonize e.g.: F22 as F22: 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: discuss.kde.org/t/remapping-keys-such-as-f13/…/3 but not answer.
I also found old.reddit.com/r/wayland/comments/…/kf36xa0/ but I want a real solution that works on the “user level” (like a .Xmodmap file in my home directory)…

pacjo,

I had the same issue some time ago. I’ll test it on plasma 6 and send it soon.

pacjo,

Ok, It took some time by I finally found my writeup: github.com/agustinmista/positron/issues/15

… and on further inspection it’s the same as you already posted. If it helps I can say it’s been really stable, never breaking since I set it up (well apart from this week, but it’s more of a I fucked up KDE and ignored all issues for the past few months, so a reinstall was necessary type of problem.

Pantherina,

All the F keys are managed in your BIOS afaik

Lenni,
@Lenni@fosstodon.org avatar

@Pantherina @sputge I think the F[number] stuff gets directly passed to the OS, just the [Fn] stuff (those extra features to change the display brightness, volume, etc.) is managed by the Keyboard (?) or BIOS

Pantherina,

Hm, so on my Thinkpad I had “sticky keys” which made the keys do the Fn function instead of the normal one, I had to change that in BIOS. But in KDE I can still assign F2=volUp (which is an OS feature and not the actually assigned Fn+F2 button)

D_Air1,
@D_Air1@lemmy.ml avatar

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, (edited )

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: 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…

Strit,
@Strit@lemmy.linuxuserspace.show avatar

Also, is your keyboard layout correct in Plasmas keyboard settings? eg, not just a 105 keys, but one with more keys?

sputge,

I don’t think that’s possible since I have this issue with all my costume keyboards. Some of them have only 36-keys. Such keyboard layouts do not exist in the Plasma keyboard settings. They all use QMK as a firmware so I can program the keys to do anything I want.

souperk,
@souperk@reddthat.com avatar

I cannot help, but your post got me wondering can you share your keyboard or a picture?

I cannot understand how some many fkeys could be useful. Why not use regural shortcuts?

UnRelatedBurner,

They are free macro keys

sputge,
HouseWolf,

Honestly that boards pretty slick! I was expecting some absolute unit like the Hyper 7

souperk,
@souperk@reddthat.com avatar

Boston is a compact battleship with a complement of 18 programmable keys, in a footprint 2u narrower than a full-size, and only about 1.5u wider than a 96%.

I am sold.

  • All
  • Subscribed
  • Moderated
  • Favorites
  • kde@lemmy.kde.social
  • DreamBathrooms
  • mdbf
  • ngwrru68w68
  • magazineikmin
  • thenastyranch
  • rosin
  • khanakhh
  • osvaldo12
  • Youngstown
  • slotface
  • Durango
  • kavyap
  • InstantRegret
  • GTA5RPClips
  • JUstTest
  • ethstaker
  • cisconetworking
  • modclub
  • cubers
  • everett
  • tacticalgear
  • normalnudes
  • tester
  • anitta
  • Leos
  • megavids
  • provamag3
  • lostlight
  • All magazines