From 31eaea9034a2bb459afcd9714fb01ed04206739c Mon Sep 17 00:00:00 2001 From: Gregor Kleen Date: Thu, 6 Oct 2016 17:47:12 +0200 Subject: dunst-suspend --- users/gkleen@hel.nix | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'users') diff --git a/users/gkleen@hel.nix b/users/gkleen@hel.nix index bd96a9fd..aff24e15 100644 --- a/users/gkleen@hel.nix +++ b/users/gkleen@hel.nix @@ -27,6 +27,15 @@ ln -s $out/bin/gpg2 $out/bin/gpg ''; }); + dunst-suspend = pkgs.writeScriptBin "dunst-suspend" '' + #!${pkgs.stdenv.shell} + + export PATH=${pkgs.psmisc}/bin:$PATH + + killall -s USR1 -u "$(whoami)" -- dunst + $@ + killall -s USR2 -u "$(whoami)" -- dunst + ''; } // (import ../utils/nix/default.nix) {}; allowUnfree = true; -- cgit v1.2.3