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

@ -30,7 +30,7 @@
enable = true;
lockCmd = "pidof ${hyprlockExe} || ${hyprlockExe}";
# beforeSleepCmd = "loginctl lock-session";
beforeSleepCmd = "loginctl lock-session & sleep1";
afterSleepCmd = "hyprctl dispatch dpms on";
listeners = [

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,9 +4,7 @@
home-manager.users.seb = {
wayland.windowManager.hyprland.settings.monitor = "eDP-1,1920x1080@60,0x0,1";
services.hypridle = {
beforeSleepCmd = "loginctl lock-session";
listeners = [
services.hypridle.listeners = [
{
timeout = 300;
onTimeout = "brillo -q -O && brillo -q -S 10";
@ -18,5 +16,4 @@
}
];
};
};
}