Commit cd0efcf2 authored by Guilherme Semente's avatar Guilherme Semente 🌱

Disable screen saver

parent e744b3e2
......@@ -7,19 +7,16 @@
#
# DPMS (Energy Start)
xset dpms 0 0 0
xset -dpms
if [ "${X_DPMS}" = "yes" ]; then
# turn off display after 8 minutes of inactivity
xset dpms 480 480 480
else
# disable DPMS features
xset dpms 0 0 0
xset -dpms
fi
# inhibit lid suspend switch
if [ "${X_LIDSUSPEND}" = "no" ]; then
systemd-inhibit --what=handle-lid-switch sleep 365d &
fi
# disable screen saver
xset s off
xset s noblank
# auto lock screen after TIME minutes of inactivity
# suspend-then-hibernate after KILLTIME minutes
......@@ -27,6 +24,11 @@ xautolock -detectsleep \
-time "${X_LOCKTIME:-5}" -locker "xlock" \
-killtime "${X_KILLTIME:-30}" -killer "${X_KILLTIME_COMMAND:-systemctl suspend-then-hibernate}" &
# inhibit lid suspend switch
if [ "${X_LIDSUSPEND}" = "no" ]; then
systemd-inhibit --what=handle-lid-switch sleep 365d &
fi
# start notification server
/usr/lib/notification-daemon/notification-daemon &
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment