aboutsummaryrefslogtreecommitdiffstats
path: root/cli/i3lock.sh
blob: 1af93d663e6ccc3d2ed3f4b72bbf76eff538883e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
#!/bin/sh
#
# see i3lock(1)
#
# Aaron LI
# 2017-10-03
#

revert() {
    xset dpms 0 0 0
}

trap revert SIGHUP SIGINT SIGTERM
xset +dpms dpms 5 5 5
i3lock -n
revert