summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGregor Kleen <gkleen@yggdrasil.li>2022-03-25 14:54:09 +0100
committerGregor Kleen <gkleen@yggdrasil.li>2022-03-25 14:54:09 +0100
commitf890d4d3149478885a94f4c9367b86780b59849b (patch)
treebbe1da7216ec7e6078cce3b9c06997d75304f07e
parent89338f864011214ec98d2c7fe9f912d4bf102f0c (diff)
downloadnixos-f890d4d3149478885a94f4c9367b86780b59849b.tar
nixos-f890d4d3149478885a94f4c9367b86780b59849b.tar.gz
nixos-f890d4d3149478885a94f4c9367b86780b59849b.tar.bz2
nixos-f890d4d3149478885a94f4c9367b86780b59849b.tar.xz
nixos-f890d4d3149478885a94f4c9367b86780b59849b.zip
gkleen@sif: ...
-rw-r--r--accounts/gkleen@sif/default.nix8
1 files changed, 7 insertions, 1 deletions
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 {
236 screen-locker = { 236 screen-locker = {
237 enable = true; 237 enable = true;
238 lockCmd = toString (pkgs.writeShellScript "lock" '' 238 lockCmd = toString (pkgs.writeShellScript "lock" ''
239 cleanup() {
240 ${cfg.services.dunst.package}/bin/dunstctl set-paused false
241 }
242 trap cleanup EXIT INT TERM
243
239 ${pkgs.playerctl}/bin/playerctl -a pause 244 ${pkgs.playerctl}/bin/playerctl -a pause
240 exec ${pkgs.xsecurelock}/bin/xsecurelock 245 ${cfg.services.dunst.package}/bin/dunstctl set-paused true
246 ${pkgs.xsecurelock}/bin/xsecurelock
241 ''); 247 '');
242 xss-lock.extraOptions = ["--transfer-sleep-lock"]; 248 xss-lock.extraOptions = ["--transfer-sleep-lock"];
243 }; 249 };