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

Shlomi Fish shlomif at shlomifish.org
Fri Oct 2 12:39:20 BST 2020


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/c90640879bb3f7aeddd4344125f88aa6b236a815/shlomif-settings/sway/sway/config#L228
) and I spent several hours trying to do the same in plasma5 + wayland to no
avail.

```
[shlomif at localhost ~]$ localectl status
   System Locale: LANG=en_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:scroll
[shlomif at localhost ~]$
```

(after a reboot)

```
[shlomif at localhost ~]$ cat .config/kxkbrc
[Layout]
DisplayNames=,
LayoutList=us,il(lyx)
LayoutLoopCount=-1
Model=
ResetOldOptions=false
ShowFlag=false
ShowLabel=true
ShowLayoutIndicator=true
ShowSingle=false
SwitchMode=Global
Use=true
[shlomif at localhost ~]$
```

tried this too:

```
#! /bin/sh
#
# apply-hebrew-keymap-for-wayland.sh
# Copyright (C) 2020 Shlomi Fish <shlomif at cpan.org>
#
# 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 Plasma
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 anything.
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

-- 

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.
    — Trashlord, https://www.shlomifish.org/humour/bits/facts/Windows-Update/

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


More information about the kde-linux mailing list