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, 26 insertions, 0 deletions
diff --git a/raveos-plasma-theme/raveos-plasma-apply.sh b/raveos-plasma-theme/raveos-plasma-apply.sh
index c73bb64..d077fce 100755
--- a/raveos-plasma-theme/raveos-plasma-apply.sh
+++ b/raveos-plasma-theme/raveos-plasma-apply.sh
@@ -51,12 +51,33 @@ write_kscreenlockerrc() {
local target_home="$1"
mkdir -p "${target_home}/.config"
cat > "${target_home}/.config/kscreenlockerrc" <<KLEOF
+[Daemon]
+Autolock=true
+LockGrace=5
+Timeout=300
+
[Greeter][Wallpaper][org.kde.image][General]
FillMode=2
Image=file://${wallpaper_dst}
KLEOF
}
+write_powermanagementprofilesrc() {
+ local target_home="$1"
+ mkdir -p "${target_home}/.config"
+ cat > "${target_home}/.config/powermanagementprofilesrc" <<PMPEOF
+[AC][DimDisplay]
+idleTime=180000
+
+[AC][DPMSControl]
+idleTime=300000
+
+[AC][SuspendSession]
+idleTime=0
+suspendType=1
+PMPEOF
+}
+
write_ksplashrc() {
local target_home="$1"
mkdir -p "${target_home}/.config"
@@ -137,6 +158,7 @@ done
write_konsolerc /etc/skel
write_kscreenlockerrc /etc/skel
+write_powermanagementprofilesrc /etc/skel
write_ksplashrc /etc/skel
write_kdeglobals /etc/skel
write_plasmarc /etc/skel
@@ -192,6 +214,10 @@ while IFS=: read -r user _ uid gid _ home shell; do
write_plasmarc "${home}"
fi
+ if [[ ! -f "${home}/.config/powermanagementprofilesrc" ]]; then
+ write_powermanagementprofilesrc "${home}"
+ fi
+
if [[ ! -f "${home}/.config/autostart/kmix_autostart.desktop" ]]; then
disable_kmix_autostart "${home}"
fi