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; enable = true;
lockCmd = "pidof ${hyprlockExe} || ${hyprlockExe}"; lockCmd = "pidof ${hyprlockExe} || ${hyprlockExe}";
# beforeSleepCmd = "loginctl lock-session"; beforeSleepCmd = "loginctl lock-session & sleep1";
afterSleepCmd = "hyprctl dispatch dpms on"; afterSleepCmd = "hyprctl dispatch dpms on";
listeners = [ listeners = [

View file

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

View file

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