This commit is contained in:
death916 2026-02-17 00:56:52 -08:00
parent 74729cb8a5
commit ab081902e4

View file

@ -411,6 +411,36 @@
enable = true;
};
services.hypridle = {
enable = true;
settings = {
general = {
after_sleep_cmd = "hyprctl dispatch dpms on";
ignore_dbus_inhibit = false;
lock_cmd = "hyprlock";
};
listener = [
# Lock after 5 minutes of inactivity
{
timeout = 300;
on-timeout = "hyprlock";
}
# Turn off display after 10 minutes
{
timeout = 600;
on-timeout = "hyprctl dispatch dpms off";
on-resume = "hyprctl dispatch dpms on";
}
# Suspend the laptop after 30 minutes
{
timeout = 1800;
on-timeout = "systemctl suspend";
}
];
};
};
services.dunst = {
enable = true;
settings = {