I wrote a small script/blocklet to mute the dunst notifications while I’m sharing my screen over zoom. To prevent accidentally giving confidential information to other people e.g Slack or Mattermost messages.
I developed this as a blocklet for my i3wm (tiling window manager) status bar called i3blocks. It tries to find a specific window on your desktop, called “as_toolbar”, which represents that you share your screen.
If the window could be found, the dunst service will be paused and you will be notified over dunst that “Sharing mode” is activated. Upcoming dunst messages will be not removed so that by stop sharing your screen, all the messages will be shown.
I named it “zoom.sh”