Skip to content

h3ndrk/dbus-notifications

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 

Repository files navigation

dbus-notifications

This program creates a server which listens on the DBus. It tracks notification messages and response to it according to the specs. In addition all received notifications will be displayed in JSON (RFC 4627) format (on stdout).

Actions, Hints, Markup and Icons are not supported.

This program uses the libdbus library. It is compatible to the libnotify library.

Output

Example output on command line:

{"app_name":"notify-send","body":"Example body","summary":"Some text...","expire_timeout":1000}

The previous output can be reproduced with the following command (dependency: libnotify):

$ notify-send --expire-time=1000 "Example body" "Some text..."

Field description

  • app_name: The optional name of the application sending the notification. Can be blank.
  • body: The optional detailed body text. Can be empty.
  • summary: The summary text briefly describing the notification.
  • expire_timeout: The timeout time in milliseconds since the display of the notification at which the notification should automatically close. If -1, the notification's expiration time is dependent on the notification server's settings, and may vary for the type of notification. If 0, never expire.

License

lastest GPL-license (see LICENSE-file)

Copyright (C) 2015 NIPE-SYSTEMS, http://nipe-systems.de

About

Output desktop notifications on the command line in JSON format.

Resources

License

Stars

Watchers

Forks

Packages

No packages published