dotfiles/config/i3/lock

13 lines
230 B
Plaintext
Raw Normal View History

2016-11-23 20:13:26 +01:00
#!/usr/bin/env sh
2015-09-26 21:32:00 +02:00
dm-tool lock
if [ $? -ne 0 ]; then
2016-11-23 20:13:26 +01:00
revert() {
xset dpms 0 0 0
}
trap revert SIGHUP SIGINT SIGTERM
xset dpms 5 5 5
i3lock --nofork --color 648901 --ignore-empty-password
revert
2015-09-26 21:32:00 +02:00
fi