Skip to main content
The 2024 Developer Survey results are live! See the results

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
0 answers
14 views

notify-send raising Thunderbird - with desktop-entry hint or -a app-name does not raise popup

Previously asked at https://forums.fedoraforum.org/showthread.php?332611-notify-send-with-desktop-entry-hint-or-a-app-name-does-not-raise-popup with no responses. Fedora 40, Gnome 46. How should I ...
Neek's user avatar
  • 161
0 votes
1 answer
39 views

Execute a task after waking up from Suspend/sleep

Info Fedora 40, Gnome 46, Wayland systemctl --version systemd 255 (255.6-1.fc40) notify-send --version notify-send 0.8.3 Task I want to execute the following task after waking up from Suspend/sleep, ...
Porcupine's user avatar
  • 2,066
0 votes
0 answers
602 views

How to get user desktop notifications from a sudo-run systemd service on Wayland?

I'm running KDE Plasma on Nobara (Wayland), a Fedora-based distro. I'm brand new to Wayland and Nobara/Fedora, and have very limited experience with systemd. I have a bash script that sends a desktop ...
EldestBizarre's user avatar
1 vote
1 answer
286 views

notify-send: send notification from script running as root [duplicate]

In my desktop environment, I am using dunst as notification daemon, and I can send notification as: notify-send "some message" I have a terminal window open, where I am logged in as root, ...
Martin Vegter's user avatar
2 votes
2 answers
1k views

How can I change the text colour in a Plasma-desktop notification?

I am using Plasma-desktop notifications for all kinds of things, often from scripts using kdialog or notify-send. My Plasma desktop uses a dark background with a light foreground (text). Until a few ...
AstroFloyd's user avatar
1 vote
1 answer
187 views

sending discord notification if changes in bash output (will be put in a cron)

I need to recieve a discord notification if this command does not have the string "No differences discovered" in the last 2 lines of the output. Ive been at it for hours I dont get it! and ...
Simm Simmons's user avatar
2 votes
1 answer
389 views

notify-send with stderr in notification body if there is stderr

Suppose I have a command like: foo() { echo a echo b >&2 echo c echo d >&2 } I use the following command to process stdout in terminal but send error via notify-send foo ...
Ahmad Ismail's user avatar
  • 2,738
0 votes
1 answer
248 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 ...
Marslander's user avatar
5 votes
2 answers
2k 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-...
AKMalkadi's user avatar
  • 361
5 votes
1 answer
6k 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 ...
Bassie's user avatar
  • 113
0 votes
0 answers
355 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 ...
h___m's user avatar
  • 1
0 votes
1 answer
291 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 ...
kamil_debski's user avatar
0 votes
0 answers
395 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 ...
mcp's user avatar
  • 725
0 votes
1 answer
582 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&...
Rahul Kumar's user avatar
0 votes
1 answer
191 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 ...
Nathan's user avatar
  • 3
0 votes
2 answers
585 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'...
Umlin's user avatar
  • 658
1 vote
1 answer
325 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//'); ...
Akshat Vats's user avatar
0 votes
1 answer
177 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 /...
Evan's user avatar
  • 101
0 votes
1 answer
941 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. ...
LRDPRDX's user avatar
  • 133
0 votes
1 answer
270 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 ...
EldestBizarre's user avatar
1 vote
0 answers
1k 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 ...
sleeping-newton's user avatar
7 votes
2 answers
6k 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 ...
Waldir Leoncio's user avatar
2 votes
1 answer
1k 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 ...
rugk's user avatar
  • 3,216
2 votes
0 answers
273 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 ...
TMS's user avatar
  • 121
4 votes
2 answers
7k 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 -...
pomsky's user avatar
  • 1,128
3 votes
3 answers
4k 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
Neo Mosaid's user avatar
1 vote
1 answer
2k 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/...
munHunger's user avatar
  • 191
3 votes
2 answers
1k 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?
kurokirasama's user avatar
2 votes
0 answers
856 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 ...
dvj's user avatar
  • 53
2 votes
1 answer
1k 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 ...
AlmuHS's user avatar
  • 169
2 votes
3 answers
649 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 ...
AlmuHS's user avatar
  • 169
1 vote
0 answers
157 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/...
Kinop's user avatar
  • 11
2 votes
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 ...
avistein's 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'...
Daniel's user avatar
  • 307
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 ...
TheoRet's 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 ...
Jules's user avatar
  • 2,104
2 votes
0 answers
117 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/...
Bib-lost's user avatar
  • 143
2 votes
1 answer
1k 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/...
Danny's user avatar
  • 175
8 votes
1 answer
7k 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 ...
林果皞's user avatar
  • 5,206
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=/...
Anmol Singh Jaggi's user avatar
2 votes
1 answer
329 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 ...
Pandya's user avatar
  • 24.9k
33 votes
1 answer
15k 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 ...
Ivan's user avatar
  • 18k
5 votes
1 answer
2k 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 ...
kdani's user avatar
  • 191
4 votes
1 answer
3k 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 * * ...
catch23's user avatar
  • 221
6 votes
1 answer
7k 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:...
mtk's user avatar
  • 27.8k
13 votes
3 answers
13k 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 ...
Dmitry Frank's user avatar
  • 2,758
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 ...
Dennis's user avatar
  • 273