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

Change location of linux notifications (To all or focused)

I'm using ubuntu 20.04 and I'd like to duplication notifications to all monitors or at least just to the monitor my focus is on. I've tried the method outlined in other answers for similar questions, ...
0
votes
1answer
17 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&...
0
votes
1answer
24 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 ...
0
votes
2answers
35 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'...
1
vote
1answer
70 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//'); ...
0
votes
1answer
45 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 /...
0
votes
1answer
217 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. ...
0
votes
1answer
118 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 ...
0
votes
0answers
410 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 ...
4
votes
1answer
782 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 ...
2
votes
1answer
210 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
149 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 ...
3
votes
2answers
3k 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 -...
2
votes
3answers
2k 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
1
vote
1answer
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/...
3
votes
2answers
680 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?
2
votes
0answers
667 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
724 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
410 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
116 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/...
1
vote
1answer
2k 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 ...
3
votes
1answer
871 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
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 ...
2
votes
1answer
3k 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 ...
2
votes
0answers
99 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
880 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/...
6
votes
1answer
4k 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
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=/...
2
votes
1answer
245 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 ...
22
votes
1answer
8k 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
941 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
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 * ...
5
votes
1answer
5k 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
3answers
11k 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
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 ...