commit f30358027d88bd520655d495bfa91b36ca18f91f
parent dc8847af384d8275037df9c2391a338fc4d7c2a0
Author: Jacob R. Edwards <n/a>
Date: Mon, 22 Nov 2021 12:55:17 -0800
Fix idle script
It would suspend the system after the away script returned, and it
returns after the locker exits. I believe it would be better to
return once the locker has been setup but it would be messy.
Diffstat:
2 files changed, 3 insertions(+), 3 deletions(-)
diff --git a/local/bin/bin/away b/local/bin/bin/away
@@ -3,4 +3,5 @@
# Bring the system into a state suitable for being unattended
apc pause
-slock xset dpms force suspend
+xset dpms force suspend
+exec slock "$@"
diff --git a/local/bin/bin/idle b/local/bin/bin/idle
@@ -2,5 +2,4 @@
# Copyright 2021 Jacob R. Edwards
# Put system into an idle state
-away
-apm -z
+away apm -z