Questions tagged [notify-send]

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

Filter by
Sorted by
Tagged with
1
vote
0answers
30 views

What are the differences/(dis)advantages of zenity vs notify-send?

There is both zenity and notify-send. (on Fedora/GNOME at least, both seems to be pre-installed.) So considering I want to show notifications, what are the differences between these too ones? Is ...
2
votes
0answers
72 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
242 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
614 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
428 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
43 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
525 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
18 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
223 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
418 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
373 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
263 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
61 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
483 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'...
2
votes
1answer
913 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
65 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
644 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/...
5
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=/...
2
votes
1answer
137 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 ...
17
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
660 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
4k 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
923 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 ...