fyi(1) | General Commands Manual | fyi(1) |
NAME
fyi - send desktop notifications
SYNOPSIS
fyi [OPTION]... TITLE [MESSAGE]
fyi --close=ID
fyi --server-info
fyi --server-capabilities
DESCRIPTION
fyi is a command line utility to send desktop notifications to the user via a notification daemon implementing XDG desktop notifications.
It is similar to the well-known notify-send(1) utility. Indeed, most of the options are identical.
When used without any options, fyi sends the notification and immediately exits, without printing anything on stdout.
Use --print-id to have fyi print the daemon assigned notification ID on stdout, in the format:
To see why the notification was closed, use --print-reason. The reason is printed on stdout, in the format:
fyi can also block until the notification has been closed, using the --wait option. Sending SIGINT to the fyi process will force-close the notification.
fyi will also block if the notification has any actions. When an action is triggered, fyi prints the name of the action on stdout, in the format:
Some notification daemons can send an "activation token". This is typically done when the user clicks the notification, or triggers the default action. The token can be used to focus (activate) a window. To see the token, use --print-token. The token is printed on stdout, in the format:
OPTIONS
-a,--app-name=NAME
-i,--icon=ICON
-u,--urgency=low|normal|critical
-c,--category=CATEGORY
-A,--action=NAME:LABEL
This option can be specified multiple times, to define multiple actions.
Using this option implies --wait.
-H,--hint=TYPE:NAME:VALUE
Another common hint is string:x-canonical-private-synchronous:<name>. Many notification daemons will replace any existing notification with the same name. This is similar to --replaces, except you do not need a notification ID.
fyi recognizes the following types:
- boolean
- byte
- int
- double
- string
-r,--replaces=ID
-t,--expire-time=TIME
--transient
-C,--close=ID
-p,--print-id
-R,--print-reason
- reason=expired
- reason=dismissed
- reason=force-closed
- reason=unknown
Using this option implies --wait.
-T,--print-token
Some notification daemons send an activation token when the notification is dismissed; either when the notification is clicked, or the default action is invoked. Others will send it regardless of which action was invoked. Some will only send it when an action is invoked, while others will send it when the notification is dismissed, regardless of how.
The token can be used to focus (activate, raise) a window. It is not directly useable by fyi, but programs using fyi as a helper to display notifications can use it.
Using this option implies --wait.
-w,--wait
This option is implied when the any of the following options are used:
- -A,--action
- -R,--print-reason
- -T,--print-token
--image-data=FILE
--image-size=WIDTHxHEIGHT
--server-info
--server-capabilities
-v,--version
SEE ALSO
2024-09-05 |