From 4a8545f5e737a6338814a4676dc8e18c7f43fc57 Mon Sep 17 00:00:00 2001 From: Yuchen Guo <77314501+ne9z@users.noreply.github.com> Date: Tue, 28 Nov 2023 12:38:25 +0100 Subject: [PATCH] swayidle: add systemd suspend to example --- modules/services/swayidle.nix | 1 + 1 file changed, 1 insertion(+) diff --git a/modules/services/swayidle.nix b/modules/services/swayidle.nix index bf791b1ec..b28de6f0e 100644 --- a/modules/services/swayidle.nix +++ b/modules/services/swayidle.nix @@ -74,6 +74,7 @@ in { example = literalExpression '' [ { timeout = 60; command = "${pkgs.swaylock}/bin/swaylock -fF"; } + { timeout = 90; command = "${pkgs.systemd}/bin/systemctl suspend"; } ] ''; description = "List of commands to run after idle timeout.";