Skip to main content

Simple notification server

Project description


Simple freedesktop notification daemon.


pip install pynotifyd


pynotifyd outputs JSON-formatted notification events at the standard output and debug information at stderr. Each notification is on exactly one line to make it easier to be collected by shell scripts.

Event types:

notify - Notification has been emitted

  "action": "notify",
  "notification": {
    "id": 3,
    "app_name": "KDE Connect",
    "app_icon": "kdeconnect",
    "summary": "WhatsApp",
    "body": "Tudor: Hi!",
    "urgency": 2

delete - Notification has been dismissed or expired

  "action": "delete",
  "id": 1

Example usage

Requires jq.


pynotifyd 2>/dev/null | while read -r line; do
    action="$(echo "$line" | jq -r .action)"
    case "$action" in
            app_name="$(echo "$line" | jq -r .notification.app_name)"
            echo "New notification from $app_name!"

Project details

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Files for pynotifyd, version 0.0.2
Filename, size File type Python version Upload date Hashes
Filename, size pynotifyd-0.0.2-py3-none-any.whl (8.2 kB) File type Wheel Python version py3 Upload date Hashes View
Filename, size pynotifyd-0.0.2.tar.gz (3.2 kB) File type Source Python version None Upload date Hashes View

Supported by

Pingdom Pingdom Monitoring Google Google Object Storage and Download Analytics Sentry Sentry Error logging AWS AWS Cloud computing DataDog DataDog Monitoring Fastly Fastly CDN DigiCert DigiCert EV certificate StatusPage StatusPage Status page