Skip to main content
OverflowAI is here! AI power for your Stack Overflow for Teams knowledge community. Learn more
17 votes

Show a notification across all running X displays

This thread is a bit old, sorry, but I hope I still can add something useful to the topic. (also Josef Kufner wrote a nice script, it was just a little bit too long for my taste, and it uses PHP). I ...
Andy's user avatar
  • 171
17 votes

Find out the owner of a DBus service name

You can get the caller PID via org.freedesktop.DBus.GetConnectionUnixProcessID: qdbus org.freedesktop.DBus /org/freedesktop/DBus \ org.freedesktop.DBus.GetConnectionUnixProcessID org.freedesktop....
don_crissti's user avatar
  • 83.1k
11 votes
Accepted

Thunderbird tray icon for mail notifications

In the past I used this plugin: https://addons.mozilla.org/en-US/thunderbird/addon/firetray/ a quote from the official plugin page: display unread messages count in tray icon Worked perfectly as ...
Luca D'Amico's user avatar
10 votes
Accepted

System Tray Icons on Xmonad - Xmobar Or any other minimal status bar

Finally, with the help of nice people on #xmonad IRC channel, I got the solution Here is how : First I resized the xmobar to leave a small gap on Right side (editing xmobarrc) position = Static { ...
Severus Tux's user avatar
  • 1,035
9 votes

How can I get an alert when my battery is about to die in Linux Mint?

With the help of all the information from all the answers here I created a script and put it in a repository on GitLab. It'll show notifications when: Your cable is unplugged and the battery goes ...
gitaarik's user avatar
  • 589
9 votes
Accepted

notify-send - How to display full message when message is longer than one line?

notify-send works like this: notify-send [OPTION...] <SUMMARY> [BODY] Now, as you only have one (quoted) string, that's being used for the SUMMARY and the BODY is empty. Just use blank or ...
don_crissti's user avatar
  • 83.1k
9 votes
Accepted

Find out the owner of a DBus service name

The d-bus debug utility d-feet which is available as a package in many systems seems to be able to find the process id and command providing a service. For example, I ran it on a Fedora 23 xfce4 X11 ...
meuh's user avatar
  • 51.6k
9 votes
Accepted

Wrong notification system in KDE Plasma

KDE Plasma does indeed have its own notification system, but it conflicts with the one from XFCE, which is what the dialog box is telling you. If you do not use XFCE4 anymore, you can uninstall the ...
xyquadrat's user avatar
  • 161
9 votes

Run command every time regex is matched, reading from stdin which does not have an EOF

Use awk instead of grep - something like: dbus-monitor ... | awk '/Spotify/ { system("date -u +%Y%m%d-%H%M%S.%N >> timestamp.txt") }' (note the use of %Y%m%d instead of %Y%M%D - ...
cas's user avatar
  • 78.9k
9 votes

Run command every time regex is matched, reading from stdin which does not have an EOF

Since you have GNU utilities, you could do something like: dbus-monitor --session interface='org.freedesktop.Notifications',member='Notify' | sed -un 's/^.*string "Spotify".*$/now/p' | ...
Stéphane Chazelas's user avatar
9 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 ...
Snake's user avatar
  • 1,660
8 votes

Notification that remote process completed (but no email)

For the case that there is still an ssh connection, you can use port forwarding. I am going to call the two machines laptop and server, with the latter where the long running job is being executed. ...
icarus's user avatar
  • 18.1k
8 votes
Accepted

How do I send a notification to all active shells, like shutdown does?

man wall will give you what you need. You execute wall with either a filename, or you pipe content to it. For example, either, wall file.name to broadcast the content of the file file.name or echo ...
EightBitTony's user avatar
  • 21.4k
8 votes

How to have normal notifications over full screen applications in Gnome 3?

Does this Gnome extension solve the problem? Fullscreen Notifications (say thanks to them :)
iago-lito's user avatar
  • 2,791
8 votes
Accepted

How can I get these dialogs informing me that I need to restart to stop popping up?

Edit the file /etc/needrestart/notify.conf Uncomment the line, #NR_NOTIFYD_DISABLE_NOTIFY_SEND='1' So it looks like NR_NOTIFYD_DISABLE_NOTIFY_SEND='1'
Evan Carroll's user avatar
  • 31.2k
7 votes
Accepted

How to identify the notification daemon?

I found out myself. Trigger the notification again Open a console, and run xwininfo to find out which process created the notification window. Uninstall that application, and install a different one (...
danuker's user avatar
  • 317
6 votes

How can I get an alert when my battery is about to die in Linux Mint?

Since you're apparently running Cinnamon, just install Battery Applet with Monitoring and Shutdown (BAMS). Right-click on a panel → + Add Applets to the Panel → Available applets (online), type 'BAMS'...
Michael Scheper's user avatar
6 votes

How can I get these dialogs informing me that I need to restart to stop popping up?

The best way to get rid of the notifications is to restart the affected programs. The notifications are produced by needrestart; if you don’t care about them, you can uninstall the package, or remove ...
Stephen Kitt's user avatar
6 votes
Accepted

Unable to send notifications from cron job

I added this to my crontab and all my notifications work (currently tested with zenity and notify-send): DISPLAY=":0.0" XAUTHORITY="/home/me/.Xauthority" XDG_RUNTIME_DIR="/run/user/1000" ...
ajgringo619's user avatar
  • 3,374
5 votes
Accepted

Pop up a message on the GUI from cron

If you want to send a pop up message to a user logged into a Desktop Environment, have a look at notify-send.
Thomas's user avatar
  • 6,412
5 votes

Banish a popup error message

In Centos 7, to remove "Authentication is required to set the network proxy used for downloading packages" dialog when you log in - you have to disable autostart of gnome-software-service sed -e '$aX-...
pikmaster's user avatar
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!"
Mr. Goferito's user avatar
5 votes
Accepted

Arch linux: Notifications not working in i3wm - dunst: CRITICAL: Cannot open X11 display

Instead of installing dunst as a service, add it to your i3 config: Edit ~/.config/i3/config and add: exec --no-startup-id dunst
laktak's user avatar
  • 5,994
5 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 ...
AKMalkadi's user avatar
  • 351
4 votes

Show a notification across all running X displays

In Ubuntu 16.04, I wanted notifications from a script running as root from crontab. After setting the environment variables, sudo -u $user didn't work for some reason, but sh -c "..." $user does work. ...
mivk's user avatar
  • 3,646
4 votes

How do I send a notification to all active shells, like shutdown does?

You simply use wall; running it as root will ensure every terminal displays the message. wall Your attention please\! Older versions of wall only accept a file name on their command-line, or a ...
Stephen Kitt's user avatar
4 votes

How to disable event sounds in Plasma 5?

On KDE Plasma 5.22, Open System Settings, navigate on the menus to this place: and click the "Configure Events" button. This window will popup: here you can disable/change the system ...
Eduardo de Souza Cruz's user avatar
4 votes
Accepted

How to print message to the user on package installation?

It seems to me that this is covered earlier in that document, in Prompting in maintainer scripts, with: Package maintainer scripts may prompt the user if necessary. Prompting must be done by ...
Jeff Schaller's user avatar
  • 67.5k

Only top scored, non community-wiki answers of a minimum length are eligible