! Please note that this is a snapshot of our old Bugzilla server, which is read only since May 29, 2020. Please go to gitlab.xfce.org for our new server !
[feature-request] Command line option for toggling "Do not disturb" mode
Status:
RESOLVED: INVALID
Product:
Xfce4-notifyd
Component:
general

Comments

Description Goran 2020-01-26 23:15:39 CET
There does not seem to be a way of activating/deactivating "Do not disturb" from the command line.
Killing `xfce4-notifyd` doesn't work reliably, neither via `kill` nor via `systemctl`, as it immediately turns back on when some applications sends a notification, hence this feature request.
This would be pretty useful as a user could then bind a keyboard shortcut for toggling the mode, which comes in handy when one needs to shut off notifications in a hurry (e.g. for a presentation).
Comment 1 Simon Steinbeiss editbugs 2020-01-26 23:28:08 CET
While this is not the most discoverable way possible, this is already possible via xfconf-query.

Examples:

# Enable Do Not Disturb
xfconf-query -c xfce4-notifyd -p /do-not-disturb -s true

# Disable Do Not Disturb
xfconf-query -c xfce4-notifyd -p /do-not-disturb -s false

# Toggle Do Not Disturb
xfconf-query -c xfce4-notifyd -p /do-not-disturb -T

I have also added this to the FAQ / docs now: https://docs.xfce.org/apps/notifyd/faq

Bug #16407

Reported by:
Goran
Reported on: 2020-01-26
Last modified on: 2020-01-26

People

Assignee:
Simon Steinbeiss
CC List:
0 users

Version

Attachments

Additional information