From 0f03e82c6d03b7adf27a31af461a1aefff16565c Mon Sep 17 00:00:00 2001 From: Artemis Tosini Date: Wed, 25 Aug 2021 18:11:39 +0000 Subject: [PATCH] Suspend on lid switch --- sets/sway.nix | 1 + 1 file changed, 1 insertion(+) diff --git a/sets/sway.nix b/sets/sway.nix index 15c509b..af30cf3 100644 --- a/sets/sway.nix +++ b/sets/sway.nix @@ -4,6 +4,7 @@ security.polkit.enable = true; services = { accounts-daemon.enable = true; + logind.lidSwitch = "suspend"; logind.extraConfig = "HandlePowerKey=suspend"; }; xdg.portal = {