Xmodmap mismapping in Wayland + No X sessions on KDE

Hello everyone,

I just realized that something is wrong with my xmodmap keymaps.

Environment

  • Xmodmap

    user@lapi ~> xmodmap -pke | rg ' 19 = |  31 ='
    keycode  19 = 0 equal 0 parenright downarrow degree bracketright
    keycode  31 = u U Cyrillic_u Cyrillic_U udiaeresis Udiaeresis Byelorussian_shortu Byelorussian_SHORTU
    user@lapi ~> rg ' 19 = |  31 =' .Xmodmap
    12:keycode  19 = 0 equal 0 parenright downarrow degree bracketright
    24:keycode  31 = u U Cyrillic_u Cyrillic_U udiaeresis Udiaeresis Byelorussian_shortu Byelorussian_SHORTU
    user@lapi ~> xmodmap .Xmodmap
    
  • Session type
    echo $XDG_SESSION_TYPE wayland

  • KDE version

    plasmashell -v
    plasmashell 6.4.5
    
  • My distro is Manjaro

Issue

In theory, udiaeresis should only be printed when I press “layer 3 modifier + key 31”, but X prints downarrow instead, which should only be printed when I press “layer 4 modifier + key 19”. It used to work, but it doesn’t anymore.

Does anyone have any ideas for troubleshooting or fixing?

Current troubleshooting

  • Last time I checked, I remember my session being of type X, but it is now Wayland.
    • I tried changing the default session type via “Settings > Login Screen (SDDM) > Behaviour > Automatically login with …” but there is no X option in the dropdown, only Wayland.

Does anyone know of a recent change that might have broken my set-up or any ideas on how I may fix this?

Thank you in advance

PS: Here is a screenshot

Xmodmap only works on X11, but it looks like either the OS you’re using has removed its X11 session, or it’s been removed on your personal system by mistake. Either way, now you’ve only got a Wayland session now.

If you can re-install the X11 session, that would be the simplest short term solution to the problem. I’m not aware of Manjaro going Wayland only; I suspect there’s a package you can install to get the X11 session back.

An alternative is sticking with the Wayland session and redoing the key re-mapping to use a tool that works on Wayland. This is a more robust long-term solution, since the Plasma X11 session will be going away eventually.

There are several ways listed in Input remap utilities - ArchWiki . Two of the ones I’m familiar are:

Thank you for your quick answer, @ngraham. I am not too savvy, but I don’t recall removing any packages that might be related to the X11 session. I will first try to figure out how to reinstall it.

Again, thank you. I just reinstalled plasma-x11-session and kwin-x11.

For whatever reason, they got knocked out one or two Manjaro KDE updates ago. I am pretty sure that I did not do so myself, because last time that I tried to move to Wayland, I could not replicate my set-up’s functionality, so X it is for now.

Same for another system EndeavourOS system I hadn’t logged in for a long time.