Toast auto-dismiss
Closes toast notification banners after a configurable number of seconds, unless the mouse pointer is over them
Author: nikitor32
Windows 11 toast banners usually disappear on their own in about five
seconds, but reminders and notifications from some apps can stay on the
screen until you deal with them.
The mod watches for toast banners and closes them after a configurable
timeout (5 seconds by default). Closing works exactly like pressing the
banner's own close (X) button: the notification is not lost, it stays in
the notification center, and no app notification settings are changed.
While the mouse pointer is over a banner, the countdown is paused, so
the banner's own buttons (reply, dismiss, and similar) remain clickable
for as long as needed.
Windows has its own "Dismiss notifications after this amount of
time" option (Settings > Accessibility > Visual effects, 5 seconds by
default), but many toasts ignore it and stay on the screen until
dismissed. The mod closes banners that ignore the system setting, and
its timeout can also be shorter than the system's five seconds.
The mod runs in a dedicated Windhawk process (as a tool mod) and does
not inject into other applications.
Settings
- Timeout (seconds) - the maximum time a banner stays on screen.
Default: 5, set to 0 to disable the mod. Use a smaller value to make
banners disappear faster, or a larger value as a safety net for
notifications that get stuck on the screen. The value is limited to
3600 seconds.
- Pause while hovered - keep the banner while the pointer is over
it. Default: on.
How it works
The banner is a regular window owned by the Windows shell. The mod
finds it by size and position in the bottom right corner of a monitor
and closes it through UI Automation - the same interface screen readers
use to press buttons. No hooks are installed, and no system files or
registry keys are modified.
Limitations
- Banners are detected by their position in the bottom right corner
of a monitor, so banners shown elsewhere are not closed. This
includes banners moved to another corner or monitor (for example by
the Notifications placement mod) and right-to-left languages, where
banners appear in the bottom left corner.
- Toasts that are meant to stay on the screen until handled, such as
incoming call or alarm notifications, are closed by the timeout as
well. Point at a banner to pause the countdown while it matters.