Page 1 of 1

[SOLVED]How to switch off/on Pop-up notifications in Mate?

Posted: Sat Dec 01, 2018 4:50 pm
by Demeter
Hello!
Very often i need to take screen recordings, so very important to switch off pop-up notifications globally on desktop and switch on them after recording.
How to do it on Mate? I just can not find a convenient solution... :?:

Re: [SOLVED]How to switch off/on Pop-up notifications in Mate?

Posted: Sat Dec 01, 2018 11:10 pm
by erikdubois
Copy/pasting from discord where this question was answered by Marco Obaid

Quote : "I have not tested this, but you can try to turn off org.freedesktop.Notifications.service service"

https://wiki.archlinux.org/index.php/De ... s#Built-in

Re: [SOLVED]How to switch off/on Pop-up notifications in Mate?

Posted: Sun Dec 09, 2018 10:37 pm
by Demeter
I've found this:

- to switch OFF:

Code: Select all

sudo mv /usr/share/dbus-1/services/org.freedesktop.mate.Notifications.service /usr/share/dbus-1/services/org.freedesktop.mate.Notifications.service.disabled
- to switch ON:

Code: Select all

sudo mv /usr/share/dbus-1/services/org.freedesktop.mate.Notifications.service.disabled /usr/share/dbus-1/services/org.freedesktop.mate.Notifications.service
It works but is it possible somehow to do it without entering password via launcher?

Re: [SOLVED]How to switch off/on Pop-up notifications in Mate?

Posted: Mon Dec 10, 2018 7:05 am
by erikdubois
Thanks for sharing
I am sure it will help someone in the future.

Re: [SOLVED]How to switch off/on Pop-up notifications in Mate?

Posted: Mon Dec 10, 2018 10:39 am
by Demeter
erikdubois wrote:
Mon Dec 10, 2018 7:05 am
I am sure it will help someone in the future.
This would be completed if we could make scripts that would run without a password and launch them with launchers .. I have no such experience.
Is it possible?

Re: [SOLVED]How to switch off/on Pop-up notifications in Mate?

Posted: Mon Dec 10, 2018 10:49 am
by erikdubois
Anything is possible.
But with sudo comes a password.
You can do it without.... but ofcourse not recommended

Re: [SOLVED]How to switch off/on Pop-up notifications in Mate?

Posted: Tue Dec 11, 2018 11:32 pm
by Demeter
So the latest and the best solution for me - change MATE notifications to XFCE notifications

Code: Select all

sudo pacman -Rs mate-notification-daemon  
sudo pacman -S xfce4-notifyd 
To add new Notifications item to MATE Control Center:

Code: Select all

sudo nano /usr/share/applications/xfce4-notifyd-config.desktop
Change:

Code: Select all

OnlyShowIn=XFCE;
To:

Code: Select all

OnlyShowIn=MATE;
So, unfortunately we cant't add applet to mate-panel for this but we can add keyboard shortcut: Mod4+N for Notifications

Now, finally I can control the behavior of desktop notifications on my MATE-desktop:

Image
Image

All works!

Re: [SOLVED]How to switch off/on Pop-up notifications in Mate?

Posted: Wed Dec 12, 2018 5:55 am
by erikdubois
Thanks for the time you took to document this. :D