From 6d97480ad014551f111e00777349ff7886114c70 Mon Sep 17 00:00:00 2001 From: Florian Pritz Date: Wed, 4 Dec 2019 10:27:47 +0100 Subject: screen-locker: Log to syslog when screen is locked/unlocked Signed-off-by: Florian Pritz --- screen-locker.sh | 2 ++ 1 file changed, 2 insertions(+) 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 -- cgit v1.2.3-24-g4f1b