Questions tagged [notify-send]

A program to send desktop notifications.

Filter by
Sorted by
Tagged with
0
votes
0answers
30 views

notify-send not working in dhclient dispatcher script

I am detecting IP assigned by dhclient and trying to show it using notify-send. I have made a script and placed it in /etc/dhcp/dhclient-exit-hooks.d. Content of the script is as below #!/bin/bash ...
1
vote
1answer
116 views

notify-send not working

I am working on Ubuntu 18.04 and trying to use notify-send via terminal, but nothing happens. It gets stuck for some time and that's it. Can someone please suggest a solution? In syslog, it is showing ...
1
vote
0answers
188 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 ...
0
votes
1answer
139 views

Clean up output of a command to pipe to notify-send

Ubuntu 18.04 ExpressVPN has no GUI or icon for the Linux version. So I put together a .desktop files that and then added clickable buttons on my taskbar to trigger them. The .desktop files trigger ...
0
votes
0answers
158 views

notify-send infinite notification

I made a short script to notify myself when my battery is below 25% and above 75%. I'm using notify-send to send notifications and play alert sound as to notify the user of the event. The problem I'm ...
2
votes
0answers
47 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 ...
0
votes
0answers
199 views

Set a systemd battery check service

I've made this script to check battery status, which works fine when called manually #!/bin/bash BATTINFO=`acpi -b` if [[ `echo $BATTINFO | grep Discharging` && `echo $BATTINFO | cut -f 5 -d ...
1
vote
1answer
278 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 ...
0
votes
1answer
372 views

Crontab not running task [duplicate]

I did crontab -e then added */2 * * * * /usr/bin/notify-send "test", which is supposed to send a notification every 2 minutes, but it's not working. The crontab file looks like this. # Edit this ...
1
vote
0answers
36 views

How to disable exit button on Plasma 5 notification?

I want to show notification through notify-send, but without close button. Is it possible? And is it possible to make it appears at a specific place on a screen?
1
vote
1answer
110 views

Check for running proccess constantly

I need to check whenever a process is running and alert if the process dies, is stopped or closes. I have used pgrep and processName and then alert, like this: pgrep processName && notifiy-...
4
votes
1answer
330 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'...
1
vote
0answers
440 views

limits of notify-send in ubuntu 18.04

before 18.04 i used to have the following command that shows the last 10 lines of a file in notification notify-send -u critical "test" -t 7000 $(tail -10 /tmp/Follow-test) in Ubuntu 18.04 it shows ...
3
votes
1answer
368 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 ...
5
votes
1answer
1k 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 ...
1
vote
1answer
720 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 ...
1
vote
0answers
96 views

What are the named Icons in Ubuntu? [duplicate]

I see that I can run: notify-send -u low -i terminal "yo" and notify-send -u low -i error "yo" But I couldn't find any mentions of the icon names "terminal" and "error" in the man page. How can ...
2
votes
1answer
1k 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 ...
2
votes
0answers
150 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 ...
4
votes
2answers
3k 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
1
vote
0answers
532 views

Why don't work notify-send from terminal?

Ubuntu 16.04, notify 0.7.6 I tried notify-send "something", and this doesn't work. But notify-send -u critical "test" worked. Why this happened? I install notify-daemon, but this doesn't help me? ...
0
votes
1answer
91 views

What is needed to use notify-send in a snap? [duplicate]

I use notify-send in a python program, and I'm trying to make a snap of that program. The snap builds but I get a No such file or directory 'notify-send' What package do I need to install to make ...
2
votes
0answers
56 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 ...
1
vote
0answers
33 views

notify-send not working from cron [duplicate]

* * * * * export DISPLAY=:0.0 && usr/bin/notify-send "Hello world!" I added the above command to the crontab, notify-send is working from terminal but not from the cron. Also checked the logs,...
2
votes
1answer
871 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 ...
2
votes
1answer
172 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 ...
0
votes
1answer
72 views

Send all notifyOSD messages to another ubuntu on the network

I want an ubuntu to send a copy of all its notifyOSD messages to another ubuntu on the network. Preferably with a little "addition" to the title that specifies the host name of the ubuntu that ...
2
votes
0answers
351 views

Notify send on headphones plugged

I tried to simply do a notify-send "PLUGGED" on plug event following the answer for this. But it didn't work. I created a script, placed it in /etc/acpi which has: notify-send "HeadPhones Connected" ...
3
votes
1answer
784 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 ...
0
votes
1answer
237 views

sudo -u username notify-send stuck

here is my code: roroco@roroco ~/Dropbox/rbs/ro_wemedia $ time sudo -u root notify-send 'prpr' real 0m0.033s user 0m0.008s sys 0m0.012s roroco@roroco ~/Dropbox/rbs/ro_wemedia $ time sudo -u ...
1
vote
1answer
177 views

Automatically notify when IP changes?

Is there a way I can send a notification to myself when the local DHCP IP changes? Can I use libnotify? I use Xubuntu. Below is a screenshot that shows what the notification looks like, can I design ...
2
votes
1answer
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 "...
2
votes
1answer
500 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 ...
1
vote
1answer
604 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.
2
votes
2answers
1k 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 ...
1
vote
1answer
4k 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 ...
1
vote
0answers
423 views

notify-send not showing popup message

I have a script which executes on certain conditions, whenever I manually execute the script, the popup appears, however if i try to aumotate the script(i.e. run the script right after system is ...
2
votes
1answer
694 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 ...
0
votes
2answers
2k views

Setting DISPLAY=:0 has no effect to notify-send via ssh

I have ssh access to my flatmate's computer (Ubuntu 14.04). I want to send her a message via ssh, thus I use this command export DISPLAY=:0 && notify-send "sample message" The command exits ...
7
votes
1answer
3k 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 ...
15
votes
2answers
1k 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 ...
2
votes
3answers
559 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. ...
3
votes
1answer
4k 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?
6
votes
3answers
4k 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-...
4
votes
1answer
587 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 ...
1
vote
1answer
648 views

Script, using notify-send, refuses when run from Startup Applications

I want to run a python script that produces a desktop notification on start-up in Ubuntu 12.04. How can I do this? I tried some common ways. On start-up in the "ps aux" command my program is listed, ...
1
vote
1answer
270 views

New mail notification changed to a blue string in the upper left corner

After recent update my new mail notification is changed to a very simple blue line in the upper left corner of the screen. Any ideas how can I change it back to a normal Unity notification? I'm on ...
0
votes
1answer
521 views

notify-send not working, seems many bugs [duplicate]

i'm trying to create notification script but it doesnt work. When i click for example "control+alt+m" it should pop notification which it does, but its like default and i cant change anything. I ...
8
votes
4answers
4k 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 ...
13
votes
2answers
1k 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 ...