From d8acc57f354a93929573393850c61e01c2f8d103 Mon Sep 17 00:00:00 2001 From: Simon Rettberg Date: Tue, 14 May 2019 15:48:44 +0200 Subject: [xscreensaver/idleaction] DPMS handled by idle-daemon --- .../data/etc/X11/Xsession.d/95-xscreensaver | 73 ---------------------- core/modules/xscreensaver/module.build | 4 +- 2 files changed, 3 insertions(+), 74 deletions(-) delete mode 100755 core/modules/xscreensaver/data/etc/X11/Xsession.d/95-xscreensaver (limited to 'core/modules/xscreensaver') diff --git a/core/modules/xscreensaver/data/etc/X11/Xsession.d/95-xscreensaver b/core/modules/xscreensaver/data/etc/X11/Xsession.d/95-xscreensaver deleted file mode 100755 index 1220dad3..00000000 --- a/core/modules/xscreensaver/data/etc/X11/Xsession.d/95-xscreensaver +++ /dev/null @@ -1,73 +0,0 @@ -#!/bin/ash - -if which xscreensaver; then - DPMS=False - AUTOLOCK=True - secsToTime() { - local NUM SECS MINS HRS - NUM="$1" - SECS=0$(( NUM % 60 )) - MINS=0$(( ( NUM / 60 ) % 60 )) - HRS=0$(( ( NUM / 3600 ) % 60 )) - echo "${HRS:$(( ${#HRS} - 2 )):2}:${MINS:$(( ${#MINS} - 2 )):2}:${SECS:$(( ${#SECS} - 2 )):2}" - } - [ -z "$UID" ] && UID=$(id -u) - [ -z "$HOME" ] && HOME="$(getent passwd "$UID" | head -n 1 | awk -F ':' '{print $6}')" - . /opt/openslx/config - SBY="${SLX_SCREEN_STANDBY_TIMEOUT}" - if [ -n "${SLX_EXAM}" ]; then - SLX_SCREEN_SAVER_TIMEOUT=0 - SLX_SCREEN_SAVER_GRACE_TIME= - AUTOLOCK=False - SBY=0 - elif [ -z "$SBY" ]; then - SBY=0 - elif [ "$SBY" -gt 0 ] && [ "$SBY" -lt 60 ]; then - SBY=60 - elif ! [ "$SBY" -ge 0 ]; then # isNumeric? - SBY=0 - fi - # Create config value for standby timeout - if [ "$SBY" -gt 0 ]; then - DPMS=True - STANDBY="$( secsToTime "$(( SBY + 60 ))" )" - else - STANDBY="99:00:00" - fi - # Explicit screen saver timeout set - if [ "$SLX_SCREEN_SAVER_TIMEOUT" -gt 0 ]; then - TIMEOUT="$( secsToTime "$(( SLX_SCREEN_SAVER_TIMEOUT + 30 ))" )" - else - TIMEOUT="99:00:00" - fi - if [ -z "$SLX_SCREEN_SAVER_GRACE_TIME" ]; then - GRACE="99:00:00" - AUTOLOCK=False - else - GRACE="$( secsToTime "$SLX_SCREEN_SAVER_GRACE_TIME" )" - fi - if ! [ -s "$HOME/.xscreensaver" ]; then - cat > "$HOME/.xscreensaver" <