주시
1
0
포크
이미 tiny-tray-monitor을(를) 포크했습니다
0
의 미러 https://github.com/tinyrack-net/tiny-tray-monitor.git 동기화됨 2026-11-28 14:24:34 +09:00
CPU, memory and network readouts in the Windows system tray
  • Rust 84.2%
  • Python 10.4%
  • PowerShell 3.6%
  • Inno Setup 1.4%
  • Makefile 0.4%
파일 찾기
저장소 파일(최신 커밋부터)
파일 이름 최신 커밋 메시지 최근 커밋 날짜
hansol, park b8e44819c4
docs: restyle the settings and tray Store screenshots (#51)
02-settings and 03-tray now share the hero shot's look: the settings window floats on the same gradient with the headline and feature list, and the eight readouts sit on cards that say what each one measures. tools/capture_settings.ps1 captures the settings window per language from the running instance, with Run at sign-in shown on and put back afterwards. Uploaded as Submission 17.
2026-10-26 09:53:51 +00:00
.cargo feat: add Inno Setup installer and MSIX packaging (#11) 2026-10-19 14:00:42 +00:00
.github/workflows docs: record the v0.13.0 Store submission and wait for the uninstaller (#49) 2026-10-23 08:06:56 +00:00
docs docs: record the v0.13.0 Store submission and wait for the uninstaller (#49) 2026-10-23 08:06:56 +00:00
packaging/windows fix: declare the app's Korean and Japanese UI in the package manifest (#45) 2026-10-23 04:54:34 +00:00
resources docs: restyle the settings and tray Store screenshots (#51) 2026-10-26 09:53:51 +00:00
src feat!: remove the Count virtual adapters setting (#47) 2026-10-23 07:38:37 +00:00
tools docs: restyle the settings and tray Store screenshots (#51) 2026-10-26 09:53:51 +00:00
.gitignore feat: add Inno Setup installer and MSIX packaging (#11) 2026-10-19 14:00:42 +00:00
AGENTS.md docs: record that a price schedule blocks the Store submission API (#46) 2026-10-23 05:13:42 +00:00
build.rs feat: plan the settings GUI and land the resource pipeline (#6) 2026-10-19 10:13:23 +00:00
Cargo.lock chore: bump the version to 0.13.0 (#48) 2026-10-23 07:44:22 +00:00
Cargo.toml chore: bump the version to 0.13.0 (#48) 2026-10-23 07:44:22 +00:00
LICENSE feat: show CPU, memory and network readouts in the tray 2026-10-19 17:31:57 +09:00
Makefile feat!: rename the app to TinyTrayMonitor and the executable to tiny-tray-monitor.exe (#38) 2026-10-22 05:42:26 +00:00
README.md feat!: remove the Count virtual adapters setting (#47) 2026-10-23 07:38:37 +00:00
rust-toolchain.toml feat: show CPU, memory and network readouts in the tray 2026-10-19 17:31:57 +09:00

TinyTrayMonitor

CPU, memory, network, GPU and disk readouts in the Windows system tray.

CI License: MIT

TinyTrayMonitor puts eight live readouts in the taskbar notification area, each showing what it measures and its current value:

 DIO   DSK   VRM   GPU   ↑KB   ↓MB   MEM   CPU
 6     58    90    14    341   1.7   41    34

No administrator rights, no kernel driver, no background service. It reads CPU time counters, GlobalMemoryStatusEx, the interface table, the GPU engine statistics (D3DKMTQueryStatistics) and the disk performance counters (IOCTL_DISK_PERFORMANCE) directly.

Install

Download tiny-tray-monitor-<version>-windows-x64-setup.exe from Releases and run it. The default is a per-user install under %LOCALAPPDATA%\Programs\TinyTrayMonitor, so no UAC prompt appears and the install path stays the same across upgrades. /ALLUSERS (or the wizard) can install it for every user instead. Uninstalling keeps %APPDATA%\TinyTrayMonitor.

Before v0.11.0 the app was called TinyTrayManager (tray-monitor.exe). Versions from v0.12.0 on do not carry anything over from that name: uninstall the old version, then install this one. Pinned readouts stay pinned, because Windows keys them on the per-readout GUIDs.

The wizard turns on Run at sign-in by default, so the readouts are back after a reboot. Uncheck the task on the wizard page to skip it. An upgrade keeps whatever you chose afterwards.

Portable

Download tiny-tray-monitor-<version>-windows-x64.zip, unpack it anywhere and run tiny-tray-monitor.exe.

MSIX (Store build)

Releases also contain tiny-tray-monitor-<version>-windows-x64.msix. It is unsigned: Windows will not install the file directly. The Store signs the submitted package; for local testing, unpack it and run Add-AppxPackage -Register AppxManifest.xml in developer mode. A packaged build keeps its config and log in %LOCALAPPDATA%\Packages\tinyrack.TinyTrayManager_<hash>\LocalState (Partner Center fixes the package identity per product, so it keeps the first name), uses the Windows startup-task API instead of the Run key, and keeps the tray promotion across package updates because each readout registers with a fixed GUID that Windows keys the setting on. The package is enabled at sign-in on first install, and turning it off in Settings or Task Manager survives later updates. Launching it from the Start menu only starts the tray; run it again or use the tray menu to open the settings. See docs/PACKAGING.md.

The readouts start hidden

Windows puts new tray icons in the overflow area (^) instead of the taskbar, so nothing shows up there on the first run. Pin them yourself:

  • Settings > Personalisation > Taskbar > Other system tray icons > turn on TinyTrayMonitor
  • or drag the icons out of the ^ overflow

The settings window (right-click a readout > Settings…) says this too and has an Open taskbar settings button that opens the page for you. TinyTrayMonitor never reads the setting; pinning is up to you. Each readout registers with a fixed GUID, so a package update that moves the executable keeps your choice.

Menu

Right-click any of the icons.

Item What it does
Settings… Opens the settings window
CPU / Memory / Network down / Network up / GPU / GPU VRAM / Disk usage / Disk activity Show or hide that readout. The last visible one cannot be turned off
Exit Stops TinyTrayMonitor

Hovering an icon shows the exact numbers, including upload rate, memory in GB and the disk read and write rates.

Settings window

Everything the menu does, plus the update interval, colours, the device to measure and startup, in one window. The list on the left picks a page: General for the settings shared by every readout, then one page each for CPU, Memory, GPU, Network and Disk. There is only ever one settings window:

Situation Settings… in the tray menu Running tiny-tray-monitor.exe again
Settings window open Brings it to the front Brings it to the front
Settings window closed Opens it Opens it in the running instance
App not running — Starts the tray app without the settings window
Page Setting Notes
General Update every 250 ms to 10 s. Pick a preset or type an exact number of milliseconds
General Icon text One colour per readout, or a single colour from the taskbar theme
General Window Automatic follows the taskbar; Light or Dark forces this window and the tray menu. The tray icons always follow the taskbar so they stay readable
General Startup Run at sign-in: adds or removes the HKCU\...\Run entry (or the package startup task). A new install turns it on; turn it off here
General Language Automatic (system), English, 한국어 or 日本語. Applies at once to the window, the tray menu and the tooltips
CPU, Memory Readouts Show or hide the readout. The device line names the processor or the installed memory
GPU Device Automatic measures the adapter with the most dedicated memory; or pick one adapter
Network Device All adapters sums the physical adapters (virtual ones only when no physical adapter is connected); or pick one, such as Ethernet, Wi-Fi or a VPN / vEthernet adapter
Disk Device Automatic measures the drive Windows is installed on; or pick a drive. Activity is the busy time of the physical disk behind that drive
Every page Readouts The last visible readout cannot be turned off
Buttons Reset to defaults Reset everything in config.toml to the defaults

There is no OK button: every change applies immediately and is written to config.toml at once, so the tray icons are the preview. Close the window with the button or Escape.

A chosen device that disappears (a USB drive pulled out, a renamed adapter) is kept in the settings and marked (not found); the readout falls back to the automatic choice until the device comes back.

Configuration

%APPDATA%\TinyTrayMonitor\config.toml is created on first run. In the MSIX package the file lives in %LOCALAPPDATA%\Packages\tinyrack.TinyTrayManager_<hash>\LocalState\config.toml; an existing config from %APPDATA%\TinyTrayMonitor is copied there on the first packaged run.

poll_interval_ms = 1000          # 250 ~ 10000
color_mode = "metric"            # "metric" = one colour per readout, "theme" = single colour
ui_theme = "auto"                # window and tray menu: "auto" | "light" | "dark"
language = "auto"                # "auto" | "en" | "ko" | "ja"

[show]
cpu = true
memory = true
network_down = true
network_up = true
gpu = true
gpu_vram = true
disk_usage = true
disk_active = true

[devices]                        # empty = automatic
gpu = ""                         # adapter name, e.g. "NVIDIA GeForce RTX 4060"
network = ""                     # interface alias, e.g. "Ethernet" or "Wi-Fi"
disk = ""                        # drive, e.g. "D:"

A network = ... setting written by v0.1.0 is migrated to network_down and network_up on the next start.

language = "auto" follows the Windows display language. Only English, Korean and Japanese are bundled; any other language falls back to English. Logs are always written in English to %LOCALAPPDATA%\TinyTrayMonitor\log.txt.

Deleted or broken files fall back to the defaults; a broken file is kept as config.toml.bak.

Command line

Command What it does
tiny-tray-monitor Run the tray app
tiny-tray-monitor --settings Run and open the settings window at once (or show it in the running instance)
tiny-tray-monitor --probe Print the metrics every second, without any tray icon
tiny-tray-monitor --interfaces List network interfaces and mark which ones are counted
tiny-tray-monitor --dump Render the icons and print the layout measurements
tiny-tray-monitor --theme Print the taskbar theme and whether the dark mode API is available
tiny-tray-monitor --dpi [--watch] Print the system and taskbar DPI and the icon size picked from them; --watch reprints on change
tiny-tray-monitor --help Usage

The settings window is also reachable from the tray menu; --settings is for scripts and keyboard launchers.

--interfaces is the quickest way to understand the network number:

2 counted (All adapters)
  idx    type   up     hardware  counted description
  7      6      true   true      true    Intel(R) I211 Gigabit Network Connection (Ethernet)
  16     71     true   true      true    Intel(R) Wi-Fi 6 AX200 160MHz (Wi-Fi)
  12     6      true   false     false   Hyper-V Virtual Switch Extension Adapter (vSwitch ...)

How it works

Metric Source
CPU GetSystemTimes deltas (kernel time includes idle time)
Memory GlobalMemoryStatusEx
Network down / up GetIfTable2 byte counters, loopback and tunnel interfaces excluded
GPU D3DKMTQueryStatistics per-engine running time deltas. The readout is the busiest engine of the adapter with the largest dedicated memory
GPU VRAM The same call, summed over the adapter's non-aperture segments, against the DXGI dedicated limit
Disk usage GetDiskFreeSpaceExW on the chosen drive
Disk activity IOCTL_DISK_PERFORMANCE on the physical disk behind that drive, opened with no access rights: 1 - idle / elapsed, the same figure as Active time in Task Manager. A volume that spans several disks shows the busiest one

Values are formatted to fit a square icon and drawn with a built-in 1-bit pixel font (a 5px caption over a 10px value) into an RGBA bitmap, then handed to Shell_NotifyIcon as an HICON. There is no anti-aliasing and no GDI text: the glyph table is generated from tools/pixelfont.py, so the same input always produces the same pixels. The 16px master is scaled to the tray size with nearest-neighbour, which keeps the result 1-bit at every display scale. The unit lives in the caption (CPU, MEM, ↓MB, ↑KB), so the value row only ever holds a number of at most three characters and can use wide 4px digits with a 1px gap. Measurements and the reasoning behind the layout are in docs/SPIKE.md and docs/PIXEL-FONT.md.

Idle cost measured on a 2560x1440 100% display: about 19 MB of working set (3 MB private, 216 handles, all steady) and 0.4% of one CPU core at a one second interval.

The label row is 5px tall. DN and UP stay readable, and the two readouts also use different colours; an arrow was rejected because two arrows are harder to tell apart than two words at this size. Measurements for every candidate are in docs/PLAN.md §11.

Limitations

  • The taskbar decides the order of the icons. Drag them to reorder.
  • Dark mode uses the unofficial uxtheme ordinals (133/135/136). If a future Windows build drops them, the window stays light; tiny-tray-monitor --theme says which case you are in.
  • The icons are rendered for the display scaling that was active at startup. Changing the scaling keeps the existing bitmaps; the taskbar scales them.
  • Requires Windows 11 or Windows 10 (build 17063 or later for GetIfTable2).
  • CPU temperature, fan speed and voltages are not included: they need administrator rights and a kernel driver.
  • The GPU readout follows one adapter: by default the one with the largest dedicated memory. Pick another on the GPU page. The value is the busiest engine of that adapter, so it can differ from the per-engine graphs in Task Manager.
  • The disk readouts follow one drive. Activity belongs to the whole physical disk, so two drives on the same disk show the same activity.
  • The MSIX package is unsigned (developer mode or Store signing needed). A package update changes the executable path, but the fixed per-readout GUIDs keep the tray promotion. If the shell rejects a GUID, the app falls back to per-path registration, which Windows ties to the executable path.

Development

make validate    # cargo fmt --check, clippy -D warnings, cargo test
make run         # run the tray app
make interfaces  # network interface diagnosis
make dump        # icon layout measurement + BMP dump, then a comparison sheet
make assets      # regenerate resources/app.ico and the MSIX tiles
make package     # build the installer and the MSIX into dist/

make package needs Inno Setup 6 and the Windows SDK (makeappx.exe). Without make, run the scripts directly:

pwsh -File packaging/windows/build-installer.ps1 -Exe target/release/tiny-tray-monitor.exe
pwsh -File packaging/windows/build-msix.ps1 -Exe target/release/tiny-tray-monitor.exe

Layout changes should be checked visually. make dump writes out/<theme>_px<size>_<metric>@16x.bmp and tools/icon_sheet.py joins them into one sheet per icon size.

License

MIT