summaryrefslogtreecommitdiff
path: root/accounts/gkleen@sif/default.nix
diff options
context:
space:
mode:
Diffstat (limited to 'accounts/gkleen@sif/default.nix')
-rw-r--r--accounts/gkleen@sif/default.nix4
1 files changed, 3 insertions, 1 deletions
diff --git a/accounts/gkleen@sif/default.nix b/accounts/gkleen@sif/default.nix
index d3db91c8..2cfaa620 100644
--- a/accounts/gkleen@sif/default.nix
+++ b/accounts/gkleen@sif/default.nix
@@ -258,12 +258,14 @@ in {
258 screen-locker = { 258 screen-locker = {
259 enable = true; 259 enable = true;
260 lockCmd = toString (pkgs.writeShellScript "lock" '' 260 lockCmd = toString (pkgs.writeShellScript "lock" ''
261 ${pkgs.playerctl}/bin/playerctl -a status | ${pkgs.gnugrep}/bin/grep -q "Playing" && exit 0
262
261 cleanup() { 263 cleanup() {
262 ${cfg.services.dunst.package}/bin/dunstctl set-paused false 264 ${cfg.services.dunst.package}/bin/dunstctl set-paused false
263 } 265 }
264 trap cleanup EXIT INT TERM 266 trap cleanup EXIT INT TERM
265 267
266 ${pkgs.playerctl}/bin/playerctl -a pause 268 # ${pkgs.playerctl}/bin/playerctl -a pause
267 ${cfg.services.dunst.package}/bin/dunstctl set-paused true 269 ${cfg.services.dunst.package}/bin/dunstctl set-paused true
268 ${pkgs.xsecurelock}/bin/xsecurelock 270 ${pkgs.xsecurelock}/bin/xsecurelock
269 ''); 271 '');