those are core packages

This commit is contained in:
Reid 2026-04-25 00:23:31 -07:00
parent 1dcb422dbb
commit d637bb5dc3
Signed by: reidlab
GPG key ID: DAF5EAF6665839FD
4 changed files with 10 additions and 13 deletions

View file

@ -21,10 +21,10 @@ in {
settings = {
general = {
lock_cmd = "${pkgs.procps}/bin/pidof hyprlock || ${lib.getExe config.modules.desktop.hyprlock.package}";
unlock_cmd = "${pkgs.procps}/bin/pkill -USR1 hyprlock";
lock_cmd = "pidof hyprlock || ${lib.getExe config.modules.desktop.hyprlock.package}";
unlock_cmd = "pkill -USR1 hyprlock";
before_sleep_cmd = "${pkgs.systemd}/bin/loginctl lock-session";
before_sleep_cmd = "loginctl lock-session";
};
listener = [
@ -32,7 +32,7 @@ in {
timeout = if config.modules.core.laptop
then 60 * 2 # 2 min
else 60 * 35; # 35 min
on-timeout = "${pkgs.systemd}/bin/loginctl lock-session"; # lock computer
on-timeout = "loginctl lock-session"; # lock computer
}
] ++ optionals (config.modules.core.laptop) [
{
@ -47,7 +47,7 @@ in {
}
{
timeout = 60 * 15; # 15 min
on-timeout = "${pkgs.systemd}/bin/systemctl suspend"; # sleep/suspend
on-timeout = "systemctl suspend"; # sleep/suspend
}
] ++ optional config.modules.desktop.niri.enable {
timeout = if config.modules.core.laptop