Locking things

This commit is contained in:
Geoffrey Frogeye 2016-11-23 20:13:26 +01:00
parent b536af829e
commit f14cbe7f2c
3 changed files with 9 additions and 11 deletions

View file

@ -1,6 +1,12 @@
#!/bin/sh
#!/usr/bin/env sh
dm-tool lock
if [ $? -ne 0 ]; then
$HOME/.config/i3/blurlock
revert() {
xset dpms 0 0 0
}
trap revert SIGHUP SIGINT SIGTERM
xset dpms 5 5 5
i3lock --nofork --color 648901 --ignore-empty-password
revert
fi