10
votes
Accepted
How to customise the appearance of notify-send?
Systems that do not use a desktop environment usually require installing a separate notification daemon to handle notifications. It appears that you already have the dunst notification daemon ...
7
votes
Setup notify-send click action
Answer above is now wrong as notify-send gained the necessary bits in this merge request.
# Show a button with text action1, notification with summary text "test"
# Sender gets a "Focus ...
6
votes
What is the notify-send alternative command in Pop! OS
Actually, notify-send works fine in Pop! OS but just is not installed by default. There is no need for an alternative command. We just need to install libnotify-bin.
I was able to install and use ...
5
votes
notify-send with crontab in i3
I run i3 on Ubuntu 18.04. This is how I solve it:
* * * * * XDG_RUNTIME_DIR=/run/user/$(id -u) notify-send Hey "this is dog!"
3
votes
Accepted
Elegant way for notification when power button pressed
Inside your script write a file on hdd ("touch alreadyPressed"). Each other call should check the existence of this file and leave the script. When the script notified the user delete the ...
3
votes
Accepted
notify-send with stderr in notification body if there is stderr
With your try with "$(cat)" you're almost there, but you need this cat to read from ifne, not along ifne.
In case of ifne notify-send "Error" "$(cat)", cat reads from the ...
3
votes
What is the notify-send alternative command in Pop! OS
As previously mentioned, you could install libnotify-bin and use notify-send. However, if you're looking for an out of the box solution to send notifications, you can use d-bus:
gdbus call --session --...
3
votes
Setup notify-send click action
It seems notify-send can't do this. This Arch Linux thread provides more details as answer:
https://bbs.archlinux.org/viewtopic.php?id=172965
taken from the link above:
No, notify-send doesn't ...
3
votes
How to make dunst show repeated notifications of the same program as one single notification
As noted in this github comment: dunst now supports stack-tag feature. You simply need to assign custom tag to your notification like so:
notify-send --hint=string:x-dunst-stack-tag:test SUMMARY BODY
...
3
votes
Accepted
How to make dunst show repeated notifications of the same program as one single notification
You should use dunstify instead of notify-send, because first one allows you to use notification ID and replace older notifications with newer ones. Here is link to info about dunstify, and link to ...
2
votes
Accepted
Add notification to mpv through notify.send?
mpv can run lua user scripts, some of which are listed here. One of these, notify will generate a sophisticated notify-send. It has a few dependencies, and I wasn't able to get it to work in my setup, ...
2
votes
Call notify-send from an udev rule
sudo -u X_user DISPLAY=:0 DBUS_SESSION_BUS_ADDRESS=unix:path=/run/user/X_userid/bus notify-send 'Hello world!'
Where X_user is the user you want to run as, and X_userid is group ID of the user
...
2
votes
Accepted
What are the differences/(dis)advantages of zenity vs notify-send?
Functionality comparison
zenity --notification is equivalent to notify-send for the most simple cases.
For example, these two commands are equivalent:
$ zenity --notification --text=Title
$ notify-...
2
votes
Accepted
Send a notification or alert when bash asks for input from user
Monitoring the dialogue of a program and send an alert
You can monitor the activity of
a fifo or
an xterm log file, now with an interactive mode
and let it start a zenity info message, when there is ...
2
votes
Accepted
Problem with a spacer
The command tr doesn't work as you intended:
-d, --delete
delete characters in SET1, do not translate
Meaning that tr removes single characters from the SET1, for example:
$ echo foobar | tr -d fb
...
2
votes
Accepted
How to programmatically kill a notify-send window?
Your work-around sounds like the perfect solution. As is often the case,
archlinux
provides more information on how notifications work; they are now usually
implemented on the desktop by dbus.
dbus is ...
1
vote
notify-send won't show up on generic X sessions, but works in a KDE session
Thank you meuh, that in a comment showed me the solution to my problem.
I solved installing a notification daemon, oh well, two: notify-osd and dunst; and starting one of them from ~/.xinitrc.
If I ...
1
vote
Accepted
How can I change the text colour in a Plasma-desktop notification?
Luckas' answer pointed me in the direction of a workaround (rather than a solution):
In /usr/share/plasma/plasmoids/org.kde.plasma.notifications/contents/ui/NotificationItem.qml
@@ -230,7 +230,7 @@ ...
1
vote
How can I change the text colour in a Plasma-desktop notification?
You should be able to change the body text color of a notification in System Settings -> Appearance -> Colors. Here, click the edit icon of the currently selected theme and then select the "...
1
vote
sending discord notification if changes in bash output (will be put in a cron)
The issue you have is likely not putting spaces as follows [[ $1 -eq 1 ]];
You could also just use the || operator.
amass track -d beesy.me | grep -q "No differences discovered" || \
...
1
vote
Bind smartd to user session
You could try changing your WantedBy to graphical.target or default.target according to this.
Short explanation; multi-user.target means the system is up but it does not mean a user is logged on, ...
1
vote
Use 2>&1 to direct stdout/stderr for a single command only among many in a BASH script
First, I assume you want the output from grep to go to stderr? 2>&1 redirects stderr to stdout. You probably want grep 1>&2.
Second, redirection will only apply to that single command. It ...
1
vote
Send a notification or alert when bash asks for input from user
Invitation to feedback
Instead of adding another shellscript to my already existing answer, I think it is better with a second answer. I will listen to feedback and focus on the preferred script/...
1
vote
How to make dunst show repeated notifications of the same program as one single notification
man dunst:
stack_duplicates (values: [true/false], default: true)
If set to true, duplicate notifications will be stacked together
instead of being displayed separately.
Two ...
Only top scored, non community-wiki answers of a minimum length are eligible
Related Tags
notify-send × 48notifications × 16
bash × 8
libnotify × 7
systemd × 6
linux × 5
ubuntu × 5
cron × 4
i3 × 4
shell-script × 3
shell × 3
command-line × 3
x11 × 3
udev × 3
arch-linux × 2
fedora × 2
gnome × 2
desktop-environment × 2
wayland × 2
d-bus × 2
plasma × 2
polkit × 2
debian × 1
ssh × 1
grep × 1