summaryrefslogblamecommitdiff
path: root/autolocker.sh
blob: f7b0b2af72e2514746d50a6d656a7e91e171e980 (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 "doas 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