This commit is contained in:
Filippo Berto 2025-01-04 12:01:59 +01:00
parent 86c8734c27
commit b2a8045b2f
Signed by: bertof
GPG key ID: 9DBF7E6A1D2CE9ED
5 changed files with 76 additions and 9 deletions

View file

@ -1,4 +1,4 @@
{ pkgs, ... }:
{ pkgs, config, ... }:
{
home.packages = builtins.attrValues { inherit (pkgs) brillo; };
@ -7,11 +7,11 @@
events = [
{
event = "before-sleep";
command = "${pkgs.wl-lockscreen}/bin/wl-lockscreen";
command = "${config.programs.hyprlock.package}/bin/hyprlock";
}
{
event = "lock";
command = "${pkgs.wl-lockscreen}/bin/wl-lockscreen";
command = "${config.programs.hyprlock.package}/bin/hyprlock";
}
];
timeouts = [
@ -22,7 +22,7 @@
}
{
timeout = 120;
command = "${pkgs.brillo}/bin/brillo -e -S 0; ${pkgs.wl-lockscreen}/bin/wl-lockscreen";
command = "${pkgs.brillo}/bin/brillo -e -S 0; ${config.programs.hyprlock.package}/bin/hyprlock";
resumeCommand = "${pkgs.brillo}/bin/brillo -e -S 100";
}
];