commit 5b18cc7ea544ee2b728b2904fdd383e9a6018062
parent cda4dc5cdfd4606de2dda2f5b0d54c6690d3db1d
Author: Jacob R. Edwards <n/a>
Date: Thu, 1 Dec 2022 20:47:37 -0600
Add 'lock' script
It's reasonable to want a system to go through additional steps
when leaving it as opposed to just locking it, so I moved the locking
bits from 'away' to a new script, 'lock', and have 'away' call
'lock' at the end.
Diffstat:
2 files changed, 8 insertions(+), 3 deletions(-)
diff --git a/local/bin/bin/away b/local/bin/bin/away
@@ -1,7 +1,6 @@
#!/bin/sh
-# Copyright 2021 Jacob R. Edwards
+# Copyright 2021, 2022 Jacob R. Edwards
# Bring the system into a state suitable for being unattended
apc pause 2>/dev/null
-xset dpms force suspend
-exec slock "$@"
+exec lock "$@"
diff --git a/local/bin/bin/lock b/local/bin/bin/lock
@@ -0,0 +1,6 @@
+#!/bin/sh
+# Copyright 2021, 2022 Jacob R. Edwards
+# Bring the system into a state suitable for being unattended
+
+xset dpms force suspend
+exec slock "$@"