swayidle: simplify
Some checks are pending
git-mirror / gitlab-sync (push) Waiting to run
nix-build / default-build (push) Waiting to run
nix-build / fallarbor-build (push) Waiting to run
nix-build / lavaridge-build (push) Waiting to run
nix-build / mauville-build (push) Waiting to run
nix-build / petalburg-build (push) Waiting to run
nix-build / rustboro-build (push) Waiting to run
nix-check / fmt-check (push) Waiting to run
nix-check / eval-check (push) Waiting to run

This commit is contained in:
Aly Raffauf 2024-08-02 20:30:35 -04:00
parent c36785774d
commit 75e187bfc5

View file

@ -19,11 +19,11 @@ in {
}
{
event = "before-sleep";
command = "${pkgs.swaylock}/bin/swaylock";
command = "${lib.getExe pkgs.swaylock}";
}
{
event = "lock";
command = "${pkgs.swaylock}/bin/swaylock";
command = "${lib.getExe pkgs.swaylock}";
}
];
@ -42,7 +42,7 @@ in {
++ lib.optional (!cfg.desktop.autoSuspend)
{
timeout = 600;
command = "${pkgs.swaylock}/bin/swaylock";
command = "${lib.getExe pkgs.swaylock}";
}
++ lib.optional (!cfg.desktop.autoSuspend && cfg.desktop.hyprland.enable)
{