swayidle: fix examples

The example did not work before, since the systemd service does not
have swaylock in its PATH.

PR #3298
This commit is contained in:
wuyoli
2022-10-04 18:50:55 +02:00
committed by Robert Helgesson
parent 1a8e35d2e5
commit 6427ae9578

View File

@@ -73,7 +73,7 @@ in {
default = [ ];
example = literalExpression ''
[
{ timeout = 60; command = "swaylock -fF"; }
{ timeout = 60; command = "${pkgs.swaylock}/bin/swaylock -fF"; }
]
'';
description = "List of commands to run after idle timeout.";
@@ -84,7 +84,7 @@ in {
default = [ ];
example = literalExpression ''
[
{ event = "before-sleep"; command = "swaylock"; }
{ event = "before-sleep"; command = "${pkgs.swaylock}/bin/swaylock"; }
{ event = "lock"; command = "lock"; }
]
'';