Created
April 11, 2024 07:50
-
-
Save bojidar-bg/5dd246cd3c442893a333b36955ae0753 to your computer and use it in GitHub Desktop.
Change keyboard layout programatically and reload - kwin_wayland
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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