Lubuntu 20.04 / lxqt 0.14 keyboard layout does not switch

Hi folks
install Lubuntu 20.04 on Thinkpad x220 Intel® Core™ i5-2520M CPU @ 2.50GHz
everything works but I had problems with switch keyboard layout (eng/ru)
built in way to choose keys to change layout (in mouse and keyboard settins) - does not work at all and as I understand developers already know about it
in all my Linux systems I use “Caps Lock to first layout; Shift+Caps Lock to last layout”
I found next solution:

1)disable caps(thanks to Vivek Gite https://www.cyberciti.biz/faq/linux-deactivate-caps-lock/):

setxkbmap command to turn off caps locks key
To turn off caps lock key, enter:
$ setxkbmap -option ctrl:nocaps
(check that capslock is NOT enabled or will be FROZEN IN ENABLE POSITION)

To reset caps lock. enter:
$ setxkbmap -option

2)change keyboard layout(thanks to Tharbad https://bbs.archlinux.org/viewtopic.php?id=250248):

I was able to solve the problem without editing X confs by adding line
options=grp:shift_caps_switch (Caps Lock to first layout; Shift+Caps Lock to last layout)
to ~/.config/lxqt/session.conf in [Keyboard] section.

Other key shortcuts are found in /usr/share/X11/xkb/rules/base.lst

I think you have to reboot after correction in session.conf

Good luck!

1 Like

Why do you say that it does not work with the options that the system gives? You can switch with a combination of keys between Russian and English

no I could not,
1 add russian layout
2 choose desirable keys to change layouts
3 nothing works…(i steel was able change layout by clicking language icon)
ps:
now I understand that didn’t check default layout maybe it was working…
Ill modify original post thank you