dotfiles/.config/qtile/startscreensaver.sh

20 lines
620 B
Bash
Raw Normal View History

2022-04-23 21:36:03 +02:00
#!/bin/bash
# Basic configuration variables
ScreensaverProgram="xautolock" # Options: xautolock or xscreensaver
ScreensaverTime="20" # 20 minutes (only for xautolock)
# Init screensaver
sleep 5
if [ "${ScreensaverProgram}" == "xautolock" ] ; then
echo "Using 'xautolock' as screensaver program"
xautolock -time ${ScreensaverTime} -locker "xset dpms force off"
elif [ "${ScreensaverProgram}" == "xscreensaver" ] ; then
echo "Using 'xscreensaver' as screensaver program"
xscreensaver &
else
echo "Using 'xautolock' as screensaver program"
xautolock -time ${ScreensaverTime} -locker "xset dpms force off"
fi