diff options
author | Florian Pritz <bluewind@xinu.at> | 2019-12-04 10:27:47 +0100 |
---|---|---|
committer | Florian Pritz <bluewind@xinu.at> | 2019-12-04 10:27:47 +0100 |
commit | 6d97480ad014551f111e00777349ff7886114c70 (patch) | |
tree | 1f188404776c2587787a9a410e1a5b1ab0220ca1 | |
parent | f1794f45fc890f4b01217a2fc2cf78c801f206d2 (diff) | |
download | bin-6d97480ad014551f111e00777349ff7886114c70.tar.gz bin-6d97480ad014551f111e00777349ff7886114c70.tar.xz |
screen-locker: Log to syslog when screen is locked/unlocked
Signed-off-by: Florian Pritz <bluewind@xinu.at>
-rwxr-xr-x | screen-locker.sh | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/screen-locker.sh b/screen-locker.sh index d22c8ad..51b6110 100755 --- a/screen-locker.sh +++ b/screen-locker.sh @@ -4,9 +4,11 @@ if pidof i3lock &> /dev/null; then exit 1; fi revert() { xset dpms 0 0 0 + logger "unlocking screen" } trap revert SIGHUP SIGINT SIGTERM EXIT xset +dpms dpms 10 10 10 xset dpms force off +logger "locking screen" i3lock -n -c 000000 |