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 &
xscreensaver-command -time >/dev/null 2>&1 || xscreensaver &
# It can take a while for xscreensaver to start, wait until it's
- # ready.
+ # ready. a || b && c behaves like (a || b) && c.
while :; do
xscreensaver-command -lock || test $? -ne 255 && break
done