ArcoLinux -D -B 19.11 has been released

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

Post Reply
User avatar
Demeter
Crewman
Posts: 27
Joined: Mon Jan 22, 2018 12:17 pm
Ukraine
[SOLVED]How to switch off/on Pop-up notifications in Mate?

Post by Demeter » Sat Dec 01, 2018 4:50 pm

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... :?:

User avatar
erikdubois
Captain
Posts: 2642
Joined: Tue Nov 07, 2017 3:45 pm
Location: Belgium
Contact:
Belgium
Re: [SOLVED]How to switch off/on Pop-up notifications in Mate?

Post by erikdubois » Sat Dec 01, 2018 11:10 pm

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
Learn, have fun and enjoy.
But first use the power of the Arch Wiki
use the tutorials on https://www.youtube.com/erikdubois
then use the power of google
then use the power of our moderators.

User avatar
Demeter
Crewman
Posts: 27
Joined: Mon Jan 22, 2018 12:17 pm
Ukraine
Re: [SOLVED]How to switch off/on Pop-up notifications in Mate?

Post by Demeter » Sun Dec 09, 2018 10:37 pm

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?

User avatar
erikdubois
Captain
Posts: 2642
Joined: Tue Nov 07, 2017 3:45 pm
Location: Belgium
Contact:
Belgium
Re: [SOLVED]How to switch off/on Pop-up notifications in Mate?

Post by erikdubois » Mon Dec 10, 2018 7:05 am

Thanks for sharing
I am sure it will help someone in the future.
Learn, have fun and enjoy.
But first use the power of the Arch Wiki
use the tutorials on https://www.youtube.com/erikdubois
then use the power of google
then use the power of our moderators.

User avatar
Demeter
Crewman
Posts: 27
Joined: Mon Jan 22, 2018 12:17 pm
Ukraine
Re: [SOLVED]How to switch off/on Pop-up notifications in Mate?

Post by Demeter » Mon Dec 10, 2018 10:39 am

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?

User avatar
erikdubois
Captain
Posts: 2642
Joined: Tue Nov 07, 2017 3:45 pm
Location: Belgium
Contact:
Belgium
Re: [SOLVED]How to switch off/on Pop-up notifications in Mate?

Post by erikdubois » Mon Dec 10, 2018 10:49 am

Anything is possible.
But with sudo comes a password.
You can do it without.... but ofcourse not recommended
Learn, have fun and enjoy.
But first use the power of the Arch Wiki
use the tutorials on https://www.youtube.com/erikdubois
then use the power of google
then use the power of our moderators.

User avatar
Demeter
Crewman
Posts: 27
Joined: Mon Jan 22, 2018 12:17 pm
Ukraine
Re: [SOLVED]How to switch off/on Pop-up notifications in Mate?

Post by Demeter » Tue Dec 11, 2018 11:32 pm

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!

User avatar
erikdubois
Captain
Posts: 2642
Joined: Tue Nov 07, 2017 3:45 pm
Location: Belgium
Contact:
Belgium
Re: [SOLVED]How to switch off/on Pop-up notifications in Mate?

Post by erikdubois » Wed Dec 12, 2018 5:55 am

Thanks for the time you took to document this. :D
Learn, have fun and enjoy.
But first use the power of the Arch Wiki
use the tutorials on https://www.youtube.com/erikdubois
then use the power of google
then use the power of our moderators.


Post Reply

Return to “Mate”