Fix wake from sleep locking

This commit is contained in:
SebastianStork 2024-06-03 18:04:28 +02:00
parent f64087901c
commit 47b4bdfca0
4 changed files with 7 additions and 10 deletions

View file

@ -2,9 +2,6 @@
let
inherit (moduleArgs) pkgs;
in
{
lockOnSleep ? false,
}:
assembleWrapper {
basePackage = pkgs.hypridle;
@ -13,7 +10,7 @@ assembleWrapper {
hypridle-config = pkgs.writeText "hypridle-config" ''
general {
lock_cmd = pidof hyprlock || hyprlock
${if lockOnSleep then "before_sleep_cmd = loginctl lock-session" else ""}
before_sleep_cmd = loginctl lock-session
after_sleep_cmd = hyprctl dispatch dpms on
}