Questions tagged [notify-send]

A program to send desktop notifications.

Filter by
Sorted by
Tagged with
137 votes
5 answers
82k views

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's user avatar
  • 35.9k
67 votes
21 answers
43k views

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 ...
user158335's user avatar
19 votes
1 answer
15k views

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, ...
Lmuller18's user avatar
  • 193
16 votes
2 answers
2k views

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 ...
Lamda's user avatar
  • 283
14 votes
1 answer
8k views

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 ...
user avatar
14 votes
1 answer
12k views

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 ...
Anonymous Platypus's user avatar
13 votes
2 answers
22k views

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-...
TotuDoum's user avatar
  • 163
13 votes
4 answers
9k views

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 ...
evamvid's user avatar
  • 235
13 votes
2 answers
2k views

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 ...
RenWal's user avatar
  • 158
11 votes
1 answer
9k views

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
Niel de Wet's user avatar
8 votes
1 answer
6k views

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 ...
user284445's user avatar
8 votes
4 answers
8k views

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-...
Dino's user avatar
  • 148
6 votes
3 answers
16k views

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. ...
VedVals's user avatar
  • 3,471
6 votes
1 answer
7k views

How to use notify-send with C++?

I'm a C++ beginner coder. I'm trying to understand how to send notifications using libnotify-bin library. I've read some guys saying don't to use system calls. Any clue?
aledruetta's user avatar
6 votes
2 answers
5k views

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

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's user avatar
  • 1,410
5 votes
1 answer
2k views

Display terminal command result in Desktop notification

I need to display the result of a terminal command in notification. Notifications can be triggered by running: notify-send "Notification message" The command I have is: sudo /opt/lampp/xampp ...
M. Zeeshan's user avatar
5 votes
1 answer
938 views

Is it possible to permanently show notifications on my screen?

With the command notify-send, it's possible to show a notification on screen for a small amount of time. But I'd like to have a specific notification on my screen for an undetermined amount of time. I'...
Rafael Muynarsk's user avatar
5 votes
1 answer
2k views

Execute a script every time a particular application makes a notification

I searched quiet a bit but all the articles and answers only tell you how to create your own notification. What I want to do is to keep track of all the notifications made by all the applications, and ...
piyushrungta25's user avatar
4 votes
3 answers
4k views

How to force a new Notification in notify-osd to show up without waiting for the earlier one to exit?

I have made a script(and a .desktop shortcut leading to this script) for starting and stoping xampp... It checks the status of xampp and accordingly either starts or stops xampp. Now i have assigned ...
Nirmik's user avatar
  • 7,858
4 votes
5 answers
5k views

Problem with `notify-send`

I have been working in a script to change audio output when you (dis)connect am HDMI screen/TV. Basically it uses UDEV to check any change in the connection and acts accordingly. Everything works ...
Salem's user avatar
  • 19.7k
3 votes
1 answer
1k views

How do I make notifications that don't get saved?

Some scripts I wrote show notifications like "Volume up" or "Reset brightness" for example, using notify-send. However, the notifications get saved in the notification menu on Ubuntu 18.04, which I ...
wjandrea's user avatar
  • 14.2k
3 votes
1 answer
856 views

notify-send giving syntax error with my custom Python file in 22.04

When I run a simple .py file with code notify-send " ha ha " I get notifications in 22.04 without any issues. Then I tried the following code in another .py file. And it is giving a syntax ...
user227495's user avatar
  • 4,069
3 votes
1 answer
1k views

Send notification from systemd daemon

I know that I can send a notification to the user that will appear in the top-right corner of the screen an disappear on its own, like this: notify-send "Device detected correctly" However, this ...
Kalle Elmér's user avatar
  • 8,278
3 votes
1 answer
940 views

Showing notification in Ubuntu based installs

I am (trying) to write a simple python script for ubuntu based OS. As part of script, a notification is also shown. Now, I have gone through a number of posts over here but with each one I have an ...
Paritosh's user avatar
  • 133
3 votes
1 answer
1k views

notify-send not showing notification when playing video

I have a script (which is called on keyboard button press) that instantly shows a notification with notify-send and then does some other things. It works perfectly, except in the following cases it ...
jonasstaehle's user avatar
3 votes
1 answer
15k views

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 ...
John Smith's user avatar
3 votes
2 answers
2k views

notify-send only works with sudo

Problem sudo notify-send Test "Hello World" Displays a notification as expected. notify-send Test "Hello World" Does not display a notification. Further information Ubuntu version 16.04. The ...
aco's user avatar
  • 51
3 votes
1 answer
194 views

What application is sending notification?

I've got Spotify for Linux installed and for some reason I was getting duplicated notifications for song changes (different text as well). Now one of them is very bad, as it just shows the song title. ...
Hosh Sadiq's user avatar
3 votes
0 answers
348 views

How to make 'notify-send' work in a script that is ran by NetworkManager dispatcher?

Code: #!/bin/bash sleep 2 DBUS_SESSION_BUS_ADDRESS=$DBUS_SESSION XDG_RUNTIME_DIR=/run/user/$(id -u) DISPLAY=:0.0 notify-send "Connecting..." Also tried: #!/usr/bin/env bash sleep 2 ...
John Dale's user avatar
3 votes
1 answer
437 views

Command with notify-send and rhythmbox-client works, but when I assign a keyboard shortcut for it rhythmbox-client won't start

I am trying to get the following shortcut to work: notify-send -i rhythmbox "RhythmBox Is Playing" "$(rhythmbox-client --print-playing)" It works fine If I run it from the command line, but when I ...
Chud37's user avatar
  • 201
