mirror of
https://github.com/nix-community/home-manager
synced 2024-11-27 05:29:46 +01:00
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:
parent
1a8e35d2e5
commit
6427ae9578
1 changed files with 2 additions and 2 deletions
|
@ -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"; }
|
||||||
]
|
]
|
||||||
'';
|
'';
|
||||||
|
|
Loading…
Reference in a new issue