Added Hypridle and Hyprlock && switched to UWSM

This commit is contained in:
2025-11-27 15:23:59 -05:00
parent 1f1bd53be9
commit 96fdf27a60
11 changed files with 205 additions and 5 deletions

View File

@@ -0,0 +1,29 @@
{
...
}:
{
services.hypridle = {
enable = true;
settings = {
general = {
lock_cmd = "pidof hyprlock || hyprlock";
before_sleep_cmd = "loginctl lock-session";
};
listener = [
{
timeout = 300;
on-timeout = "loginctl lock-session";
}
{
timeout = 600;
on-timeout = "hyprctl dispatch dpms off";
on-resume = "hyprctl dispatch dpms on";
}
{
timeout = 1800;
on-timeout = "systemctl suspend || loginctl suspend";
}
];
};
};
}