From a65fb557cfce85e27448139e9c0317c36b7d06cb Mon Sep 17 00:00:00 2001 From: Nippy Date: Wed, 9 Sep 2026 14:56:35 +0200 Subject: fix(plasma-theme): enforce breeze-dark color scheme and desktop theme --- raveos-plasma-theme/raveos-plasma-apply.sh | 26 +++++++++++++++++++++++++- 1 file changed, 25 insertions(+), 1 deletion(-) (limited to 'raveos-plasma-theme/raveos-plasma-apply.sh') diff --git a/raveos-plasma-theme/raveos-plasma-apply.sh b/raveos-plasma-theme/raveos-plasma-apply.sh index 07ccbcd..20e104a 100755 --- a/raveos-plasma-theme/raveos-plasma-apply.sh +++ b/raveos-plasma-theme/raveos-plasma-apply.sh @@ -67,19 +67,34 @@ Theme=org.kde.raveos.desktop SPLEOF } +write_plasmarc() { + local target_home="$1" + mkdir -p "${target_home}/.config" + cat > "${target_home}/.config/plasmarc" <<'PLMEOF' +[Theme] +name=breeze-dark +PLMEOF +} + write_kdeglobals() { local target_home="$1" mkdir -p "${target_home}/.config" - cat > "${target_home}/.config/kdeglobals" <<'GLBEOF' + if [[ -f /etc/xdg/kdeglobals ]]; then + cp -f /etc/xdg/kdeglobals "${target_home}/.config/kdeglobals" + else + cat > "${target_home}/.config/kdeglobals" <<'GLBEOF' [General] ColorScheme=BreezeDark +Name=Breeze Dark [Icons] Theme=breeze-dark [KDE] widgetStyle=Breeze +contrast=4 GLBEOF + fi } write_kwalletrc() { @@ -124,6 +139,7 @@ write_konsolerc /etc/skel write_kscreenlockerrc /etc/skel write_ksplashrc /etc/skel write_kdeglobals /etc/skel +write_plasmarc /etc/skel write_kwalletrc /etc/skel disable_kmix_autostart /etc/skel ensure_bashrc_hook /etc/skel/.bashrc @@ -168,6 +184,14 @@ while IFS=: read -r user _ uid gid _ home shell; do write_kwalletrc "${home}" fi + if [[ ! -f "${home}/.config/kdeglobals" ]]; then + write_kdeglobals "${home}" + fi + + if [[ ! -f "${home}/.config/plasmarc" ]]; then + write_plasmarc "${home}" + fi + if [[ ! -f "${home}/.config/autostart/kmix_autostart.desktop" ]]; then disable_kmix_autostart "${home}" fi -- cgit v1.3