Disable notification per XFCE Qubes (do not disturb mode)

Hi,

For fedora-xfce templates based AppVm, it’s possible to desactivate the notification per Qube.

A first step is to run the program xfce4-notifyd-config in each AppVM, this is required to create the required entries in xfconf (gconf equivalent in XFCE, a settings database), and click on “Do not disturb” to enable, click again to disable.

You can stick with this procedure if it’s good enough for you.

For advanced users who prefer using the command line, once the procedure above was done, you can use:

  • display current setting: xfconf-query -c xfce4-notifyd -p /do-not-disturb
  • enable do not disturb: xfconf-query -c xfce4-notifyd -p /do-not-disturb --set true
  • disable do not disturb: xfconf-query -c xfce4-notifyd -p /do-not-disturb --set false
  • toggle: xfconf-query -c xfce4-notifyd -p /do-not-disturb -T
1 Like

It’s possible to automatically set the do not disturb mode to FALSE upon Qube start by doing this.

mkdir /home/user/.config/autostart
cat <<EOF > /home/user/.config/autostart/reset-dnd.desktop
[Desktop Entry]
Encoding=UTF-8
Version=1.0
Type=Application
Terminal=False
Exec=xfconf-query -c xfce4-notifyd -p /do-not-disturb --set false
Name=Do Not Disturb off
EOF

I find this convenient to not have to remember the state of the do not disturb mode. I’m fine enabling it, but I don’t want to have to remember to disable it after a few days…

1 Like