Skip to content
BBarethPublic

About

A hotkey hardware-stats panel for Windows: CPU, NVIDIA GPU, memory and NVMe temperatures, always on top, no kernel driver. Rust + Win32 + Direct2D, one ~1 MB exe.

Topics

Resources

Stars

0 stars

Watchers

0 watching

Forks

Latest commit

 

History

5 Commits

Folders and files

Repository files navigation

Vitals

A hotkey hardware-stats panel for Windows: CPU, any GPU (AMD, Intel or NVIDIA), memory and NVMe temperatures, always on top, styled by a theme file, with no installer and no kernel driver.

CI Latest release License: MIT Windows x64 Rust


Vitals floats a small panel over everything on the monitor you choose and toggles it with Win+Alt+O. Think of the Game Bar's performance widget, but permanent, readable from across the room, and with real sensor data.

The Vitals panel showing CPU, GPU, memory and storage readings

  • CPU: load, real turbo clock, package temperature, and the mainboard temperature when a sensor bridge is connected
  • GPU (AMD, Intel or NVIDIA): load, temperature, VRAM, core clock, power and fan. NVIDIA cards report watts against the board limit; other cards report what their driver gives Windows, the same data Task Manager shows
  • Memory: load
  • Storage: activity, and the temperature of every NVMe drive

The panel is small on purpose: 300 px wide, about the footprint of the Game Bar's own widget. It leads with large percentages and temperatures. Two extras are off by default and take one flag each: per-thread P-core/E-core bars (cpu_cores) and network throughput (network).

Everything about the look is in theme.toml: colours, fonts, sizes, columns, and which rows each section shows in which order. Save it and the panel redraws. Four themes are built in:

default theme light theme compact theme
strip theme: every section side by side

It is written in Rust against raw Win32 and Direct2D, and ships as a single ~1 MB vitals.exe. There is no installer, no service and no kernel driver. On the machine it was built on, the panel idles at ~0.01% CPU and ~13 MB.

Contents

Install

Download vitals.exe from the latest release, put it anywhere, and run it. Right-click the tray icon and pick Start with Windows if you want it always up.

The binary is not code-signed, so the first run shows SmartScreen's Windows protected your PC. Click More info → Run anyway. Every release also ships SHA256SUMS.txt, so you can check the download first:

(Get-FileHash .\vitals.exe -Algorithm SHA256).Hash

Requirements:

  • Windows 11, x64. Windows 10 (1803 or newer) should work but is not tested.
  • Any GPU with a current driver. Without one, the GPU section says why it is empty and everything else works.

Vitals writes only to %APPDATA%\Vitals\ (config.toml, theme.toml and vitals.log). Start with Windows adds a Vitals value under HKCU\Software\Microsoft\Windows\CurrentVersion\Run. To uninstall, untick Start with Windows, quit from the tray, and delete the exe and that folder.

Use

Action How
Show / hide Win+Alt+O, or left-click the tray icon
Settings Right-click the tray icon
Move it Turn off Click-through, drag it, and the new spot is saved
Change monitor Move to next monitor, or set monitor in the config
Everything else Edit config file or Edit theme file, and save. It applies at once

