diff options
| author | Nippy <nippy@Beller-Mac-mini.lan> | 2026-09-09 14:56:35 +0200 |
|---|---|---|
| committer | Nippy <nippy@Beller-Mac-mini.lan> | 2026-09-09 14:56:35 +0200 |
| commit | a65fb557cfce85e27448139e9c0317c36b7d06cb (patch) | |
| tree | 992d87ce48602f79e09b60ba26bfc4b4b53e587a /raveos-plasma-theme/raveos-plasma-apply.sh | |
| parent | 25af5fa7814cd4c1d8bf31e0d50cebfb6c29a4ba (diff) | |
| download | RaveOS-PKGBUILD-a65fb557cfce85e27448139e9c0317c36b7d06cb.tar.gz RaveOS-PKGBUILD-a65fb557cfce85e27448139e9c0317c36b7d06cb.zip | |
Diffstat (limited to 'raveos-plasma-theme/raveos-plasma-apply.sh')
| -rwxr-xr-x | raveos-plasma-theme/raveos-plasma-apply.sh | 26 |
1 files changed, 25 insertions, 1 deletions
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 |