vrde / i3-quiet

Distraction free i3 experience
MIT License
78 stars 3 forks source link

Disable notifications #1

Open vrde opened 4 years ago

vrde commented 4 years ago

Problem

Quiet mode is not quiet if user gets distracted by notifications.

Solution

Find a way to disable notifications while user is in the user is in the quiet workspace.

ammgws commented 4 years ago

If you use dunst as your notification server then it seems trivial:

To disable dunst temporarily there are two options.

  1. Send a special notification Use notify-send "DUNST_COMMAND_PAUSE" to disable and notify-send "DUNST_COMMAND_RESUME" to reenable.

  2. Use killall Use killall -SIGUSR1 dunst to disable and killall -SIGUSR2 dunst to reenable

Once paused dunst will hold back all notifications. After enabling dunst again all held back notifications will be displayed.

vrde commented 4 years ago

More info about Ubuntu: https://askubuntu.com/questions/472220/change-notification-daemon-on-14-04