Not Switch Back to first Keyboard layout

Plasma 6 + wayland
when I’m on x11 I’m using this code

setxkbmap us,ir -option "lv3:ralt_alt,grp:alt_shift_toggle"

but on wayland didn’t work.

@mmtech
kate .config/kxkbrc

[Layout]
DisplayNames=,
LayoutList=us,ir
Options=grp:alt_shift_toggle
ResetOldOptions=true
Use=true
VariantList=intl,ku_alt

or something similar. You should correct it.

this is my config:

[$Version]
update_info=kxkb.upd:remove-empty-lists,kxkb.upd:add-back-resetoptions,kxkb_variants.upd:split-variants

[Layout]
DisplayNames=,
LayoutList=us,ir
Model=pc102
Options=grp:alt_shift_toggle
ResetOldOptions=true
SwitchMode=Window
Use=true
VariantList=,pes_keypad

but problem didn’t solved.

@mmtech
My Persian is صفر
Did you uncomment either of these
az_IR.UTF-8
fa_IR.UTF-8
in /etc/locale.gen and run sudo locale-gen ?
Then press Super keyboard select tab Layouts, tick Configure Layouts


Apply
localectl list-x11-keymap-variants ir
shows the allowable variants if you prefer editing rhe config file
Relogin. It seems to change layouts

 DE: KDE Plasma 6.0.2
 WM: KWin (Wayland)
 Kernel: 6.7.9-hardened1-1-hardened but it does not matter

ضصثقفغعهخح شسیبلاتنمکگ ظطزرذدپ

Let me clarify the problem.
when I set ‘main shortcut’ in ‘layouts’ eqaul to ‘Alt+Shift’
I can switch between EN and FA just with left ALT+SHIFT and I can switch to FA with right ALT+SHIFT and can’t get back to EN with right combo.
when I’m using x11 using this code

setxkbmap us,ir -option "lv3:ralt_alt,grp:alt_shift_toggle"

but now in wayland can’t use this command.

@mmtech

Options=lv3:ralt_alt,grp:alt_shift_toggle,lv3:switch

in ~/.config/kxkbrc does the trick if I understand correctly.
AltGr is moved to ‘rctl’ as you need ‘ralt’

1 Like

you are my Hero :smile:
it solved.

This topic was automatically closed 2 days after the last reply. New replies are no longer allowed.