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')
-rwxr-xr-xraveos-plasma-theme/raveos-plasma-apply.sh26
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