I've enabled Do Not Disturb for notifications in Ubuntu 20.10 but I still get large notification popups in the top middle of the screen (as if that were the most out-of-the-way place to put them), telling me how much free storage I have left.
How do I properly turn off notifications?
DnD clearly doesn't work, and I can't find an off switch for notifications anywhere in system settings. I can't even identify which application is generating the notification since the notification 1) doesn't tell me its origin, and 2) its icon (a hard drive) does not correspond to any of those listed in system settings.
There's more than one notification with a distinct icon that doesn't correspond to an item in settings, so in reality I'm also struggling to deactivate other notifications whenever DnD is not active.
To be honest I don't think I understand anything about the notification system -- not even how to read the entire text of a notification that has been truncated (i.e. all of them). If I click on one I get sent away somewhere without knowing what it says, and if I right-click it nothing happens. I don't understand how I'm supposed to use them properly.
Update Added a screenshot of a notification during DnD upon request:
As you can see, DnD is on, but not respected.
71 Answer
Same here. Ubuntu 21.04, 20.10 Gnome's "Do not disturb" does not work. But I found something.
When "Do not disturb" enabled, notify-sned "message" is disabled.
But other applications' notifications are not disabled.
So I had to disable all applications' notifications when I want "DnD".
For disabling all applications' notification, I made the following script. Run the script at GNOME startup, after that whenever Gnome Shell "Do Not Disturb" status changed, the script enable/disable all applications' notification.
#!/bin/bash
function change_app_notification() { APPS=( $(dconf list "/org/gnome/desktop/notifications/application/") ) declare -p APPS local enable=$1 for app in "${APPS[@]}" do echo "$app 'enable' to -> $enable" dconf write "/org/gnome/desktop/notifications/application/${app}enable" $enable # show-banners has no effect # dconf write "/org/gnome/desktop/notifications/application/${app}show-banners" $enable done
}
# first sync current state
change_app_notification $(gsettings get org.gnome.desktop.notifications show-banners)
# monitoring show-banners value
while read line
do show_banners=$(echo $line | cut -d' ' -f2) echo "current gnome notifications show-banners : $show_banners" change_app_notification $show_banners
done < <(gsettings monitor org.gnome.desktop.notifications show-banners) 2