summaryrefslogtreecommitdiff
path: root/accounts/gkleen@sif
diff options
context:
space:
mode:
Diffstat (limited to 'accounts/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 };