From 2ccd89db1864a8f365513fc78d1cc505335e3f0d Mon Sep 17 00:00:00 2001 From: Meutel Date: Wed, 22 Nov 2017 20:01:58 +0100 Subject: [PATCH] oda: lock screen on suspend --- suspend__oda.armorique.lan | 5 +++++ 1 file changed, 5 insertions(+) create mode 100755 suspend__oda.armorique.lan diff --git a/suspend__oda.armorique.lan b/suspend__oda.armorique.lan new file mode 100755 index 0000000..a40cf8c --- /dev/null +++ b/suspend__oda.armorique.lan @@ -0,0 +1,5 @@ +#!/bin/sh +# /etc/apm/suspend +# lock screen on suspend +doas -u meutel env DISPLAY=:0 XAUTHORITY=/home/meutel/.Xauthority xlock -mode blank & +logger /etc/apm/suspend lock screen $?