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
No known key found for this signature in database
GPG key ID: 36BDAA14C2797E89

View file

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