summaryrefslogtreecommitdiff
path: root/users/gkleen@hel.nix
diff options
context:
space:
mode:
authorGregor Kleen <pngwjpgh@users.noreply.github.com>2016-10-06 17:47:12 +0200
committerGregor Kleen <pngwjpgh@users.noreply.github.com>2016-10-06 17:47:12 +0200
commit31eaea9034a2bb459afcd9714fb01ed04206739c (patch)
tree408472a40f97222e7b1512ca3e5283c9b06f113a /users/gkleen@hel.nix
parentf0122bd423489a61f794bb1c766ed62fca005c23 (diff)
downloadnixos-31eaea9034a2bb459afcd9714fb01ed04206739c.tar
nixos-31eaea9034a2bb459afcd9714fb01ed04206739c.tar.gz
nixos-31eaea9034a2bb459afcd9714fb01ed04206739c.tar.bz2
nixos-31eaea9034a2bb459afcd9714fb01ed04206739c.tar.xz
nixos-31eaea9034a2bb459afcd9714fb01ed04206739c.zip
dunst-suspend
Diffstat (limited to 'users/gkleen@hel.nix')
-rw-r--r--users/gkleen@hel.nix9
1 files changed, 9 insertions, 0 deletions
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 @@
27 ln -s $out/bin/gpg2 $out/bin/gpg 27 ln -s $out/bin/gpg2 $out/bin/gpg
28 ''; 28 '';
29 }); 29 });
30 dunst-suspend = pkgs.writeScriptBin "dunst-suspend" ''
31 #!${pkgs.stdenv.shell}
32
33 export PATH=${pkgs.psmisc}/bin:$PATH
34
35 killall -s USR1 -u "$(whoami)" -- dunst
36 $@
37 killall -s USR2 -u "$(whoami)" -- dunst
38 '';
30 } // (import ../utils/nix/default.nix) {}; 39 } // (import ../utils/nix/default.nix) {};
31 40
32 allowUnfree = true; 41 allowUnfree = true;