Summary: | No alternative to setxkbmap on Wayland | ||
---|---|---|---|
Product: | [Applications] systemsettings | Reporter: | zeus <kde> |
Component: | kcm_keyboard | Assignee: | Plasma Bugs List <plasma-bugs-null> |
Status: | CONFIRMED --- | ||
Severity: | minor | CC: | butirsky, dev, nate |
Priority: | NOR | Keywords: | wayland-only |
Version First Reported In: | 5.27.5 | ||
Target Milestone: | --- | ||
Platform: | Arch Linux | ||
OS: | Linux | ||
Latest Commit: | Version Fixed In: | ||
Sentry Crash Report: |
Description
zeus
2023-05-30 21:19:20 UTC
setxkbmap and xmodmap are X11-only tools and will not work with Wayland. So e.g. `setxkbmap -query` will most probably not gives you any meaningful information. In a Wayland session, the only way to check reliably your keymap in X11 is to use `xkbcomp $DISPLAY -` . (In reply to Wismill from comment #1) > setxkbmap and xmodmap are X11-only tools and will not work with Wayland. So > e.g. `setxkbmap -query` will most probably not gives you any meaningful > information. In a Wayland session, the only way to check reliably your > keymap in X11 is to use `xkbcomp $DISPLAY -` . Yes, I know this. My point was, that this can be a very common configuration for anyone migrating from X11 to Wayland, and in this case, very unpredictable things do happen. Note that setxkbmap should display the following warning: “WARNING: Running setxkbmap against an Xwayland server”. It may require a recent version. There is no tool to replace setxkbmap for Wayland; or rather: there is no *generic* (as in “for all DE”) tool to replace it. See the discussion at https://github.com/xkbcommon/libxkbcommon/issues/470#issuecomment-1998697198. It would be very useful to have a Plasma-specific tool to configure the keyboard config as setxkbmap. |