NOTIFY-SEND(1)

๐Ÿ’– NAME ๐Ÿ’–

ok so notify-send โ€” it's a program to send desktop notifications ๐Ÿฆ‹ like literally it pings your notification daemon from the command line, no big deal, just main character energy โœจ


โœจ SYNOPSIS โœจ

notify-send [OPTIONS] {summary} [body]

๐ŸŒธ DESCRIPTION ๐ŸŒธ

bestie. with notify-send you can send desktop notifications to the user through a notification daemon, straight from the command line ๐Ÿ’… no GUI needed, no fuss, we love that for us.

these notifications are perfect for telling the user about an event, or just showing them some info, all without getting in their way. it's giving respectful. it's giving polite. it's giving iconic ๐Ÿ‘‘


๐ŸŽ€ OPTIONS ๐ŸŽ€

  • -?, --help โ€” shows the help and dips out, bye ๐Ÿ’จ
  • -a, --app-name=APP_NAME โ€” sets the app name for the notification, so everyone knows who's talking ๐Ÿซถ
  • -A, --action=[NAME=]Text... โ€” picks the actions to show the user. heads up, this one implies --wait, so it's gonna sit there and wait for the user to actually do something. you can set it multiple times if you're feeling extra ๐Ÿ’– the NAME of the action gets output to stdout. and if you don't give a NAME? then the numerical index of the option is used instead, starting from 1. slay.
  • --selected-action-fd=FILE_DESCRIPTOR โ€” the file descriptor where the action chosen by the user gets written ๐Ÿ“
  • --activation-token-fd=FILE_DESCRIPTOR โ€” the file descriptor where the action activation token gets written. note: the daemon has to support it, so it's a vibe check situation ๐Ÿ˜ญ
  • -u, --urgency=LEVEL โ€” sets the urgency level. your options are low, normal, critical ๐Ÿ”ฅ
  • -t, --expire-time=TIME โ€” how long, in milliseconds, the notification stays on screen โฐ
real talk though: not every implementation actually uses this parameter ๐Ÿ˜ฌ GNOME Shell and Notify OSD always ignore it, and Plasma ignores it for notifications with the critical urgency level. so likeโ€ฆ set it, but don't be shocked.
  • -i, --icon=ICON โ€” sets an icon filename or a stock icon to display ๐ŸŒˆ
  • -n, --app-icon=ICON โ€” sets an application icon filename or app icon name. the server may or may not display it, so it's giving maybe ๐Ÿ‘€
  • -c, --category=TYPE[,TYPE...] โ€” sets the notification category ๐Ÿท๏ธ
  • -h, --hint=TYPE:NAME:VALUE โ€” passes some basic extra data along. valid types are BOOLEAN, INT, DOUBLE, STRING, BYTE and VARIANT ๐Ÿ’ซ
  • -p, --print-id โ€” prints the notification ID ๐Ÿ†”
  • --id-fd=FILE_DESCRIPTOR โ€” the file descriptor where the notification ID gets written โœ๏ธ
  • -r, --replace-id=REPLACE_ID โ€” the ID of the notification you want to replace โ™ป๏ธ
  • -w, --wait โ€” waits for the notification to be closed before exiting. and if the expire-time is set, that gets used as the maximum waiting time, so it won't wait forever bestie โณ
  • -e, --transient โ€” shows a transient notification. transient notifications by-pass the server's persistence capability, if it even has one. which means it won't be preserved until the user acknowledges it. it's a one-shot, no saving it for later ๐Ÿ’€

๐Ÿฆ‹ SEE ALSO ๐Ÿฆ‹

the Desktop Notification Spec lives over at https://specifications.freedesktop.org/notification-spec/ โ€” go read it, iykyk ๐Ÿ“–


๐Ÿ’œ AUTHORS ๐Ÿ’œ

  • Andre Filipe de Assuncao e Brito <decko@noisemakers.org> โ€” Original author ๐Ÿ‘‘
  • Paul van Tilburg <paulvt@debian.org> โ€” Original author ๐Ÿ‘‘
  • Riccardo Setti <giskard@debian.org> โ€” Original author ๐Ÿ‘‘

ok that's the whole thing, you're basically a notification wizard now ๐Ÿงšโ€โ™€๏ธโœจ this page came from libnotify and it's the NOTIFY-SEND(1) manual, fr fr. go forth and notify, bestie ๐Ÿ’–๐ŸŒธ๐ŸŽ€