echo xscreensaver
elif installed xautolock; then
if installed "$lock_binary"; then
+ # Terminate a running xautolock because we might have to replace
+ # its timeout and other settings with our values.
+ pkill -u "$USER" xautolock || true
+
xautolock -secure -time "$lock_time_minutes" \
-locker "$lock_binary" \
>/dev/null &
elif installed xtrlock; then
# Sleep is necessary to allow xtrlock to grab the keyboard input.
sleep 1
- xtrlock
+ exec xtrlock
+ elif installed xlock; then
+ exec xlock
else
echo 'No screen locker found!'
exit 1