blob: f7b0b2af72e2514746d50a6d656a7e91e171e980 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
|
#!/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
|