Questions tagged [notify-send]

A program to send desktop notifications.

A program to send desktop notifications.

With notify-send you can sends desktop notifications to the user via a notification daemon from the command line. These notifications can be used to inform the user about an event or display some form of informa‐tion without getting in the user’s way.1

1Source:Ubuntu Manuals

92 questions
141
votes
6 answers

How can I send a custom desktop notification?

I have a custom script and I want to send a desktop notification (the one that appears in the top right corner of the screen) with a custom message. How do I do that?
January
  • 37,208
68
votes
21 answers

Notify-send doesn't work from crontab

I made a script that should notify me when there's a new chapter of manga that I'm reading. I used the command notify-send to do this. The program works when I am trying to run it in terminal. The notification is showing. However, when I placed this…
19
votes
1 answer

How do I add a custom image to notify-send?

In notify-send I know that -i can be used to add a stock image to the notification, but how can I add my own custom image? I have gone into usr/share/icons/gnome/32x32 where notify-send pulls from, but it won't show any image at all. Is it possible…
Lmuller18
  • 193
16
votes
2 answers

How can I log all notify-send actions?

I keep getting very strange notifications which go away before I can read them, they are long, and appear at random times, the most recently one came up was during a kernel upgrade, it had a strange icon, and was long, but I didn't manage to read it…
user364819
16
votes
2 answers

Is there a "don't disturb" option to temporarily hide notifications, like on macbooks?

Does there exist "Don't disturb mode" as is does for OSX device, where you can decided when notification can bother you, or not.. I just installed chrome, and I usually get spammed by group texts and other notification, which can be annoying when I…
15
votes
4 answers

Is it possible to cancel or clear a notification created by using notify-send?

So I wrote a little script that makes sure a certain user plugs in a laptop when he logs on (it disables if he doesn't). The script uses notify-send to tell him to plug it in. If he plugs it in, the script quits. Is it possible to clear the…
evamvid
  • 255
15
votes
1 answer

How to customize the font style in notify-send?

I am trying to change the format of text appearing in pop-up notification while using notify-send command. Here I saw that it can be done using HTML formatting. But that doesn't seem to be working for me. Is there any way to achieve this?
13
votes
2 answers

Alert the user when they unsafely unplug an USB thumb drive

Users repeatedly complain about lost data on USB thumb drives after they unplugged them without unmounting. We run Ubuntu 14.04 LTS on our machines. Auto-mounting is enabled. As I am tired of remembering them to do a safe removal before unplugging,…
RenWal
  • 158
13
votes
2 answers

How do I send desktop notifications using Python 3?

I have a python3.4 script. I would like to send to the desktop a notification. How do I handle this in python? Can I use notify-send? I'm using Ubuntu 14.04. #in my script if something: notify-send 'Here is a notification !'
TotuDoum
  • 163
11
votes
1 answer

How can I get desktop notifications to display on both screens

I have a laptop and a secondary screen that I use for most of my work. When notifications are displayed, they are only on the laptop screen. How can I get it to display on both screens? Ubuntu 13.04
8
votes
4 answers

How can I use the notify-send command in combination with the Calcurse calendar?

I use the calendar and scheduling application calcurse. This is a fine command-line program. For example, with calcurse -a you can display the events for the day. How i can send this info to notify-send, to show a notification on the desktop? $…
Dino
  • 148
8
votes
1 answer

notify-send not working on 14.04, but volume and brightness notifications do

I have browsed around here and googled for over an hour, but are no closer to a solution, so here goes. lets start by killing /usr/lib/x86_64-linux-gnu/notify-osd. I then do notify-send "foo" and it reappears, but nothing shows. Kill it again, but…
8
votes
3 answers

Why do I get GDBus.Error:org.freedesktop.DBus.Error.ServiceUnknown with notify-send?

When attempting to display any notification with notify-send I get: GDBus.Error:org.freedesktop.DBus.Error.ServiceUnknown: The name org.freedesktop.Notifications was not provided by any .service files I also noticed that $HOME/.dbus/ disappeared.…
7
votes
3 answers

can I redirect file as input to notify-send?

I want to use command notify-send and display text from a file as a notification so that I can only edit that file to change command or forward contents from outputs of other programs to notify-send. I tried : notify-send -u critical -t 3000 <…
VedVals
  • 3,651
6
votes
2 answers

How can I show notify-send messages triggered by crontab?

test.sh: /usr/bin/notify-send "test" The following works: bash ~/Documents/test.sh BUT the crontab never shows the notification. Why? */1 * * * * bash ~/Documents/test.sh
membersound
  • 1,460
1
2 3 4 5 6 7