#!/bin/sh notifier="notify-send -t=10000 '10 seconds to lock...'" locker="xautolock -notify 10 -time 10 -locker locker.sh" if [ "$1" = "-d" ]; then $locker -notifier "$notifier" else $locker -detectsleep -killtime 10 -killer "sleeper.sh" -notifier "$notifier" fi