home: fix swayidle not working properly
fixes https://github.com/Guanran928/flake/issues/1
This commit is contained in:
parent
89c14dbd7c
commit
3aede98bd9
2 changed files with 9 additions and 4 deletions
|
@ -1,4 +1,8 @@
|
|||
{pkgs, ...}: {
|
||||
{
|
||||
pkgs,
|
||||
lib,
|
||||
...
|
||||
}: {
|
||||
imports = [
|
||||
../swaylock
|
||||
];
|
||||
|
@ -9,7 +13,7 @@
|
|||
timeouts = [
|
||||
{
|
||||
timeout = 900;
|
||||
command = "swaylock";
|
||||
command = lib.getExe pkgs.swaylock-effects;
|
||||
} # lock screen
|
||||
{
|
||||
timeout = 905;
|
||||
|
@ -24,11 +28,11 @@
|
|||
events = [
|
||||
{
|
||||
event = "lock";
|
||||
command = "swaylock";
|
||||
command = lib.getExe pkgs.swaylock-effects;
|
||||
} # loginctl lock-session
|
||||
{
|
||||
event = "before-sleep";
|
||||
command = "swaylock";
|
||||
command = lib.getExe pkgs.swaylock-effects;
|
||||
} # systemctl syspend
|
||||
];
|
||||
};
|
||||
|
|
|
@ -3,6 +3,7 @@
|
|||
enable = true;
|
||||
package = pkgs.swaylock-effects;
|
||||
settings = {
|
||||
daemonize = true;
|
||||
screenshots = true;
|
||||
clock = true;
|
||||
indicator = true;
|
||||
|
|
Loading…
Reference in a new issue