Lock before suspend with sleep inhibitor service

This commit is contained in:
David Heinemeier Hansson
2026-05-21 07:57:08 +02:00
parent 0762b20e3e
commit d1b452cc5f
9 changed files with 91 additions and 55 deletions
+8
View File
@@ -0,0 +1,8 @@
echo "Install sleep lock service"
mkdir -p ~/.config/systemd/user/
cp "$OMARCHY_PATH/config/systemd/user/omarchy-sleep-lock.service" ~/.config/systemd/user/
systemctl --user daemon-reload
systemctl --user reset-failed omarchy-sleep-lock.service 2>/dev/null || true
systemctl --user enable --now omarchy-sleep-lock.service