enable lockscreen

This commit is contained in:
2026-02-28 21:22:50 +01:00
parent 7817cb19f2
commit 976d6cf554
6 changed files with 55 additions and 21 deletions

View File

@@ -8,14 +8,16 @@
lock_cmd = "/run/current-system/sw/bin/pidof hyprlock || ${pkgs.hyprlock}/bin/hyprlock";
before_sleep_cmd = "/run/current-system/sw/bin/loginctl lock-session";
};
listener = [{
timeout = 300;
on-timeout = "${pkgs.hyprlock}/bin/hyprlock";
}{
timeout = 600;
on-timeout = "${pkgs.systemd}/bin/systemctl suspend";
}];
listener = [
{
timeout = 300;
on-timeout = "${pkgs.hyprlock}/bin/hyprlock";
}
{
timeout = 600;
on-timeout = "${pkgs.systemd}/bin/systemctl suspend";
}
];
};
};
}