My problem is similar to the one in this question (not exactly the same), I did try the answers there but they didn't solve the issue. Basically when I change volume via keyboard shortcut I get multiple notifications, like this:
I do NOT have xfce4-volumed installed, the notifications come exclusively from the pulseaudio plugin in the panel. If I remove the plugin and install xfce4-volumed the same happens but with a different notification style (the speaker is smaller). The only workaround that I've found is disabling notifications from the puldeaudio plugin properties but that isn't exactly ideal. Any help is appreciated. I'm running Ubuntu 18.04 with xfce installed (not xubuntu).
The solution isn't obvious. I'll give 2 versions.
Method 1: notify-osd
Easy workaround, but has some limitations (notifications don't go away after being clicked on for example). Run these commands in a terminal and you're good:
and then set notify-osd to run on startup. Finished.
Method 2: Dunst
A bit trickier but worth it. Run these commands:
It should already work, but it's ugly. Now create a file in
~/.config/dunst
called dunstrc and paste the following:Now set dunst to run on startup and you should now have a 100% functioning notification system. You can tweak it even more so that it displays an icon while changing the volume but that would involve either writing a script or removing pulsaudio in favour of alsa to use this.
Try editing
/usr/share/dbus-1/session.conf
to disallow eavesdropping, and then restart your session.This is how I worked around a similar issue on Debian.