taffybar-4.0.0: A desktop bar similar to xmobar, but with more GUI
Safe HaskellSafe-Inferred
LanguageHaskell2010

System.Taffybar.Widget.FreedesktopNotifications

Description

This widget listens on DBus for freedesktop notifications (http://developer.gnome.org/notification-spec/). Currently it is somewhat ugly, but the format is somewhat configurable.

The widget only displays one notification at a time and notifications are cancellable.

The notificationDaemon thread handles new notifications and cancellation requests, adding or removing the notification to or from the queue. It additionally starts a timeout thread for each notification added to queue.

The display thread blocks idling until it is awakened to refresh the GUI

A timeout thread is associated with a notification id. It sleeps until the specific timeout and then removes every notification with that id from the queue

Synopsis

Documentation

data Notification Source #

A simple structure representing a Freedesktop notification

data NotificationConfig Source #

Constructors

NotificationConfig 

Fields

Instances

Instances details
Default NotificationConfig Source # 
Instance details

Defined in System.Taffybar.Widget.FreedesktopNotifications

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.