I am trying to send a simple notification with
notify-send "Linux"
And nothing shows up. However
notify-send "Linux" -t 0
shows a dialog box like this
How can I make notify-send to send a normal notification in the top corner?
Ask Ubuntu is a question and answer site for Ubuntu users and developers. It only takes a minute to sign up.
Sign up to join this communityThe notify-send
time out parameter is set with -t
switch. In your case it is -t 0
or 0 seconds which is translated as "forever". As such rather than a normal pop-up bubble in the top right it is displayed as a dialog box.
So for this part of your question the system is performing normally.
The urgency level can be passed as "low", "normal" or "critical" using the -u
switch. In your environment (for reasons yet to be discovered) only messages with urgency level "critical" are appearing:
notify-send --urgency=critical "Critical test"
If you're watching a video the normal urgency messages will not appear. This is known as "Do Not Disturb" mode introduced in Ubuntu 10.04.
I tested this in both FireFox and Chrome in both full screen and non-full screen under Kernel versions 4.4.0-104 and 4.4.10-42.
-t
parameter specifies the amount of time. Setting it to 0 means "forever" so it turns into a dialog box where you have to acknowledge the message. If you changed time to 5 seconds it will appear as a normal message bubble in the top right hand corner.notify-send "Testing" -t 5
doesn't show any notification at all.notify-send --urgency=critical "Critical test"
which should always work.