Xfce Forum

Sub domains
 

You are not logged in.

#1 2019-06-18 19:56:18

jerry1970
Member
Registered: 2017-06-27
Posts: 24

xfce4-notifyd's Do Not Disturb from command line?

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

#2 2019-06-18 21:52:21

ToZ
Administrator
From: Canada
Registered: 2011-06-02
Posts: 11,485

Re: xfce4-notifyd's Do Not Disturb from command line?

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

#3 2019-06-19 03:21:29

jerry1970
Member
Registered: 2017-06-27
Posts: 24

Re: xfce4-notifyd's Do Not Disturb from command line?

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

#4 2020-05-11 23:52:46

csonuryilmaz
Member
Registered: 2020-05-11
Posts: 3

Re: xfce4-notifyd's Do Not Disturb from command line?

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

#5 2020-05-12 00:32:13

ToZ
Administrator
From: Canada
Registered: 2011-06-02
Posts: 11,485

Re: xfce4-notifyd's Do Not Disturb from command line?

Hello and welcome.

csonuryilmaz wrote:

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

#6 2020-05-12 01:57:04

csonuryilmaz
Member
Registered: 2020-05-11
Posts: 3

Re: xfce4-notifyd's Do Not Disturb from command line?

ToZ wrote:

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.
Screenshot-2020-05-12-04-59-49.png

Last edited by csonuryilmaz (2020-05-12 02:03:19)

Offline

#7 2020-05-12 02:15:06

MrEen
Member
Registered: 2019-04-19
Posts: 295

Re: xfce4-notifyd's Do Not Disturb from command line?

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

#8 2020-05-12 02:35:01

csonuryilmaz
Member
Registered: 2020-05-11
Posts: 3

Re: xfce4-notifyd's Do Not Disturb from command line?

MrEen wrote:

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. smile 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

#9 2020-05-12 20:34:15

MrEen
Member
Registered: 2019-04-19
Posts: 295

Re: xfce4-notifyd's Do Not Disturb from command line?

You're welcome. smile

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

Registered users online in this topic: 0, guests: 1
[Bot] ClaudeBot

Board footer

Powered by FluxBB
Modified by Visman

[ Generated in 0.010 seconds, 7 queries executed - Memory usage: 542.69 KiB (Peak: 543.53 KiB) ]