Skip to content

Instantly share code, notes, and snippets.

@bojidar-bg
Created April 11, 2024 07:50
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save bojidar-bg/5dd246cd3c442893a333b36955ae0753 to your computer and use it in GitHub Desktop.
Save bojidar-bg/5dd246cd3c442893a333b36955ae0753 to your computer and use it in GitHub Desktop.
Change keyboard layout programatically and reload - kwin_wayland
# Go to Colemak
kwriteconfig6 --file kxkbrc --group Layout --key Model pc104awide
kwriteconfig6 --file kxkbrc --group Layout --key LayoutList us,bg
kwriteconfig6 --file kxkbrc --group Layout --key Options grp:alt_shift_toggle,grp:win_space_toggle,caps:backspace,lv3:ralt_switch_multikey,compose:menu
kwriteconfig6 --file kxkbrc --group Layout --key VariantList cmk_ed_dh,colemak_dh
dbus-send --session --type=signal --reply-timeout=100 --dest=org.kde.keyboard /Layouts org.kde.keyboard.reloadConfig
# Back to QWERTY
kwriteconfig6 --file kxkbrc --group Layout --key Model pc104
kwriteconfig6 --file kxkbrc --group Layout --key Options grp:alt_shift_toggle,grp:win_space_toggle,lv3:ralt_switch_multikey,compose:menu
kwriteconfig6 --file kxkbrc --group Layout --key VariantList ,phonetic
dbus-send --session --type=signal --reply-timeout=100 --dest=org.kde.keyboard /Layouts org.kde.keyboard.reloadConfig
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment