LinuxCommandLibrary

dunstify

desktop notification sender for dunst

TLDR

Send a notification

$ dunstify "[message]"
copy
Notification with title
$ dunstify "[title]" "[body]"
copy
Set urgency level
$ dunstify -u [critical] "[message]"
copy
Set timeout
$ dunstify -t [5000] "[message]"
copy
Add action button
$ dunstify -A "[action,label]" "[message]"
copy
Replace notification
$ dunstify -r [id] "[updated message]"
copy
Set icon
$ dunstify -i [icon_name] "[message]"
copy

SYNOPSIS

dunstify [options] summary [body]

DESCRIPTION

dunstify is a notification client specifically designed for dunst, offering extended features beyond the standard notify-send utility. It implements the freedesktop.org notification specification with dunst-specific enhancements.
The tool's key advantage is notification replacement: by storing the notification ID from a previous call (via --printid), subsequent notifications can update the existing one rather than creating duplicates. This is essential for progress indicators, status updates, and volume/brightness notifications.
Additional features include action buttons that can trigger commands when clicked, custom hints for advanced styling, and the ability to close notifications programmatically. The tool integrates seamlessly with dunst's configuration for consistent appearance and behavior.

PARAMETERS

-u, --urgency level

Urgency (low, normal, critical).
-t, --timeout ms
Timeout in milliseconds.
-i, --icon icon
Icon name or path.
-r, --replace id
Replace notification with ID.
-A, --action action,label
Add action button.
-C, --close id
Close notification by ID.
-h, --hints hint
Set hints.
-p, --printid
Print notification ID.

SEE ALSO

> TERMINAL_GEAR

Curated for the Linux community

Copied to clipboard

> TERMINAL_GEAR

Curated for the Linux community