How can I change the xkb map/keyboard layout / etc. in plasma5 + kwin + wayland?

Shlomi Fish <[email protected]> Fri, 2 Oct 2020 14:39:20 +0300
Newsgroups gmane.comp.kde.linux
Message-ID <[email protected]>
Hi all!

How can I change the xkb map/keyboard layout / etc. in plasma5 + kwin +
wayland? I was able to configure it in sway+wayland right away (see:
https://github.com/shlomif/shlomif-computer-settings/blob/c90640879bb3f7aed=
dd4344125f88aa6b236a815/shlomif-settings/sway/sway/config#L228
) and I spent several hours trying to do the same in plasma5 + wayland to no
avail.

```
[shlomif@localhost ~]$ localectl status
   System Locale: LANG=3Den_US.UTF-8
       VC Keymap: us-acentos
      X11 Layout: us,il
       X11 Model: pc105
     X11 Variant: ,lyx
     X11 Options: compose:ralt,grp:switch,grp:alt_shift_toggle,grp_led:scro=
ll
[shlomif@localhost ~]$
```

(after a reboot)

```
[shlomif@localhost ~]$ cat .config/kxkbrc
[Layout]
DisplayNames=3D,
LayoutList=3Dus,il(lyx)
LayoutLoopCount=3D-1
Model=3D
ResetOldOptions=3Dfalse
ShowFlag=3Dfalse
ShowLabel=3Dtrue
ShowLayoutIndicator=3Dtrue
ShowSingle=3Dfalse
SwitchMode=3DGlobal
Use=3Dtrue
[shlomif@localhost ~]$
```

tried this too:

```
#! /bin/sh
#
# apply-hebrew-keymap-for-wayland.sh
# Copyright (C) 2020 Shlomi Fish <[email protected]>
#
# Distributed under the terms of the MIT / Expat license.
#

localectl set-x11-keymap \
    'us,il' \
    'pc105' \
    ",lyx" \
    "compose:ralt,grp:switch,grp:alt_shift_toggle,grp_led:scroll"  \


```

also tried the ibus applet.

The keyboard works fine in plasma5 + x11 + startx.

I am using:

```

System:    Kernel: 5.8.12-200.fc32.x86_64 x86_64 bits: 64 Desktop: KDE Plas=
ma
5.18.5
           Distro: Fedora release 32 (Thirty Two)
CPU:       Info: Quad Core model: Intel Core i5-8259U bits: 64 type: MT MCP=
 L2
cache: 6144 KiB
           Speed: 3462 MHz min/max: 400/3800 MHz Core speeds (MHz): 1: 3500=
 2:
3500 3: 3501
           4: 3501 5: 3499 6: 3500 7: 3500 8: 3500
Graphics:  Device-1: Intel Iris Plus Graphics 655 driver: i915 v: kernel
           Display: server: Fedora Project X.org 1.20.8 driver: modesetting
unloaded: fbdev,vesa
           resolution: 1920x1080~60Hz
           OpenGL: renderer: Mesa Intel Iris Plus Graphics 655 (CFL GT3) v:=
 4.6
Mesa 20.1.8

```

I tried searching the web using duckduckgo and google and didn't find anyth=
ing.
Also tried asking on several freenode chatrooms.

What should I do? I'll be content with the keyboard configuration assigned =
at
plasma5's session startup and not changeable at runtime.

Regards,

	Shlomi

--=20

Shlomi Fish       https://www.shlomifish.org/
Freecell Solver - https://fc-solve.shlomifish.org/

Windows Update is called this way because by the time it finishes, the date=
 has
gone up.
    =E2=80=94 Trashlord, https://www.shlomifish.org/humour/bits/facts/Windo=
ws-Update/

Please reply to list if it's a mailing list post - https://shlom.in/reply .