Don't notify on 0 emails
This commit is contained in:
parent
dbe32eef7f
commit
56f5701af7
1 changed files with 2 additions and 1 deletions
|
@ -7,7 +7,8 @@ let
|
||||||
if [ "$unseen_count" = "1" ]
|
if [ "$unseen_count" = "1" ]
|
||||||
then
|
then
|
||||||
${pkgs.libnotify}/bin/notify-send -t 5000 'New ${name} mail arrived' "1 unseen mail"
|
${pkgs.libnotify}/bin/notify-send -t 5000 'New ${name} mail arrived' "1 unseen mail"
|
||||||
else
|
elif [ "$unseen_count" != "0" ]
|
||||||
|
then
|
||||||
${pkgs.libnotify}/bin/notify-send -t 5000 'New ${name} mail arrived' "$unseen_count unseen mails"
|
${pkgs.libnotify}/bin/notify-send -t 5000 'New ${name} mail arrived' "$unseen_count unseen mails"
|
||||||
fi
|
fi
|
||||||
'';
|
'';
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue