An open API service indexing awesome lists of open source software.

https://github.com/nowrep/notify-desktop

notify-send clone without external dependencies
https://github.com/nowrep/notify-desktop

Last synced: over 1 year ago
JSON representation

notify-send clone without external dependencies

Awesome Lists containing this project

README

          

notify-desktop
----------------------------------------------------------------------------------------

Little application that lets you send desktop notifications with one command.
It's basically clone of notify-send from libnotify, but it supports reusing notifications
on screen by passing its ID. It also does not use any external dependencies (except from
libdbus of course).
I wrote it because I needed to reuse notifications on screen in my scripts.

Compiling
----------------------------------------------------------------------------------------

Build dependencies are only pkg-config and libdbus.

$ make
$ sudo make install

Usage
----------------------------------------------------------------------------------------

From notify-desktop --help:

Usage: notify-desktop [OPTION...] [BODY]

Options:
-r, --replaces-id=ID Specifies the notifications ID that will be replaced
-u, --urgency=LEVEL Specifies the urgency level (low, normal, critical)
-t, --expire-time=TIME Specifies the timeout in milliseconds to expire the notification
-a, --app-name=APP_NAME Specifies the app name for the icon
-i, --icon=ICON Specifies an icon filename or stock icon to display
-c, --category=TYPE Specifies the notification category

ID of sent notification is written into standard output.

Examples:

notify-desktop "Minimal notification"

notify-desktop --icon=call-start "Incoming call"

notify-desktop -i down -u low "Low urgency" "Body of low urgency notification"

Example bash functions that use --replaces-id option can be found in doc/ directory.