diff options
Diffstat (limited to 'raveos-plasma-theme')
| -rw-r--r-- | raveos-plasma-theme/PKGBUILD | 3 | ||||
| -rw-r--r-- | raveos-plasma-theme/kscreenlockerrc | 5 | ||||
| -rw-r--r-- | raveos-plasma-theme/powermanagementprofilesrc | 9 | ||||
| -rwxr-xr-x | raveos-plasma-theme/raveos-plasma-apply.sh | 26 |
4 files changed, 42 insertions, 1 deletions
diff --git a/raveos-plasma-theme/PKGBUILD b/raveos-plasma-theme/PKGBUILD index 02abd4a..54897c0 100644 --- a/raveos-plasma-theme/PKGBUILD +++ b/raveos-plasma-theme/PKGBUILD @@ -2,7 +2,7 @@ pkgname=raveos-plasma-theme pkgver=1.0.0 -pkgrel=7 +pkgrel=8 pkgdesc="RaveOS Plasma theme payload and installer" arch=('any') url="https://raveos.local" @@ -50,6 +50,7 @@ package() { install -Dm644 "${startdir}/kwalletrc" "${pkgdir}/etc/xdg/kwalletrc" install -Dm644 "${startdir}/ksplashrc" "${pkgdir}/etc/xdg/ksplashrc" install -Dm644 "${startdir}/kscreenlockerrc" "${pkgdir}/etc/xdg/kscreenlockerrc" + install -Dm644 "${startdir}/powermanagementprofilesrc" "${pkgdir}/etc/xdg/powermanagementprofilesrc" install -Dm644 "${startdir}/konsolerc" "${pkgdir}/etc/xdg/konsolerc" install -Dm755 "${startdir}/theme-data/profile.d/raveos-fastfetch.sh" \ diff --git a/raveos-plasma-theme/kscreenlockerrc b/raveos-plasma-theme/kscreenlockerrc index 3a51502..5c7b317 100644 --- a/raveos-plasma-theme/kscreenlockerrc +++ b/raveos-plasma-theme/kscreenlockerrc @@ -1,3 +1,8 @@ +[Daemon] +Autolock=true +LockGrace=5 +Timeout=300 + [Greeter][Wallpaper][org.kde.image][General] FillMode=2 Image=file:///usr/share/backgrounds/raveos/raveos-main-bg.jpeg diff --git a/raveos-plasma-theme/powermanagementprofilesrc b/raveos-plasma-theme/powermanagementprofilesrc new file mode 100644 index 0000000..60ad930 --- /dev/null +++ b/raveos-plasma-theme/powermanagementprofilesrc @@ -0,0 +1,9 @@ +[AC][DimDisplay] +idleTime=180000 + +[AC][DPMSControl] +idleTime=300000 + +[AC][SuspendSession] +idleTime=0 +suspendType=1 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 |