Hasty Briefsbeta

Bilingual

Scheduling Do-Not-Disturb in GNOME

a day ago
  • GNOME has a Do-Not-Disturb button but no built-in scheduling.
  • The CLI command to enable DnD is: gsettings set org.gnome.desktop.notifications show-banners false.
  • Using cron to schedule DnD fails due to PATH issues and lack of DBUS environment.
  • The solution is to run a bash login shell and use a dbus-run-user helper to connect to the user's DBUS session.
  • For X11 applications, DISPLAY and other environment variables may need to be set separately.
  • The author ultimately found that the DnD setting did not silence Discord notifications, so they turned off notification sounds instead.