summaryrefslogtreecommitdiff
path: root/autolocker.sh
blob: 5c79e23ba8931652a6354c2616d08991289d308c (plain) (blame)
1
2
3
4
5
6
7
8
9
10
#!/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