You are not logged in.
Hi,
Could not find this anywhere so now I am asking here... Is there a way to set xfce4-notifyd's Do Not Disturb from the command line so I can add a shortcut to it?
Using Xubuntu 18.04.2 LTS with XFCE 4.12.
Cheers!
Jerry
Offline
Yes.
The following command should do it:
xfconf-query -c xfce4-notifyd -p /do-not-disturb -s true
...or "-s false". You can also toggle it:
xfconf-query -c xfce4-notifyd -p /do-not-disturb -T
Please remember to mark your thread [SOLVED] to make it easier for others to find
--- How To Ask For Help | FAQ | Developer Wiki | Community | Contribute ---
Offline
Excellent, many thanks!
Weird that I could not find this on any website. When I look for it now, this post comes up at the top.
Offline
Hi, I tried "xfconf-query" but it doesn't work for me:
$ xfconf-query -c xfce4-notifyd -p /do-not-disturb -T
Property "/do-not-disturb" does not exist on channel "xfce4-notifyd".
My distribution is "Debian GNU/Linux 9.12 (stretch)" w/ Xfce 4.12.
Offline
Hello and welcome.
Hi, I tried "xfconf-query" but it doesn't work for me:
$ xfconf-query -c xfce4-notifyd -p /do-not-disturb -T Property "/do-not-disturb" does not exist on channel "xfce4-notifyd".
My distribution is "Debian GNU/Linux 9.12 (stretch)" w/ Xfce 4.12.
What version of xfce4-notifyd are you running? Do not disturb mode was added in Version 0.3.4 (09 November 2016).
Please remember to mark your thread [SOLVED] to make it easier for others to find
--- How To Ask For Help | FAQ | Developer Wiki | Community | Contribute ---
Offline
What version of xfce4-notifyd are you running?
$ xfce4-notifyd-config --version
xfce4-notifyd-config 0.3.4
...
I can configure "do not disturb" from notifications UI.
Last edited by csonuryilmaz (2020-05-12 02:03:19)
Offline
ToZ will probably have a better answer, but if you turn it on in the GUI does the command then toggle it? Sometimes the setting isn't added until it's been used once I believe. Not sure if that's the case here.
Offline
Sometimes the setting isn't added until it's been used once I believe. Not sure if that's the case here.
It seems you're right. After toggle from GUI once, now the same command works and not producing any error!
$ xfconf-query -c xfce4-notifyd -p /do-not-disturb -T
Thanks ToZ & MrEen!
Offline
You're welcome.
I got lucky really. For me, the setting was present in the Settings Editor, and I'm pretty sure I've never used the feature before. Could be different depending on the Distro maybe.
Offline
[ Generated in 0.009 seconds, 7 queries executed - Memory usage: 547.29 KiB (Peak: 548.13 KiB) ]