|
|
Subscribe / Log in / New account

XKB ?

XKB ?

Posted May 6, 2020 11:18 UTC (Wed) by ballombe (subscriber, #9523)
Parent article: The Wayland Protocol

So Wayland is still using XKB ? Does it have a xmodmap replacement?


to post comments

XKB ?

Posted May 6, 2020 16:51 UTC (Wed) by mathstuf (subscriber, #69389) [Link] (6 responses)

libinput and udev should be able to cover your cases (I believe). Probably warrants more information from more knowledgeable folk since I'm stuck on X since XMonad is basically a hard drug that leaving will end up giving me withdrawal symptoms. All the existing compositors I've seen are i3-like which is…insufficient for me. But I have tried to port everything else in my setup over to the "newer" techs as much as possible given that anchor.

XKB ?

Posted May 6, 2020 20:53 UTC (Wed) by nybble41 (subscriber, #55106) [Link] (1 responses)

Have you tried <https://github.com/waymonad/waymonad>? It's a work in progress, but it's the closest Wayland equivalent to XMonad that I am aware of.

XKB ?

Posted May 6, 2020 23:34 UTC (Wed) by mathstuf (subscriber, #69389) [Link]

I think I had seen that on one of my searches for the current state of the Wayland world. The lack of activity is disappointing, but this is one of those things I'd need to hop in myself to help out with. Maybe I'll find time some day :/ .

XKB ?

Posted May 6, 2020 22:26 UTC (Wed) by whot (subscriber, #50317) [Link] (3 responses)

libinput does very little with key events, it merely passes them on as-is. Key events are only looked at for meta-functionality like disable-while-typing. There's nothing in libinput to change a key code, it sits below the concept of keyboard layouts.

udev uses the 60-keyboard.hwdb file to remap some keys into the *expected* ones. This too sits below the concept of layouts, it merely exists so that the "volume down" key on your laptop actually sends the volume down evdev code rather than the DeathToAllKittens code which the vendor so graciously programmed the firmware for.

Actual user-specific remapping should be done in the keyboard layout, i.e. with XKB because xmodmap isn't a thing in Wayland.

XKB ?

Posted May 6, 2020 23:28 UTC (Wed) by mathstuf (subscriber, #69389) [Link] (2 responses)

Well, found someone who definitely knows more than me at least :) . Thanks for the info.

> Actual user-specific remapping should be done in the keyboard layout

Hmm. I have my caps lock remapped to backspace in udev so that it works on the TTY too. I guess you recommend that being done in xkb instead?

XKB ?

Posted May 7, 2020 0:05 UTC (Thu) by whot (subscriber, #50317) [Link] (1 responses)

changing codes through udev is the software equivalent of changing the physical wiring of the key. it does give you the result you want but its not necessarily what the keyboard manufacturer will recommend as a generically applicable solution.

XKB ?

Posted May 7, 2020 2:34 UTC (Thu) by mathstuf (subscriber, #69389) [Link]

I think that for such a common key like caps lock rewiring, I think I'll assume that it is safer than trying to guess what madness is going on with Fn-modifier scancodes and trying to play around with them. I personally haven't had a need for more exotic remappings, but will keep that in mind when helping out others. Thanks.

XKB ?

Posted May 6, 2020 18:52 UTC (Wed) by floppus (guest, #137245) [Link]

There was an article here recently about changes to XKB that should hopefully make it possible to customize by mere mortals:
https://lwn.net/Articles/811723/


Copyright © 2025, Eklektix, Inc.
Comments and public postings are copyrighted by their creators.
Linux is a registered trademark of Linus Torvalds