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
- Host: GitHub
- URL: https://github.com/nowrep/notify-desktop
- Owner: nowrep
- License: gpl-2.0
- Created: 2012-08-19T16:55:06.000Z (almost 14 years ago)
- Default Branch: master
- Last Pushed: 2021-10-15T17:39:32.000Z (over 4 years ago)
- Last Synced: 2025-02-06T02:11:13.903Z (over 1 year ago)
- Language: C
- Size: 35.2 KB
- Stars: 37
- Watchers: 7
- Forks: 2
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: COPYING
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.