This widget listens on DBus for freedesktop notifications (http:developer.gnome.orgnotification-spec). Currently it is somewhat ugly, but the format is somewhat configurable. A visual overhaul of the widget is coming.
The widget only displays one notification at a time and notifications are cancellable.
- data Notification = Notification {
- noteAppName :: Text
- noteReplaceId :: Word32
- noteSummary :: Text
- noteBody :: Text
- noteExpireTimeout :: Int32
- noteId :: Word32
- data NotificationConfig = NotificationConfig {}
- notifyAreaNew :: NotificationConfig -> IO Widget
- defaultNotificationConfig :: NotificationConfig
Types
data Notification
A simple structure representing a Freedesktop notification
Notification | |
|
data NotificationConfig
NotificationConfig | |
|
Constructor
notifyAreaNew :: NotificationConfig -> IO Widget
Create a new notification area with the given configuration.
defaultNotificationConfig :: NotificationConfig
The default formatter is one of
- Summary : Body
- Summary
depending on the presence of a notification body.