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:
@@ -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"
|
||||
|
||||
@@ -0,0 +1,4 @@
|
||||
[Login]
|
||||
HandleLidSwitch=suspend-then-hibernate
|
||||
HandleLidSwitchExternalPower=suspend-then-hibernate
|
||||
HandleLidSwitchDocked=ignore
|
||||
@@ -0,0 +1,2 @@
|
||||
[Sleep]
|
||||
HibernateDelaySec=30min
|
||||
Reference in New Issue
Block a user