diff options
author | Gregor Kleen <pngwjpgh@users.noreply.github.com> | 2016-08-10 18:17:53 +0200 |
---|---|---|
committer | Gregor Kleen <pngwjpgh@users.noreply.github.com> | 2016-08-10 18:17:53 +0200 |
commit | 77d6d40361b2db339d6e4fb7744ebb2425e81e43 (patch) | |
tree | 8fe45b888eedbe251cfefa553c5154fb1ebdc365 | |
parent | 827dc420d6ca37bab1c102eb942172c960cf9a17 (diff) | |
download | nixos-77d6d40361b2db339d6e4fb7744ebb2425e81e43.tar nixos-77d6d40361b2db339d6e4fb7744ebb2425e81e43.tar.gz nixos-77d6d40361b2db339d6e4fb7744ebb2425e81e43.tar.bz2 nixos-77d6d40361b2db339d6e4fb7744ebb2425e81e43.tar.xz nixos-77d6d40361b2db339d6e4fb7744ebb2425e81e43.zip |
hybrid-sleep seems buggy & pause dunst during lock
-rw-r--r-- | hel.nix | 6 |
1 files changed, 4 insertions, 2 deletions
@@ -89,8 +89,8 @@ | |||
89 | 89 | ||
90 | services = { | 90 | services = { |
91 | logind.extraConfig = '' | 91 | logind.extraConfig = '' |
92 | HandleLidSwitch=hybrid-sleep | 92 | HandleLidSwitch=sleep |
93 | HandleSuspendKey=hybrid-sleep | 93 | HandleSuspendKey=sleep |
94 | ''; | 94 | ''; |
95 | 95 | ||
96 | openssh.enable = true; | 96 | openssh.enable = true; |
@@ -312,6 +312,8 @@ | |||
312 | Type = "simple"; | 312 | Type = "simple"; |
313 | User = "%I"; | 313 | User = "%I"; |
314 | ExecStart = "${pkgs.slim}/bin/slimlock"; | 314 | ExecStart = "${pkgs.slim}/bin/slimlock"; |
315 | ExecStartPre = "${pkgs.psmisc}/bin/killall -SIGUSR1 dunst"; | ||
316 | ExecStartPost = "${pkgs.psmisc}/bin/killall -SIGUSR2 dunst"; | ||
315 | }; | 317 | }; |
316 | }; | 318 | }; |
317 | systemd.targets."sleep" = { | 319 | systemd.targets."sleep" = { |