logind+sleep: track lid hibernate config; deploy via install.sh

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
funman300
2026-05-10 17:19:51 -07:00
parent e3a6986f81
commit fdcec3dd7d
3 changed files with 10 additions and 0 deletions
+4
View File
@@ -67,4 +67,8 @@ echo "==> Deploying greetd config"
sudo cp "$(pwd)/greetd/config.toml" /etc/greetd/config.toml
sudo cp "$(pwd)/greetd/regreet.toml" /etc/greetd/regreet.toml
echo "==> Deploying suspend/hibernate config"
sudo install -Dm644 "$(pwd)/logind/lid.conf" /etc/systemd/logind.conf.d/lid.conf
sudo install -Dm644 "$(pwd)/sleep/hibernate-delay.conf" /etc/systemd/sleep.conf.d/hibernate-delay.conf
echo "==> Done. Start Niri with: niri-session"
+4
View File
@@ -0,0 +1,4 @@
[Login]
HandleLidSwitch=suspend-then-hibernate
HandleLidSwitchExternalPower=suspend-then-hibernate
HandleLidSwitchDocked=ignore
+2
View File
@@ -0,0 +1,2 @@
[Sleep]
HibernateDelaySec=30min