summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorFlorian Pritz <bluewind@xinu.at>2019-12-04 10:27:47 +0100
committerFlorian Pritz <bluewind@xinu.at>2019-12-04 10:27:47 +0100
commit6d97480ad014551f111e00777349ff7886114c70 (patch)
tree1f188404776c2587787a9a410e1a5b1ab0220ca1
parentf1794f45fc890f4b01217a2fc2cf78c801f206d2 (diff)
downloadbin-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-xscreen-locker.sh2
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