fyi: the -t flag for notify-send is how long to display the notification in milliseconds. -t 0 is supposed to display until the user clicks it, however long that takes. however, with libnotify 0.8.4, it seems to be taking the zero literally and not displaying the notification pop-up at all. bug report is here. (it says kde, but that’s not correct; i’m on xfce and experiencing the same problem.)
Strange - maybe I am reading this wrong - the -t is expiration -w is for keeping on screen until user respond.
$ notify-send --help
Usage:
notify-send [OPTION…] <SUMMARY> [BODY] - create a notification
Help Options:
-?, --help Show help options
Application Options:
-u, --urgency=LEVEL Specifies the urgency level (low, normal, critical).
-t, --expire-time=TIME Specifies the timeout in milliseconds at which to expire the notification.
-a, --app-name=APP_NAME Specifies the app name for the notification
-i, --icon=ICON Specifies an icon filename or stock icon to display.
-c, --category=TYPE[,TYPE...] Specifies the notification category.
-e, --transient Create a transient notification
-h, --hint=TYPE:NAME:VALUE Specifies basic extra data to pass. Valid types are boolean, int, double, string, byte and variant.
-p, --print-id Print the notification ID.
-r, --replace-id=REPLACE_ID The ID of the notification to replace.
-w, --wait Wait for the notification to be closed before exiting.
-A, --action=[NAME=]Text... Specifies the actions to display to the user. Implies --wait to wait for user input. May be set multiple times. The name of the action is output to stdout. If NAME is not specified, the numerical index of the option is used (starting with 0).
-v, --version Version of the package.
Actually… It is -u critical. And it works. As the manual says.
doesn’t look like the gnome devs agree with you on that.