summaryrefslogtreecommitdiffstats
path: root/screen-locker.sh
blob: d22c8adf1dffdccf2b08636c8aae093bf3bcc7a9 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
#!/bin/bash

if pidof i3lock &> /dev/null; then exit 1; fi

revert() {
	xset dpms 0 0 0
}
trap revert SIGHUP SIGINT SIGTERM EXIT
xset +dpms dpms 10 10 10

xset dpms force off
i3lock -n -c 000000