Dunst: Hide notifications temporarily, mainly during screenshare.

Created on 21 Sep 2020  ·  4Comments  ·  Source: dunst-project/dunst


What I want to achieve

Stop notifications temporarily from popping up and then resume them later. All notifications during this time should be popped up when I resume notifications. I can do pgrep dunst | xargs kill to stop and then later manually restart it, but then I lose all my notifications in the mid time. Mainly helpful when doing a screenshare.

Is there any way to achieve this behavior? Please help.

Installation info

  • Version: v1.4.1-8-g9e29406
  • Install type: apt install dunst
  • Distro and version: Kubuntu 20.04

Most helpful comment

And with the latest dunst release (1.5.0) there is a dedicated command/helper script for such cases: dunstctl

All 4 comments

You can use notify-send "DUNST_COMMAND_TOGGLE" to toggle the display of notifications. Received notifications during the pause will be displayed afterwards.

The other options are:

DUNST_COMMAND_RESUME

Oh thanks, that helps :smile:

And with the latest dunst release (1.5.0) there is a dedicated command/helper script for such cases: dunstctl

Ah nice! Thanks, I didn't know that one either. Now I can finally check for current status!

Was this page helpful?
0 / 5 - 0 ratings

Related issues

Anachron picture Anachron  ·  4Comments

progandy picture progandy  ·  4Comments

progandy picture progandy  ·  6Comments

Kaligule picture Kaligule  ·  5Comments

bebehei picture bebehei  ·  4Comments