tjeb / Mailbox-Alert

BSD 3-Clause "New" or "Revised" License
39 stars 13 forks source link

Feature request: Use libnotify to support native notifications #31

Open ZeiP opened 3 years ago

ZeiP commented 3 years ago

The notifications that I think are caused by the addon are especially in Wayland/Sway full-screen and pretty annoying. It'd be much better if the addon supported at least optionally sending the notifications through libnotify so that they would go through the native notification platform and look the same as other notifications.

StayPirate commented 3 years ago

You can configure mailbox-alert to execute commands when emails arrive. You can leverage this feature to run notify-send while disable the show a message checkbox.

Example:

/usr/bin/notify-send -i /home/crazybyte/.local/share/icons/custom_icons/256x256/apps/thunderbird.png "%sendername on %originalfolder" "%subject"

image

Note: in this way you cannot associate any task to the toast notification (not clickable). For instance, you cannot click on it and expect it opens the email on a new window.

mhalano commented 2 years ago

This could be very helpful. I'm using Ubuntu 22.04 and native message doesn't work, so I have to use command, as was said it's not very feature-complete

jenschurchill commented 2 years ago

I am writing a python script to integrate Mailbox-Alert with libnotify, it currently works but I would like to add options via a GUI for end-user customisation, such as silencing certain notifications and pushing others till later on certain conditions.

I use this myself, so emails from some accounts aren't shown during working hours, and such.

Will publish once more feature complete.

If #34 is added, I would integrate with that as well to remove notifications if read.