Windows 8/10 Style Volume & Brightness OSD
Replaces the Windows 11 volume/brightness OSD with the vertical Windows 10 flyout
Author: AdmXP8
Shows the vertical Windows 8/10 flyout for volume and brightness instead of the Windows 11 one.
Windows 8/10 Theme
Volume

Brightness

Developer Preview Theme
Volume

Brightness

Volume
- With "Capture the volume keys" (on by default) the volume keys (up / down /
mute) are taken system-wide with
RegisterHotKey, so other applications
no longer receive them, but the flyout also appears when the volume is
already 0 or 100. Turn the option off if it conflicts with another program.
- Optional (off by default, "Keyboard hook fallback"): a low-level keyboard
hook, running on its own thread, is used as a fallback signal when a volume
key does not reach the hotkey (for example when another app owns the
hotkey).
- Volume changes from any other source (WASAPI) also show the flyout.
- When muted, or at volume 0, a cross icon replaces the number.
Brightness
- Laptops: the mod listens to the system brightness notification. The
Fn brightness keys keep working normally.
- Desktop PCs / external monitors: enable "External monitor hotkeys". The
mod then uses DDC/CI to change the brightness of the monitor under the mouse
cursor with Ctrl+Alt+Up / Ctrl+Alt+Down.
- These hotkeys are registered system-wide while the option is on.
Ctrl+Alt+Up / Down is also used by some applications (for example "add
cursor above/below" in VS Code) and by the screen rotation hotkey of some
Intel graphics drivers, so leave the option off if it conflicts. The flyout
is shown on the monitor that is being adjusted.
- Brightness flyout trigger:
- On every brightness change - shows the flyout whenever the system reports
a new brightness (this includes automatic changes such as the ambient light
sensor or an AC/battery switch). When the brightness is already at its
minimum or maximum no change is reported, so the native OSD is used as a
trigger instead; this needs "Suppress the native OSD" to be on.
- Only when the native OSD appears - shows the flyout only when Windows
would have shown its own OSD. Works at the minimum/maximum and ignores
automatic changes. Depends on the native OSD detection described below.
Mouse
The flyout can be dragged with the mouse to change whatever it is showing:
the volume, the brightness of the internal (laptop) panel - set through WMI,
the same way as the Fn keys - or, after the Ctrl+Alt+Up/Down hotkeys were
used, the brightness of an external monitor (DDC/CI).
Always on top
Enable Always on top to show the flyout above fullscreen UWP apps. The
flyout window is created in the same Z-band as the native Windows OSD. The mod
learns that band the first time the native OSD is detected (this needs
"Suppress the native OSD" or the native-OSD brightness trigger to be on) and
then recreates its window in that band automatically. If the band cannot be
used, the mod falls back to a UIAccess band and then to a normal topmost
window. Enable logging to see which band was used.
Native OSD suppression
The native OSD is hidden with ShowWindow/SetWindowPos hooks in explorer.exe.
Small XamlExplorerHostIslandWindow windows are treated as candidates for the
native OSD. Explorer hosts other flyouts in the same class, so two checks keep
them apart:
- Windows hosted by the
MultitaskingView UI thread, or by a snap-related
thread, are never the indicator. This covers the virtual desktop switcher
shown when hovering the Task View button, the Snap Layouts flyout shown
when hovering a window's maximize/restore button (or pressing Win+Z), and
the Snap Assist bar shown when dragging a window to the top of the screen.
- The first candidate that appears together with a real volume/brightness
event must be the true indicator, so its thread description and Z-band are
remembered as the indicator's signature. A candidate that appears without
such an event - a brightness key pressed at the minimum/maximum, for one -
is only accepted if it matches that signature.
Enable logging in Windhawk to see the class, title, thread description, band
and size of the windows that are treated as the OSD, and why other flyouts
were rejected.
Known issues
- Other hardware indicators that share the native flyout (for example airplane
mode) are hidden as well, and on a PC that reports a brightness value the
brightness flyout then appears in their place, because a native OSD without
a recent volume event is assumed to be a brightness change.
- The OSD signature is learned from the first volume/brightness event after
Explorer starts. Until then only the thread name is used to recognise the
Snap Layouts flyout and similar windows, and "Always on top" has not yet
learned the Z-band of the native OSD.
- If the Z-band of the native OSD cannot be used, the flyout may not appear
above fullscreen UWP apps.
Credits
Special thanks to babamohammed2022 for the base version of the mod.