From 1596d721c2ed54fde93e4acfe6b9144030d92f09 Mon Sep 17 00:00:00 2001 From: Bahar KURT Date: Tue, 10 Sep 2024 19:36:46 +0300 Subject: [PATCH] Add keyboard layout configurator native to KDE for Wayland users This will benefit YALI a lot. I could put this as a separate script in Wayland package itself but let's not break the working code just yet. --- .../xorg-server/files/xorg-save-xkb-config.sh | 21 +++++++++++++++++++ 1 file changed, 21 insertions(+) diff --git a/x11/server/xorg-server/files/xorg-save-xkb-config.sh b/x11/server/xorg-server/files/xorg-save-xkb-config.sh index 5d675e6a7e..22a5162d99 100755 --- a/x11/server/xorg-server/files/xorg-save-xkb-config.sh +++ b/x11/server/xorg-server/files/xorg-save-xkb-config.sh @@ -27,3 +27,24 @@ Section "InputClass" ${COMMENT_OPTIONS}Option "xkb_options" "$OPTIONS" EndSection EOF + +# We have KDE by default so we should set up the +# layout for that during installation from YALI. +# +# Other desktops can be configured by the user +# themselves (considering they would have enough +# knowledge to browse through repos by then and +# find the package for the DE they need) or by +# those who want to make their own forks based +# on Pisi. +# +# TODO: Track changes on GNOME and Wayland to +# see if they come up with a global configuration +# system like Xorg and tweak this up accordingly. +# +# FIXME: This is way too basic and prone to errors +# pretty much all the time! +cat << EOF > $ROOT/etc/skel/.config/kxkbrc +[Layout] +LayoutList=$LAYOUT +EOF