From 77d6d40361b2db339d6e4fb7744ebb2425e81e43 Mon Sep 17 00:00:00 2001 From: Gregor Kleen Date: Wed, 10 Aug 2016 18:17:53 +0200 Subject: hybrid-sleep seems buggy & pause dunst during lock --- hel.nix | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/hel.nix b/hel.nix index 5ba63854..1466ea23 100644 --- a/hel.nix +++ b/hel.nix @@ -89,8 +89,8 @@ services = { logind.extraConfig = '' - HandleLidSwitch=hybrid-sleep - HandleSuspendKey=hybrid-sleep + HandleLidSwitch=sleep + HandleSuspendKey=sleep ''; openssh.enable = true; @@ -312,6 +312,8 @@ Type = "simple"; User = "%I"; ExecStart = "${pkgs.slim}/bin/slimlock"; + ExecStartPre = "${pkgs.psmisc}/bin/killall -SIGUSR1 dunst"; + ExecStartPost = "${pkgs.psmisc}/bin/killall -SIGUSR2 dunst"; }; }; systemd.targets."sleep" = { -- cgit v1.2.3