mirror of
https://github.com/SebastianStork/nixos-config.git
synced 2026-01-21 15:11:34 +01:00
Fix wake from sleep locking
This commit is contained in:
parent
f64087901c
commit
47b4bdfca0
4 changed files with 7 additions and 10 deletions
|
|
@ -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
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue