How do I disable pop-up notifications in Xubuntu?

Solution 1:

Obviously removing notify-osd won't work because Xubuntu doesn't use it, it uses xfce4-notifyd.

So if you want to remove them, remove that package.

 sudo apt-get remove xfce4-notifyd

If you only want to disable them use this:

 sudo mv /usr/share/dbus-1/services/org.xfce.xfce4-notifyd.Notifications.service /usr/share/dbus-1/services/org.xfce.xfce4-notifyd.Notifications.service.disabled

To reverse that:

 sudo mv /usr/share/dbus-1/services/org.xfce.xfce4-notifyd.Notifications.service.disabled /usr/share/dbus-1/services/org.xfce.xfce4-notifyd.Notifications.service

Source.

Solution 2:

you can also run this command and will be able to edit what you want to be shown or blocked in notifications. I had to do this for SMB4K for drive mounts as it was driving me nuts lol.

xfce4-notifyd-config