crabvk / notify-call

Command-line tool to send desktop notifications and handle actions
MIT License
4 stars 1 forks source link
desktop-notifications notify-send

TODO

notify-call

A command-line tool to send desktop notifications and handle actions via D-Bus on Linux.
It's similar to notify-send with additional features.

Install

On ArchLinux https://aur.archlinux.org/packages/notify-call/

Additional to notify-send features

-R, --replace-file <FILE> saves notification ID and replaces notification on next run.
It stores files in XDG_RUNTIME_DIR (usually /run/user/1000) or /tmp if XDG_RUNTIME_DIR is not set. You can also specify an absolute path.

notify-call -d 'echo example' -o 'echo action1:one' -o 'echo action2:two' hello actions

The default action is usually triggered on the left click.

How it's different from notify-send.sh

Build

Download latest release and

cargo build --release --locked

will build target/release/notify-call.

Desktop Notifications Specification