Stack Exchange Network

Stack Exchange network consists of 175 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.

Visit Stack Exchange
The results are in! See what nearly 90,000 developers picked as their most loved, dreaded, and desired coding languages and more in the 2019 Developer Survey.

Questions tagged [notify-send]

For the questions about the notify-send command used to send desktop notifications

2
votes
0answers
40 views

how to send notifications to clients that connect to the same tmux session?

I have a python script running on a server (let's called box A) inside a tmux session. I ssh into box A from Box B and connect to this tmux session. My question is how do I send some kinds of ...
1
vote
0answers
126 views

notify-send get stuck in i3-gaps [closed]

I am using arch linux with i3-gaps, when I run notify-send, it should've shown notification immediately but just gets stuck in terminal. It works with $ dbus-launch notify-send "Hello"
3
votes
2answers
350 views

Send a notification or alert when bash asks for input from user

I am using Ubuntu 16.04 LTS. There is an alias in my .bashrc which uses notify-send: alias alert='notify-send --urgency=low -i "$([ $? = 0 ] && echo terminal || echo error)" "$(history|tail -...
0
votes
2answers
255 views

How to make dunst show repeated notifications of the same program as one single notification

here are my notifications and I would like each notification to replace the one before it by the way I am using dunst for my notifications
0
votes
0answers
35 views

How add desktop notification to lsyncd

I want to add desktop alerts if file synchronization occurs in lsyncd. I tried used this code in my config file but nothing happens: bash = { onCreate = "notify-send onCreate", onModify = "notify-...
0
votes
1answer
418 views

notify-send with crontab in i3

I am trying to create a cron job that sends a notification via notify-send. I am currently trying this: */2 * * * * DISPLAY=:0 DBUS_SESSION_BUS_ADDRESS=unix:path=/run/user/$(id -u)/bus /usr/bin/...
0
votes
0answers
15 views

mpv lua notification doesn't work on another machine

in this question I was given a lua script to add notifications (trough notify-send) to mpv. The script works as expected in mi laptop. Now I installed Ubuntu 18.04 on another laptop, the same steps I ...
3
votes
2answers
149 views

Add notification to mpv through notify.send?

Is it possible to generate a brief notification every time mpv starts a playback? Maybe through notify-send?
1
vote
0answers
367 views

notify-osd not working after i3wm restart

Notifications won't work after I restart i3wm (with super + shift + r). My ubuntu version is 16.04 and I installed the patched notify-osd which allows customizable notifications. From syslog I ...
2
votes
1answer
324 views

How to allow running notify-send as another user with pkexec?

As continuation of this question (How can I send a notification with polkit 0.106?), I've discovered that I have to execute notify-send as the user who I want to send notification. But, with my ...
2
votes
3answers
247 views

How can I send a notification with polkit 0.106?

I am developing a application to don't forget the pendrive. This app must lock the shutdown if a pendrive is connected to the machine. As this form, if the user wants to shutdown the system while a ...
1
vote
0answers
57 views

Udev rule doesn't work, why? [duplicate]

My udev rule is not working. I've added information about the udev rule: udev rule: $ cat /lib/udev/rules.d/95-monitor.rules KERNEL=="card0", SUBSYSTEM=="drm", RUN+="/bin/bash /home/koko/Desktop/...
0
votes
1answer
1k views

systemd service not executing the python script

I was making a battery notifier script for my raspberry pi3. The script is executing when I do /usr/bin/python /home/pi/Documents/shutdown.py and showing the popup notifications.  However the ...
2
votes
1answer
402 views

Prevent “notify-send” from stacking

I have wrote this script, when the increase volume button is pressed to display desktop notifications with "notify-send". when the button is pressed: notify-send "Current volume 'pamixer --get-volume'...
3
votes
1answer
803 views

libotify / notify-send: body text is not printed if it contains '<' or '>'

I am on Linux Mint 18.1, MATE. I am using the notify-send command to visualize the name of keys (such as <enter>), while sending them to the current window via a python script.For about two ...
2
votes
1answer
2k views

How can I execute notify-send from root? [duplicate]

I'm working on a bash script which requires root privileges, but which I'd like to give the ability to notify a non-root user of certain alerts via notify-send in GNOME (or any other desktop shell ...
1
vote
0answers
61 views

udev action to call notify-send not working [duplicate]

I have been trying to make a udev rule for a while, but without succes. For testing purposes, I have a file /etc/udev/rules.d/80-power.rules which contains ACTION=="add", RUN+="/opt/eigen_scripts/...
2
votes
1answer
606 views

libnotify with bash and grep

I am trying to get libnotify (notify-send) to pop-up a notification once a certain character is found while I tail a log file. Without grep it works fine ... Here is my code: tail -f /var/log/...
4
votes
1answer
2k views

notify-send - How to display full message when message is longer than one line?

Let's say I use notify-send with this long messages: notify-send 'd: title, up/down: zoom, w: win_to_img, </>: rotate, *: orig, Enter/0: blah blah blah' But it truncates the message, showing ...
2
votes
2answers
1k views

notify-send from root cron

On my system, notify-send requires 3 enviorment variables to run, which are kept in a file which is generated automatically on logon: /home/anmol/.env_vars: DBUS_SESSION_BUS_ADDRESS=unix:abstract=/...
3
votes
1answer
129 views

Why can't I use `kill $!` with parameter expansion in Bash, when the most recent process is “notify-send”?

According to Bash: Special Parameters: ($!) Expands to the process ID of the job most recently placed into the background, whether executed as an asynchronous command or using the bg builtin I ...
15
votes
1answer
4k views

What do a notify-send notification category, hint and version parameters mean?

The notify-send command manual says Usage: notify-send [OPTION...] <SUMMARY> [BODY] - create a notification Help Options: -?, --help Show help options Application ...
5
votes
0answers
618 views

Is there any way to syncronize notifications between a Linux desktop and iOS?

I use notify-send and dunst for my notification system on my desktop. After a research, I found out that there are a few commercial solutions for sending push notifications to iOS devices, and I even ...
3
votes
1answer
1k views

Notify-send doesn't work at Cinnamon

I am using Linux Mint 17. I want to be informed every 50 min, at every hour for small break. Here is cron job: nazar@lelyak-desktop ~ $ crontab -l DISPLAY=:0.0 XAUTHORITY=/home/matrix/.Xauthority ...
4
votes
1answer
3k views

understand the options of 'notify-send'

I have gone through the man page for notify-send and I am not able to understand following two options -u, --urgency=LEVEL Specifies the urgency level (low, normal, critical). -h, --hint=TYPE:NAME:...
13
votes
2answers
9k views

Call notify-send from an udev rule

I use Linux Mint 13 MATE, and I'm trying to set up notifications when I plug/unplug devices. First of all, I found udev-notify package, but unfortunately it almost doesn't work for me: it works for ...
2
votes
1answer
900 views

why isn't xargs parsing my input correctly?

I've been trying to write a shell script that will interface with cmus and then notify me of the track info using notify-send. Right now it is not working, mainly because xargs does not seem to pass 2 ...