From f890d4d3149478885a94f4c9367b86780b59849b Mon Sep 17 00:00:00 2001 From: Gregor Kleen Date: Fri, 25 Mar 2022 14:54:09 +0100 Subject: gkleen@sif: ... --- accounts/gkleen@sif/default.nix | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) (limited to 'accounts') diff --git a/accounts/gkleen@sif/default.nix b/accounts/gkleen@sif/default.nix index d4d81849..7853bd5d 100644 --- a/accounts/gkleen@sif/default.nix +++ b/accounts/gkleen@sif/default.nix @@ -236,8 +236,14 @@ in { screen-locker = { enable = true; lockCmd = toString (pkgs.writeShellScript "lock" '' + cleanup() { + ${cfg.services.dunst.package}/bin/dunstctl set-paused false + } + trap cleanup EXIT INT TERM + ${pkgs.playerctl}/bin/playerctl -a pause - exec ${pkgs.xsecurelock}/bin/xsecurelock + ${cfg.services.dunst.package}/bin/dunstctl set-paused true + ${pkgs.xsecurelock}/bin/xsecurelock ''); xss-lock.extraOptions = ["--transfer-sleep-lock"]; }; -- cgit v1.2.3