From 99ba5e72ca920282465a2ef57a8e616567efed95 Mon Sep 17 00:00:00 2001 From: Peter Jung Date: Sun, 24 May 2026 13:28:40 +0200 Subject: [PATCH] keyboard: Add support for full live enviroment keyboard switching This adds support to automatically switch the locale for the complete Session, instead of only the calamares window. It relays on kxkb2locale1, whcich is also used at Fedora for Anaconda to handle the Keyboard Switching. Tested in VM Signed-off-by: Peter Jung admin@ptr1337.dev --- .../hooks/90-cachyos-live-kwin-keyboard.hook | 12 ++++++++++++ archiso/airootfs/etc/skel/.config/plasma-welcomerc | 2 ++ archiso/packages_desktop.x86_64 | 1 + 3 files changed, 15 insertions(+) create mode 100644 archiso/airootfs/etc/pacman.d/hooks/90-cachyos-live-kwin-keyboard.hook create mode 100644 archiso/airootfs/etc/skel/.config/plasma-welcomerc diff --git a/archiso/airootfs/etc/pacman.d/hooks/90-cachyos-live-kwin-keyboard.hook b/archiso/airootfs/etc/pacman.d/hooks/90-cachyos-live-kwin-keyboard.hook new file mode 100644 index 0000000..110fb88 --- /dev/null +++ b/archiso/airootfs/etc/pacman.d/hooks/90-cachyos-live-kwin-keyboard.hook @@ -0,0 +1,12 @@ +# remove from airootfs! +[Trigger] +Operation = Install +Operation = Upgrade +Type = Package +Target = cachyos-kde-settings + +[Action] +Description = Enabling KWin keyboard layout syncing for the live environment... +When = PostTransaction +Depends = kconfig +Exec = /usr/bin/kwriteconfig6 --file /etc/skel/.config/kwinrc --group Wayland --key FollowLocale1 true diff --git a/archiso/airootfs/etc/skel/.config/plasma-welcomerc b/archiso/airootfs/etc/skel/.config/plasma-welcomerc new file mode 100644 index 0000000..cf48e3b --- /dev/null +++ b/archiso/airootfs/etc/skel/.config/plasma-welcomerc @@ -0,0 +1,2 @@ +[General] +LiveEnvironment=true diff --git a/archiso/packages_desktop.x86_64 b/archiso/packages_desktop.x86_64 index 69747e0..d783814 100644 --- a/archiso/packages_desktop.x86_64 +++ b/archiso/packages_desktop.x86_64 @@ -74,6 +74,7 @@ kde-gtk-config kinfocenter konsole kscreen +kxkb2locale1 ldns less lftp