Restructure the idlelock exception

This commit is contained in:
SebastianStork 2024-04-21 18:58:00 +02:00
parent 759979860f
commit 8ca2e82d62
3 changed files with 15 additions and 15 deletions

View file

@ -1,6 +1,7 @@
{
inputs,
pkgs,
lib,
...
}: {
imports = [./default.nix];
@ -20,5 +21,7 @@
--replace "5000" "16"
'';
};
services.hypridle.beforeSleepCmd = lib.mkForce "";
};
}

View file

@ -4,19 +4,16 @@
home-manager.users.seb = {
wayland.windowManager.hyprland.settings.monitor = "eDP-1,1920x1080@60,0x0,1";
services.hypridle = {
beforeSleepCmd = "loginctl lock-session";
listeners = [
{
timeout = 300;
onTimeout = "brillo -q -O && brillo -q -S 10";
onResume = "brillo -q -I";
}
{
timeout = 1200;
onTimeout = "systemctl suspend";
}
];
};
services.hypridle.listeners = [
{
timeout = 300;
onTimeout = "brillo -q -O && brillo -q -S 10";
onResume = "brillo -q -I";
}
{
timeout = 1200;
onTimeout = "systemctl suspend";
}
];
};
}