mirror of
https://github.com/nix-community/home-manager.git
synced 2026-01-12 01:59:37 +08: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:
@@ -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"; }
|
||||
]
|
||||
'';
|
||||
|
||||
Reference in New Issue
Block a user