summaryrefslogtreecommitdiff
path: root/raveos-plasma-theme/raveos-plasma-apply.sh
diff options
context:
space:
mode:
authorNippy <nippy@Nippy-Mac-mini.local>2026-09-26 18:21:21 +0200
committerNippy <nippy@Nippy-Mac-mini.local>2026-09-26 18:21:21 +0200
commita755216ccb467a31cd58eef5ae7c23e084f1750c (patch)
tree6a70ad0d9ecf818945e5ef0c927d534967daf19f /raveos-plasma-theme/raveos-plasma-apply.sh
parentf5a18d3660b3e645c54ca0faf13080830b41c2be (diff)
downloadRaveOS-PKGBUILD-a755216ccb467a31cd58eef5ae7c23e084f1750c.tar.gz
RaveOS-PKGBUILD-a755216ccb467a31cd58eef5ae7c23e084f1750c.zip
fix desktop
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