| Safe Haskell | None | 
|---|---|
| Language | Haskell2010 | 
System.Taffybar.Widget.FreedesktopNotifications
Description
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.
Synopsis
- data Notification = Notification {- noteAppName :: Text
- noteReplaceId :: Word32
- noteSummary :: Text
- noteBody :: Text
- noteExpireTimeout :: Maybe Int32
- noteId :: Word32
 
- data NotificationConfig = NotificationConfig {}
- defaultNotificationConfig :: NotificationConfig
- notifyAreaNew :: MonadIO m => NotificationConfig -> m Widget
Documentation
data Notification Source #
A simple structure representing a Freedesktop notification
Constructors
| Notification | |
| Fields 
 | |
Instances
| Eq Notification Source # | |
| Show Notification Source # | |
| Defined in System.Taffybar.Widget.FreedesktopNotifications Methods showsPrec :: Int -> Notification -> ShowS # show :: Notification -> String # showList :: [Notification] -> ShowS # | |
data NotificationConfig Source #
Constructors
| NotificationConfig | |
| Fields 
 | |
defaultNotificationConfig :: NotificationConfig Source #
The default formatter is one of * Summary : Body * Summary * (N) Summary : Body * (N) Summary depending on the presence of a notification body, and where N is the number of queued notifications.
notifyAreaNew :: MonadIO m => NotificationConfig -> m Widget Source #
Create a new notification area with the given configuration.