3 votes
1 answer
879 views

What is the command to kill/close notifications? [duplicate]

By default, I have to wait for a few seconds for the notifications to fade off. I'd like to know the command to kill them immediately, so I can bind it to a shortcut key. (Super+N seems good right ...
Vu TrongNghia's user avatar
3 votes
1 answer
2k views

Show notify-send content in Gnome's lockscreen

I'm searching for a way to show the content of a notify-send message in the lockscreen of Gnome 3.20. Normally this is configured under settings > notifications, but "notify-send" isn't mentioned ...
DMT's user avatar
  • 824
2 votes
1 answer
2k views

crontab + notify-send + Ubuntu 16.04 [duplicate]

In my Ubuntu 16.04 , 64 bit OS, I tried the following * * * * * export DISPLAY=:0.0 && notify-send Hey "How are you" And * * * * * export DISPLAY=:0.0 && /usr/bin/notify-send Hey "...
cosmicraga's user avatar
2 votes
1 answer
305 views

"notify-send" not running with "rclone" ( when used in a startup script )

I'm trying to run the following script at startup. I am able to see the notification only when I execute the script from the terminal, or when I run it as a program. So the issue is basically when run ...
Anima94's user avatar
  • 23
2 votes
1 answer
1k views

notify-send does not work with root on Ubuntu 14.04

I have a small python script that I start it using a shell script stored in "/etc/X11/Xsession.d" The code is very simple it show a notification message import os import time while True: os....
Ubaidah's user avatar
  • 121
2 votes
1 answer
2k views

notify-send shows a dialog box instead of notification?

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 ...
Chillar Anand's user avatar
2 votes
1 answer
1k views

How to make Ubuntu to show a notification when there is a btrfs checksum failure?

Like aa-notify, which shows a notification on my desktop when AppArmor denies something.
Artyom's user avatar
  • 1,723
2 votes
2 answers
597 views

Bash script not working properly when run automatically

I have a script that sets my proxy automatically depending upon the connection and so its placed in /etc/network/if-up.d/ folder. I set the proxy using gsettings tool and then I want to show a ...
Vivek Pradhan's user avatar
2 votes
0 answers
924 views

Customise notification popups [duplicate]

Some of my applications show notification messages in this style: Even when I'm running Ubuntu Gnome (as opposed to i3wm), a few apps show notifications in this style instead of going to Gnome's ...
kwsp's user avatar
  • 2,079
2 votes
0 answers
67 views

Pop up bubble messages for boot related issues

I was looking at one of my apps today and wondered if it actually worked to get today's sunrise and sunset times. Conky displays them as 8:46am and 4:36pm respectively but they could be yesterday's ...
WinEunuuchs2Unix's user avatar
2 votes
0 answers
184 views

Who is sending to notify-send?

After reinstalling some drivers, I am receiving a lot of annoying empty messages to my notify-send every 30 sec - 5 min. # dbus-monitor "interface='org.freedesktop.Notifications'" outputs method ...
vladkras's user avatar
  • 139
2 votes
0 answers
57 views

View full text of long notification bubble [duplicate]

I use npm tool of laravel called mix, to transform JS ES6 to ES5 When there is error during transformation the npm tool popups system message (Like when I connect to Wifi etc..) Now the message is ...
Nati V's user avatar
  • 131
2 votes
1 answer
1k views

Ubuntu 16.04 - udev rules and notify-send

I am currently working on a mini project for which I need to set up a udev rule that sends a notification to the desktop when an external storage drive is plugged into the machine. This notification ...
Dennis.Z's user avatar
2 votes
3 answers
823 views

'persistent' notification on ubuntu touch

On ubuntu touch, one can do a 'temporary' notification via 'notify-send'. When I do that it will display a notification for 5 seconds. After that it is gone, and any trace it was ever there with it. ...
luctius's user avatar
  • 63
2 votes
0 answers
211 views

Mutt Notify on Finish Sending

I'm looking for a way in .muttrc to tell it to invoke notify-send when it's done sending an email. I use Mutt inside a Guake window. So when I hit y to send I immediately hit F12 to close the terminal ...
jfreak53's user avatar
  • 1,022
2 votes
1 answer
477 views

I added "notify-send hi user" to startup command but it is not working. How can i make it work?

If I put "notify-send hi user" in terminal it shows notification. But when the same command is put into startup applications it does not work. I want to use this in my qt application
Rohan's user avatar
  • 21
1 vote
1 answer
2k views

Alternative to notify-send

I have to change from notify-send because there is a bug when for example youtube is fullscreen on one screen causes my other screen not to display the notify-send popup. Are there any alternatives ...
Karl Morrison's user avatar
1 vote
1 answer
7k views

How to monitor syslog and get alerted when there is a certain entry?

There is a certain error which is always the same and I am getting in syslog, however I am not really sure what the error is being caused by so I would like to get alerted immediately whenever it ...
user avatar
1 vote
1 answer
215 views

Unable to run notify-send from cronjob

In my Kubuntu 22.04, a script run by my crontab uses notify-send. However, it doesn't work: there is no pop-up appearing. If I redirect the output (stderr in particular) of the script to a file, this ...
BowPark's user avatar
  • 919
1 vote
2 answers
196 views

I can't keep a bash script alive

I found and slightly modify the following script, that monitor the notify-send notifications and dump them in a file. #!/bin/bash logfile=$1 dbus-monitor "interface='org.freedesktop....
kurokirasama's user avatar