1
0
Fork 0
mirror of https://github.com/nix-community/home-manager synced 2024-12-26 03:39:47 +01:00

swayidle: add systemd suspend to example

This commit is contained in:
Yuchen Guo 2023-11-28 12:38:25 +01:00 committed by Mikilio
parent 1327882cbc
commit 8a4e887bb6
No known key found for this signature in database
GPG key ID: 5B2F1A890CF33F3F

View file

@ -74,6 +74,7 @@ in {
example = literalExpression '' example = literalExpression ''
[ [
{ timeout = 60; command = "${pkgs.swaylock}/bin/swaylock -fF"; } { 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."; description = "List of commands to run after idle timeout.";