Last call to make your voice heard! Our 2022 Developer Survey closes in less than a week. Take survey.

Questions tagged [notify-send]

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

Filter by
Sorted by
Tagged with
0 votes
1 answer
18 views

How do I notify-send a long command?

I want to use notify-send to show a notification every n minutes to tell me the vpn status. The command would be running in a popup terminal I have already set up, hidden from view until I need to ...
user avatar
1 vote
1 answer
443 views

What is the notify-send alternative command in Pop! OS

I use notify-send in Manjaro Linux to send notifications, as follows: notify-send [OPTIONS] [Message Summary] [Message Body] However, I moved to Pop! OS and I found that command not found: notify-...
user avatar
  • 143
0 votes
1 answer
330 views

How to customise the appearance of notify-send?

I am running linux mint and use the notify-send command for various purposes, and of course also receive notifications from regular applications e.g. discord or MS Teams When using Cinnamon DE, they ...
user avatar
  • 53
0 votes
0 answers
73 views

Notify-send to login screen in Debian 11

I used this method to send a message which is triggered by udev to the login screen. Which was working on Debian 10 with Gnome. On Debian 11 this is not working anymore. The user Debian-gdm which owns ...
user avatar
  • 1
0 votes
1 answer
58 views

Elegant way for notification when power button pressed

I want to display a notification for user via notify-send when power button is pressed. Power button has a special script attached which allows to shutdown only when specified amount of time has ...
user avatar
0 votes
0 answers
175 views

notify-send from fcrontab not displaying notification

Referenced these links with no success. Most of them seem to be ubuntu, gnome, and cron syntax specific. https://askubuntu.com/questions/298608/notify-send-doesnt-work-from-crontab/346580#346580 ...
user avatar
0 votes
1 answer
104 views

notify-send to display desktop notification from script running as different user

I have the following script: #!/bin/sh notificationMessage="Your session is going to expire soon" if [ $# == 2 ]; then notificationMessage="Your session is going to expire in $2 hour&...
user avatar
0 votes
1 answer
53 views

Problem with a spacer

I'm trying to send a notification through a notify-send notify-send 'System' 'Dist files is already' $(du -h /var/cache/distfiles/ | tr -d '/var/cache/distfiles/') But the spacer that I need cannot ...
user avatar
  • 3
0 votes
2 answers
195 views

How to write notifications to a file?

I've been trying to automate git pulls with a Bash script. To make sure I don't miss the execution results of the script, and yo log these results somewhere for possible reviews if things go wrong, I'...
user avatar
  • 658
1 vote
1 answer
130 views

Why am I having these issues in sxhkd?

First issue: So, in my sxhkd config, I have these lines: super + i; b export b=$(acpi); notify-send -t 2000 $b super + i; r export r=$(free -h | awk '{print $6}' | sed 's/available//'); ...
user avatar
0 votes
1 answer
76 views

Bind smartd to user session

I want to see smartd notifications in DE (Gnome3). So I've configured smartd to execute custom script that uses notify-send to notify all logged users: smartd.conf: /dev/sda -m root -M test -M exec /...
user avatar
  • 101
0 votes
1 answer
473 views

Desktop notifications sent by i3blocks don't show up if some window in full-screen mode

I am using i3 window manager on Ubuntu with i3blocks to display some important info in i3bar. I need a desktop notification when something requires my attention (for example, battery level) as well. ...
user avatar
  • 123
0 votes
1 answer
172 views

Use 2>&1 to direct stdout/stderr for a single command only among many in a BASH script

My first post, please be kind :) I'm writing my first ever BASH script, and using systemd to invoke it on a timer (my first systemd units too!). The script runs backups daily, and uses notify-send to ...
user avatar
  • 23
1 vote
0 answers
856 views

notify-send not working in i3wm but is working in gmone3

I've been experimenting with i3 on fedora 30 (alongside the default gnome3) and I've run into a problem. I can get notify-send to work in gnome but when I log in to i3 it doesn't do anything. I've ...
user avatar
6 votes
1 answer
2k views

Setup notify-send click action

Given some simple notify-send command inside a bash script such as notify-send "test" How can I make a determinate window gain focus when the user clicks that notification? I thought playing around ...
user avatar
2 votes
1 answer
558 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 ...
user avatar
  • 2,136
2 votes
0 answers
173 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 ...
user avatar
  • 121
3 votes
2 answers
5k 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 -...
user avatar
  • 968
2 votes
3 answers
3k 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
user avatar
1 vote
1 answer
1k 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/...
user avatar
  • 151
3 votes
2 answers
893 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?
user avatar
2 votes
0 answers
753 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 ...
user avatar
  • 53
2 votes
1 answer
903 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 ...
user avatar
  • 169
2 votes
3 answers
504 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 ...
user avatar
  • 169
1 vote
0 answers
151 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/...
user avatar
  • 11
1 vote
1 answer
3k 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 ...
user avatar
4 votes
2 answers
1k 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'...
user avatar
  • 177
3 votes
1 answer
2k 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 ...
user avatar
  • 33
2 votes
1 answer
4k 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 ...
user avatar
  • 1,934
2 votes
0 answers
109 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/...
user avatar
  • 133
2 votes
1 answer
991 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/...
user avatar
  • 147
7 votes
1 answer
5k 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 ...
user avatar
  • 4,468
2 votes
2 answers
2k 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=/...
user avatar
2 votes
1 answer
302 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 ...
user avatar
  • 21.6k
27 votes
1 answer
10k 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 ...
user avatar
  • 16.2k
5 votes
1 answer
1k 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 ...
user avatar
  • 191
3 votes
1 answer
2k 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@desktop ~ $ crontab -l DISPLAY=:0.0 XAUTHORITY=/home/matrix/.Xauthority 00 13 * * ...
user avatar
  • 211
5 votes
1 answer
6k 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:...
user avatar
  • 24.2k
13 votes
3 answers
12k 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 ...
user avatar
  • 2,548
2 votes
1 answer
1k 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 ...
user avatar
  • 273