summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--custom/notify-user.nix2
1 files changed, 1 insertions, 1 deletions
diff --git a/custom/notify-user.nix b/custom/notify-user.nix
index 16166f50..382580f3 100644
--- a/custom/notify-user.nix
+++ b/custom/notify-user.nix
@@ -29,9 +29,9 @@ stdenv.mkDerivation {
29 setEnv "DBUS_SESSION_BUS_ADDRESS" sessionAddr 29 setEnv "DBUS_SESSION_BUS_ADDRESS" sessionAddr
30 lines <- lines <$> getContents 30 lines <- lines <$> getContents
31 case lines of 31 case lines of
32 [] -> exitWith ExitSuccess
33 ((trim -> app):(trim -> summary):(trim . unlines -> contents)) -> do 32 ((trim -> app):(trim -> summary):(trim . unlines -> contents)) -> do
34 Notify.display_ $ Notify.appName app <> Notify.summary summary <> Notify.body contents 33 Notify.display_ $ Notify.appName app <> Notify.summary summary <> Notify.body contents
34 _ -> exitWith ExitFailure
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