diff options
author | Gregor Kleen <pngwjpgh@users.noreply.github.com> | 2016-10-02 16:40:52 +0200 |
---|---|---|
committer | Gregor Kleen <pngwjpgh@users.noreply.github.com> | 2016-10-02 16:40:52 +0200 |
commit | 9f4705648a25daf569fbcd38e9cf7bd14a0b875d (patch) | |
tree | 013ba1d3abe72fa3b90841635b0983e2ba12b3d0 | |
parent | a2c1a4957e7d001806b6f51a861fbfead4586948 (diff) | |
download | nixos-9f4705648a25daf569fbcd38e9cf7bd14a0b875d.tar nixos-9f4705648a25daf569fbcd38e9cf7bd14a0b875d.tar.gz nixos-9f4705648a25daf569fbcd38e9cf7bd14a0b875d.tar.bz2 nixos-9f4705648a25daf569fbcd38e9cf7bd14a0b875d.tar.xz nixos-9f4705648a25daf569fbcd38e9cf7bd14a0b875d.zip |
support for appName
-rw-r--r-- | custom/notify-user.nix | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/custom/notify-user.nix b/custom/notify-user.nix index 99c6d8c1..16166f50 100644 --- a/custom/notify-user.nix +++ b/custom/notify-user.nix | |||
@@ -30,8 +30,8 @@ stdenv.mkDerivation { | |||
30 | lines <- lines <$> getContents | 30 | lines <- lines <$> getContents |
31 | case lines of | 31 | case lines of |
32 | [] -> exitWith ExitSuccess | 32 | [] -> exitWith ExitSuccess |
33 | ((trim -> summary):(trim . unlines -> contents)) -> do | 33 | ((trim -> app):(trim -> summary):(trim . unlines -> contents)) -> do |
34 | Notify.display_ $ Notify.appName "notify-${user}" <> Notify.summary summary <> Notify.body contents | 34 | Notify.display_ $ Notify.appName app <> Notify.summary summary <> Notify.body contents |
35 | where | 35 | where |
36 | trim = dropWhileEnd isSpace . dropWhile isSpace | 36 | trim = dropWhileEnd isSpace . dropWhile isSpace |
37 | unQuote ('\''':xs) = init xs | 37 | unQuote ('\''':xs) = init xs |