summaryrefslogtreecommitdiff
path: root/raveos-plasma-theme/raveos-plasma-apply.sh
diff options
context:
space:
mode:
Diffstat (limited to 'raveos-plasma-theme/raveos-plasma-apply.sh')
-rw-r--r--raveos-plasma-theme/raveos-plasma-apply.sh15
1 files changed, 15 insertions, 0 deletions
diff --git a/raveos-plasma-theme/raveos-plasma-apply.sh b/raveos-plasma-theme/raveos-plasma-apply.sh
index a0a5df5..7b88c99 100644
--- a/raveos-plasma-theme/raveos-plasma-apply.sh
+++ b/raveos-plasma-theme/raveos-plasma-apply.sh
@@ -59,6 +59,20 @@ ColorScheme=RaveOS
EOF
}
+write_kxkbrc() {
+ local target_home="$1"
+ local kb_layout="hu"
+ local kb_tmp
+ if [[ -f /etc/default/keyboard ]]; then
+ kb_tmp="$(awk -F'"' '/^XKBLAYOUT=/{print $2; exit}' /etc/default/keyboard 2>/dev/null)"
+ [[ -n "$kb_tmp" ]] && kb_layout="${kb_tmp%%,*}"
+ fi
+ cat > "${target_home}/.config/kxkbrc" <<EOF
+[Layout]
+LayoutList=${kb_layout}
+EOF
+}
+
write_plasma_wallpaper_config() {
local target_home="$1"
local applet_config="${target_home}/.config/plasma-org.kde.plasma.desktop-appletsrc"
@@ -294,6 +308,7 @@ apply_user_payload() {
fi
write_konsolerc "$target_home"
+ write_kxkbrc "$target_home"
write_plasma_wallpaper_config "$target_home"
write_kickoff_config "$target_home"
write_kscreenlockerrc "$target_home"