The notify-rust library supports various notification capabilities (features) that depend on the underlying desktop environment and notification daemon. When sending notifications, you can leverage these capabilities to enhance the user experience, such as adding actions, markup, or persistence.
Common capabilities across different environments include:
body: The main text of the notification.body-markup: Allows using markup (like Pango) in the body.icon-static: Allows specifying a static icon.actions: Allows adding interactive buttons/actions to the notification.
Note that specific capabilities like persistence or sound may only be supported on certain platforms (e.g., gnome 3).
### unity
* body
* body-markup
* icon-static
* image/svg+xml
* x-canonical-private-synchronous
* x-canonical-append
* x-canonical-private-icon-only
* x-canonical-truncation
* private-synchronous
* append
* private-icon-only
* truncation
### xfce Notifyd
* actions
* body
* body-markup
* body-hyperlinks
* icon-static
* x-canonical-private-icon-only
### kde plasma5
* body
* body-hyperlinks
* body-markup
* icon-static
* actions
### gnome 3
* actions
* body
* body-markup
* icon-static
* persistence
* sound