summaryrefslogblamecommitdiff
path: root/autolocker.sh
blob: 9f6a894ba13638bf514ee8b3137e66c7fd48b053 (plain) (tree)
1
2
3
4
5
6
7
8
9

         
                        




                                                                                                   
    







                                                                                                   
  
#!/bin/sh

if [ "$1" = "-d" ]; then
	xautolock \
		-notify 10 \
		-time 10 \
		-locker "i3lock -n -f -c 000000 -i ~/.local/share/wallpapers/lock.png; sleep 0.2" \
		-notifier "notify-send -t=10000 '10 seconds to lock...'"
else
	xautolock \
		-detectsleep \
		-killtime 10 \
		-killer "acpiconf -s3" \
		-notify 10 \
		-time 10 \
		-locker "i3lock -n -f -c 000000 -i ~/.local/share/wallpapers/lock.png; sleep 0.2" \
		-notifier "notify-send -t=10000 '10 seconds to lock...'"
fi