Win+Alt+O was chosen because nothing in Windows or the Game Bar claims it (Win+Alt+G is the Game Bar's "record that"). Any Ctrl/Alt/Shift/Win combination works. A modifier is required, since a bare key would be swallowed system-wide.

The panel is click-through by default, so it never steals a click even though it sits above every other window. Hovering the tray icon shows the current readings and, when a bridge is connected, which sensor the CPU temperature comes from.

CPU temperature

Everything above works out of the box, with no driver and no admin rights, except one reading: CPU package temperature.

Reading it requires MSR access, and MSR access requires a kernel driver. Every tool that reports CPU temperature on Windows ships one. For years that was WinRing0, which Microsoft Defender flags as HackTool:Win32/Winring0 over CVE-2020-14979. LibreHardwareMonitor replaced it with PawnIO in v0.9.5 (January 2026), a signed driver that does not trip the detection. The driverless reading Windows does offer, the ACPI thermal zone, is not a CPU sensor: on a desktop it reports one chassis value in the high twenties.

So Vitals ships no driver. It reads the temperature from a tool you already trust, if you run one:

bridge.source Requires
auto (default) tries HWiNFO, then LibreHardwareMonitor
hwinfo HWiNFO with Settings → Shared Memory Support
lhm LibreHardwareMonitor with Options → Remote Web Server
none never looks; the temperature shows a dash

Both are polled on a background thread, so neither can stall the panel. The first one that answers supplies the reading, plus a mainboard temperature when the tool reports one. With no bridge, the CPU temperature shows a dash with no sensor source underneath, as in the screenshot, so it does not look broken.

HWiNFO's free build turns its shared memory interface off after 12 hours, and you have to turn it back on by hand. That is HWiNFO's licensing, not a Vitals limit. LibreHardwareMonitor has no such limit.

If you use the LibreHardwareMonitor bridge, change two of its settings:

  • Turn off every hardware category except CPU, mainboard and GPU. Vitals reads drive temperatures through NVMe SMART itself. The GPU category only matters when your GPU driver does not report a temperature to Windows; Vitals then takes it from the bridge.
  • Set its update interval to 2 seconds, to match the bridge's poll.

Its web server also listens on every interface with no authentication by default, so restrict it to loopback or firewall the port.

Configuration

%APPDATA%\Vitals\config.toml is created with comments on first run. Edit it and save; the panel picks the change up within a second.

[window]
monitor       = 2            # 1 = primary display, 2 = second, ...
anchor        = "top-right"  # top-left | top-right | bottom-left | bottom-right | center
margin_x      = 24
margin_y      = 24
width         = 300          # logical pixels; scaled by the monitor's DPI
opacity       = 1.0          # lower for a translucent panel
click_through = true         # false lets you drag the panel with the mouse
start_hidden  = false
scale         = 1.0          # extra size multiplier on top of DPI scaling

[hotkey]
toggle = "Win+Alt+O"

[update]
interval_ms = 1000

[panels]
cpu       = true
cpu_cores = false            # per-thread P/E core bars; adds about 35 px
gpu       = true
memory    = true
disk      = true
network   = false            # down/up throughput rows

[gpu]
source  = "auto"             # auto | nvml | wddm | none
adapter = ""                 # empty = most VRAM; or "2", or part of a name like "Radeon"

[appearance]
theme = "theme.toml"         # a file here, or a built-in: default | light | compact | strip

[bridge]
source  = "auto"             # auto | hwinfo | lhm | none
lhm_url = "http://127.0.0.1:8085/data.json"

Monitors are numbered 1 = primary, then left to right. That order survives driver updates; the raw enumeration order does not. A malformed file is never overwritten: Vitals falls back to the defaults and writes the parse error to vitals.log.

Themes

%APPDATA%\Vitals\theme.toml is the panel's stylesheet. Every key is optional and falls back to the default, so a theme can be one line:

[colors]
background = "#1E1B2E"

Sections are [[section]] blocks drawn in file order, each with the rows it shows:

[[section]]
kind = "gpu"
show = ["name", "headline", "bar", "vram", "power"]

[[section]]
kind = "cpu"
show = ["headline", "bar", "clock"]

To see a theme without the panel, render it to an image with sample readings:

Start-Process .\vitals.exe -ArgumentList '--preview', 'panel.png', '--all' -Wait

docs/THEMES.md lists every key and row, has recipes for common layouts, and a short section for AI agents editing a theme for you.

How it works

Reading Source
CPU load, per thread NtQuerySystemInformation(SystemProcessorPerformanceInformation)
P-core vs E-core GetLogicalProcessorInformationEx, EfficiencyClass
CPU clock PDH % Processor Performance × base clock, so turbo is real
Memory GlobalMemoryStatusEx, GetPerformanceInfo
GPU, NVIDIA NVML (nvml.dll, ships with the NVIDIA driver), in a child process
GPU, any vendor DXGI for the adapter list; WDDM node and segment statistics and adapter performance data (D3DKMTQueryStatistics, D3DKMTQueryAdapterInfo), in a child process
Drive temperature NVMe SMART log page 0x02 via IOCTL_STORAGE_QUERY_PROPERTY
Disk / network throughput PDH PhysicalDisk, GetIfTable2
CPU and board temperature HWiNFO shared memory, or LibreHardwareMonitor JSON

The window is layered, topmost and per-pixel alpha. Direct2D renders into a DIB, and UpdateLayeredWindow pushes it to the screen. That gives rounded corners and real transparency over any window beneath it, without holding a GPU swapchain open for something that changes once a second. The renderer runs the layout twice per frame, once to measure and once to draw, so the panel is always exactly as tall as the sections you enabled.

Drive SMART data is polled every fifth tick, not every tick. Both processes give back the memory they only needed while starting up, which is what keeps the panel near 13 MB.

Which GPU, and how it is read

The helper lists the hardware GPUs through DXGI and, unless [gpu] adapter names one, takes the one with the most dedicated memory, so a graphics card wins over the integrated GPU beside it.

  • An NVIDIA card is read through NVML, which reports power in watts against the board limit and fan speed in percent.
  • Everything else, or any card with [gpu] source = "wddm", is read through WDDM, the statistics Windows keeps for every GPU and Task Manager displays. Load is the busiest engine, as in Task Manager, so a game and a video export both count. VRAM is the dedicated memory in use; on an integrated GPU it is the shared memory it borrows. Temperature, clock, power (as a percentage of the limit) and fan RPM come from the driver's performance data where it reports them. A row the driver leaves empty is not drawn.

If the GPU driver does not report a temperature and HWiNFO or LibreHardwareMonitor is running, the bridge supplies it.

Why the GPU runs in its own process

NVML is loaded from the NVIDIA driver. When the driver is updated while a program has nvml.dll loaded, the old library stays mapped while the driver underneath it is replaced, and the next NVML call can crash with an access violation inside nvml.dll. Before 0.1.0 that took the whole panel down after every driver update.

So the panel never loads a GPU driver library itself. It starts vitals.exe --gpu-helper, which reads the GPU (through NVML or WDDM) and prints one line per sample. The panel supervises it:

  • If the helper crashes, exits or goes silent, the panel restarts it with backoff (1 s, doubling up to 60 s) and the GPU section reads gpu restarting for a moment. Every other section keeps updating.
  • When Windows reports a display adapter arriving or leaving, which is what a driver install looks like, the panel restarts the helper on purpose, so it loads the new driver.
  • The helper runs in a job object, so it never outlives the panel.

The helper trims its own working set to about 1 MB. NVML still commits about 22 MB in it, which shows up as private memory in Task Manager. With the GPU section switched off, no helper runs at all.

Troubleshooting

%APPDATA%\Vitals\vitals.log records which GPU is being read and how, every GPU helper restart and why it happened (crash code, exit, silence, or a driver change), and why a config.toml or theme was rejected. It is capped at 64 KB.

You see Meaning
gpu restarting The GPU helper is being restarted. Normal for a few seconds after a driver update
A reason under GPU No GPU could be read: no driver, or [gpu] adapter matches nothing. The log has the error
The wrong GPU Set [gpu] adapter to its number or part of its name; the log names the one in use
No GPU temperature, fan or clock The driver does not report it to Windows. Run HWiNFO or LibreHardwareMonitor for the temperature
no sensor source under CPU temperature No bridge answered. See CPU temperature
A drive without a temperature Only NVMe drives report one; SATA and USB drives show activity only
Settings ignored after an edit config.toml or the theme did not parse, so the last good one stays in use. The log names the line, and --preview shows the same error

Not covered

  • Watts and fan percent on AMD and Intel. Those cards are read through the vendor-neutral WDDM interface, which reports power as a share of the limit and fans in RPM, and only where the driver fills them in. Vendor SDKs (ADLX, IGCL) would give more, at the cost of a driver-specific DLL per vendor.
  • More than one GPU at once. The panel shows one; [gpu] adapter picks it.
  • Fan RPM and voltages. They have the same MSR/Super I/O problem as CPU temperature.
  • Per-process breakdown. This is a hardware panel, not a task manager.
  • Other operating systems. Vitals is a Win32 program and only builds on Windows.

Building from source

You need Rust 1.88 or newer with the MSVC toolchain.

cargo build --release

The result is target\release\vitals.exe. CI runs cargo fmt --check, cargo clippy -D warnings, the tests, smoke tests of both GPU backends, and renders every built-in theme with --preview on windows-latest. Pushing a vX.Y.Z tag that matches Cargo.toml builds the release, and the release notes come from CHANGELOG.md.

License

MIT

About

A hotkey hardware-stats panel for Windows: CPU, NVIDIA GPU, memory and NVMe temperatures, always on top, no kernel driver. Rust + Win32 + Direct2D, one ~1 MB exe.

Topics

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages