Skip to content

Custom shell fork: blur, Start styles, notifications, file manager, Control Panel, Spanish, multi-monitor - #164

Open
RexxColder wants to merge 73 commits into
Lemxy:mainfrom
RexxColder:fork
Open

RexxColder wants to merge 73 commits into
Lemxy:mainfrom
RexxColder:fork

Conversation

@RexxColder

@RexxColder RexxColder commented Nov 24, 2026 •

Copy link
Copy Markdown

A custom shell for Windows 11: bar, desktop, Start, file manager, Control Panel

This PR turns WinRust into a complete, self-contained shell. Everything below is one rust workspace: the bar
(topbar), the desktop and file manager (rust-explorer), the supervisor (rs-shell), the settings hub
(rust-settings), notifications, clipboard, screenshots, the Control Panel, Task Manager, calculator, notepad and search.
The installer (plugin-launcher) embeds all of them in a single WinRust.exe.

Screenshots

The bar, per monitor

One screen Two screens
The bar Two bars

A bar per monitor, chosen with a checkbox per screen in Settings (bar-monitors=0,1); it appears/disappears immediately.
The Windows taskbar is replaced, not just hidden: windows, tray, clock, quick settings and the power buttons live here.

Start menu, three styles

Windows 11 style Windows 10 style Windows 7 style
Windows 11 style Windows 10 style Windows 7 style

Pinned apps, independent hover per column, wheel scrolling, right-click on an entry (open, run as administrator,
choose icon, uninstall, pin), adjustable position (left/centred) and size (90/100/115 %).

Menus, notifications

Bar menu Context menu Notification centre Toasts
Bar menu Context menu Notifications Toasts

Menus and panels are ours (frosted, rounded, icons, shortcuts), not TrackPopupMenu. Any program can raise a toast
through \\.\pipe\winrust-notify or the rs-notify helper; the bell opens the history.

File manager, Control Panel, Task Manager

File manager This PC Control Panel Task Manager
File manager This PC Control Panel Task Manager

Tabs, This PC with every drive and its free space, grid/list views, Quick access that can be pinned and reordered, our
own copy engine, ZIP, "Open with" picker, a Recycle Bin view with Restore / Delete permanently / Empty (both
destructive actions ask first), and .url/.lnk shortcuts that follow their target (Steam's desktop icons run their
steam:// URL instead of failing).

Calculator, screenshots

Calculator rs-shot editor
Calculator rs-shot

rs-calc (standard/scientific, history, memory, rs-calc "2+2*3" from the CLI) and rs-shot: region/full/window
capture, an editor with arrows, text, highlighter, step numbers and blur, and recording to WGC or ffmpeg.
PrintScreen, Win+Shift+S and Win+Alt+R open it.

What the shell adds

  • Real blur behind the bar, menus and panels (captured, box-blurred, tinted), not translucency.
  • A bar per monitor, per-monitor DPI, flyouts and toasts anchored to their screen, "dodge windows" (the bar slides
    away when a window reaches it and returns at the screen edge; a maximized window keeps the whole screen).
  • Programs open on the monitor under the cursor, windowed or fullscreen, including a late fullscreen switch.
  • Start menu in three styles, per-entry icons and a chosen icon for the Start button.
  • Spanish across the shell (English is the key in common/es.tsv, missing entries fall back), next to the existing
    EN/RU/JA/PT/ZH UI.
  • The taskbar is replaced, not overlaid: rs-shell is the logon shell, it starts the bar and the desktop and keeps
    them alive (bar back in ~5 s, desktop in ~2 s after a kill).
  • RIght-click the taskbar for Restart / Shut down, quick settings (volume, brightness, network, night light, project),
    a clipboard helper (rs-clip, Win+V), screenshots (rs-shot, PrintScreen / Win+Shift+S) and the Run box.

The apps

Program What it is Size
topbar.exe the bar: windows, tray, clock, quick settings, Start menu 1.06 MB
rust-explorer.exe desktop + tabbed file manager (copy, ZIP, thumbnails) 1.25 MB
rs-shell.exe the logon shell: starts and watches the bar, desktop, clipboard and hotkeys 0.44 MB
rust-settings.exe the settings hub (look, bar, desk, Start, language, apps) + system pages 0.98 MB
rust-control.exe Control Panel: system, programs, services, devices, network, users, power… 0.73 MB
rtaskmgr-win32.exe Task Manager with history, rules, startup and performance pages 1.15 MB
rs-shot.exe screenshots and recording (region, window, monitor, editor) 0.69 MB
rs-calc.exe calculator (standard/scientific, history, CLI rs-calc "2+2*3") 0.48 MB
rust-notepad.exe notepad (UTF-8/16 detection, find, drop files) 0.43 MB
rs.exe NTFS search over the MFT (used by the Start menu and Alt+Space) 0.50 MB
photoview.exe photo viewer (arrows, EXIF rotation) 0.41 MB
wiztree.exe disk usage treemap 0.50 MB
rs-clip.exe clipboard history helper (Win+V) 0.50 MB
rs-notify.exe toast helper (pipe client) 0.24 MB
debloat.exe, purge.exe optional, reversible tweaks / permanent app removal —

All of them are --release builds; the installer with every plugin embedded is 13.5 MB.

Performance (this machine: Ryzen 5 5500, 32 GB, two displays)

Process RAM (idle) CPU (idle, 1 core)
Bar (topbar) 49.8 MB 3.00 %
Desktop (rust-explorer --desktop) 30.2 MB 0.00 %
Supervisor (rs-shell) 8.0 MB 0.00 %
Clipboard (rs-clip) 7.4 MB 0.00 %
Hotkeys (reshell) 6.5 MB 0.00 %
Whole shell 101.9 MB 3.00 %

The bar's 3 % is the live blur; bar-blur=0 drops it to ~0 %. Opening: rs-calc 17 ms, Task Manager 29 ms, Control
Panel 29 ms, notepad 30 ms, a new file-manager window 77 ms, Settings 136 ms. rs-notify to toast: 9 ms. Full method
and every row: docs/PERFORMANCE.md, reproduced by scripts/metrics.ps1.

Testing

  • cargo test across the workspace (journal, installer rollback, associations/%*, URL shortcuts, monitor placement,
    manifest signing, Spanish literals).
  • Live on the author's machine: the bar, desktop, file manager, Settings, Control Panel, Task Manager, notifications,
    screenshots and the installer (update all, 10 components, no warnings in install.log).

RexxColder added 30 commits November 24, 2026 14:31
…, Control Panel, Spanish, Explorer replacement
# Conflicts:
#	.gitignore
#	README.md
#	plugins/topbar/src/main.rs
…ze and the WM_NCCREATE abort); Spanish keys
RexxColder added 30 commits November 25, 2026 16:30
The 11 screenshots are new captures of this session (window-level, no
full-screen grabs) and docs/PERFORMANCE.md is now generated by
scripts\metrics.ps1: binaries, idle RAM/CPU of the shell, window-visible
time of every app, flyout latency from a real click, notification
latency, MFT search, supervisor recovery and the installer size, each
with its method.

tools\\WinShot.cs + tools\\shots.ps1 take one screenshot per step so the
images can be checked before landing in docs.
…n menu

WinRust Settings runs unelevated and the settings live in
%ProgramData%\WinRust, whose files the elevated install created with
Users: (RX): every change failed silently and the bar kept showing the
old value. The installer now grants Users modify on that folder (by SID,
same on every language), and the empty/delete confirmations work for a
non-admin user too.

Closing Settings only hides it; a second launch posted the page message
to that hidden window and never showed it, so the Start entry looked
dead. The page message now shows and focuses it.

Recycle Bin: right-click on the sidebar row opens a small menu (Open /
Empty, which confirms); the row menu gains Delete permanently next to
Restore, and both delete and empty ask before touching anything. Rows
show the file name (the original path travels in Row::path, so Restore
still knows where to put it) and the tab says "Recycle Bin" instead of
the raw CLSID.
The bar could only live on one monitor (bar-monitor: -1 = all, or one
index), changed only at start-up, and a single value was all the
settings window could express: checking "Monitor 1" left the other
screen without a bar with no way to have both. look.txt now carries
bar-monitors=0,1 (absent = the old key, which is still read), the
settings window lists one checkbox per detected monitor (the primary is
marked), and relook() calls bars_sync() so checking or unchecking
creates or closes that screen's bar immediately.

The shell never ends up without a bar: an empty list falls back to the
primary, and unchecking the last one is refused. When the primary is not
selected the first remaining bar becomes the leader (tray, hooks,
shortcuts), which bars_sync used to assume was the primary.
Steam's desktop icons are Internet Shortcuts (`URL=steam://rungameid/…`)
and `.url` is registered to `rundll32 ieframe.dll,OpenURL <file>`.
ieframe's OpenURL takes a URL, so handed the file it failed with "the
destination '' is not valid" (and could end in Windows' Open-with
picker). open_file now reads the URL= line (UTF-16 included) and starts
the URL with the shell, so the protocol handler runs: the shortcut opens
the game.
…ream Lemxy#143)

Ported from upstream 9f6bad5: a games or data drive nobody indexed yet
has no USN journal and the search gave up on it. Made with Windows' own
default size (32 MB, 8 MB deltas); nothing else on the drive changes.
…t (upstream Lemxy#178)

Ported from upstream b0d86ba: WinRust now appears in Settings ->
Installed apps (ARP values, uninstall = `WinRust.exe rollback --yes`)
and the entry goes when everything is rolled back. The autoupdate log
used `{e}` inside a translated string, which the Spanish path formats
positionally: the log read "ERROR {e}" instead of the curl error. Same
for the CLI's fatal error line.
…lone Win no longer opens Windows' Start

Ported from upstream ca8db36 (Lemxy#168) and 7a02534 (Lemxy#182):

- rust-explorer's windows belong to the File Explorer pin when there is
  one: that pin is what the user clicks to open Explorer here, and only
  explorer.exe matched it, so its button never showed them (a minimized
  window looked gone and clicking started a second one).
- A lone Win release opened Windows' own Start on top of ours: the E8
  sent from the hook was queued behind the release, so the shell
  sometimes saw no other key. The release is swallowed now and the shell
  gets an E8 plus a synthetic Win-up.
Ported from upstream fb39ecd: closing the window used to leave it in
the tray with no warning (to_tray defaulted to on), so "close" never
closed. Now the first close asks "keep it in the tray when the window
closes?" (Yes / No / Cancel), stores the answer (tray_asked) and the old
behaviour is one click away in the tray menu; the default is quit, like
the stock Task Manager.
…gets no button (upstream Lemxy#163)

Ported from upstream 09ef3d0 (Lemxy#163 by @Tkyoxx): ITaskbarList::HrInit reads the task band from a "TaskbandHWND"
property of the first Shell_TrayWnd, which is ours, so HrInit failed (E_NOTIMPL) for every app while the bar ran. The
host window now carries that property, and DeleteTab / AddTab (HSHELL_WINDOWDESTROYED / CREATED) add the window to a
skip list the button collector honours: an app that hides its own taskbar button (Tauri, some launchers) now really
loses it, and AddTab gives it back. Closed windows are forgotten.
The blur cache was a single slot: painting the second monitor's bar
threw the first one's capture away, so with two bars every paint
recaptured the strip and ran three box passes over the full width (the
3 % of one core the bar showed while idle). The cache is now keyed by
bar (up to four entries), and the capture is done at half resolution
(StretchBlt down, StretchDIBits back up): a blur throws the detail away
anyway, so the result looks the same with 4x fewer pixels to process and
4x less memory per capture. The dead per-pixel sum in the capture path
is gone too.

Measured on this machine with both bars visible, 10 s idle: 1.88 % -> 0.63 % of one core, bar RAM 49.8 -> 32.4 MB.
…cached drives, cancellable copy/restore

Wallpaper Engine: expose the Progman/SHELLDLL_DefView/WorkerW hierarchy WE looks for, one wallpaper host per monitor, we/we-span keys and a Settings toggle (we=1). The bridge opens a pop-out per monitor and reparents it under the icon list.

Marquee: the opaque shell rectangle is replaced by our own translucent white wash with a crisp frame, a child of the desktop for the icons and of the file window for its list, so it never paints over other apps. The list selection is whitish too.

Drives: enumerated on a worker with a 3 s deadline and cached; a stale USB letter (E:) used to block GetDriveTypeW/GetDiskFreeSpaceExW in WM_CREATE and the window never appeared. Nav, This PC and the Recycle Bin read the cache. Fixes the freeze that also hit the task manager.

Copy: 1 MB chunks, Esc cancels between chunks, a 45 s no-progress watchdog aborts a dead destination, and CancelSynchronousIo breaks a blocked write. Restore: one at a time, 20 s rename watchdog, refuses a missing drive with a visible reason, copy+delete fallback across volumes.

Windows: 87 % opacity (look.txt window-opacity, Settings row) for Explorer, Settings and Control Panel.
…ng drive

The \ metadata stores its path length including the terminating NUL, so the PathBuf we built ended in a NUL and every Win32 call (fs::rename) failed: Restore never worked. Trim it, with a test. The failure reason is now shown inline after the counts instead of a second status line nobody saw.

Copy/paste: one restore at a time, a 20 s rename watchdog, a copy 45 s no-progress watchdog and CancelSynchronousIo on the job thread (registered before walk/free_name), and paste/load check drives::holds first: a removed USB letter hangs inside the volume driver, with no job to cancel, which is what froze Ctrl+V to E: and opening a folder on it.

Paint: the drive type comes from the cache, not GetDriveTypeW per row repaint.

rtaskmgr: window titles/hung windows use SendMessageTimeoutW(WM_GETTEXT, 100 ms, ABORTIFHUNG) instead of GetWindowTextW, so a hung Explorer window no longer freezes the task manager refresh.

docs/IO-HANG-AUDIT.md: 37 findings, good patterns and the top 10 fixes.
…nd icons refresh when the Desktop changes

The colour-keyed icon list drew white labels with the themed glow on a live wallpaper: on light wallpapers the text was a smeared white blob. The desktop icons are painted by hand now (white text over a 1 px black shadow, a plain dark pill for the selection), and the shadow style is off.

A ReadDirectoryChangesW per Desktop folder (user + public) posts WM_DESK_CHANGED; a 250 ms timer coalesces the burst and reloads the icons, so a file saved, renamed or deleted by any app appears at once (verified: 4 -> 5 -> 4 icons without restarting).
…tings

rs-metrics: a borderless per-pixel-alpha card (CPU, GPU, RAM, disks, disk I/O, network, temperatures, uptime; bar/ring/text styles) that attaches to the WinRust desktop as a child of Progman, under the icon list, draggable, config in %ProgramData%\WinRust\metrics.txt re-read every second, context menu per module, topmost=0/1. ~0.1 % of a core and ~8.6 MB private with every module on; GPU and temperatures are best-effort (PDH). rs-shell starts it at sign-in; the updater and payload include it.

Settings: a Widgets category (first widget plus room for more) with a show/hide toggle (start/stop), one switch per module, always-on-top, open metrics.txt and restart. The running state looks under Progman for the child window, not only at top level.
enabled=1/0 in metrics.txt hides or shows the window without killing the process (instant, survives a sign-in); the sampler stays warm. The Widgets page reads/writes it as the first of a list of widgets, each with its own switch. README mentions the widget and the hand-painted desktop labels.
…es a hidden-files eye

The tab now starts with a glyph for what it points at (monitor for This PC, bin for the Recycle Bin, drive for a root, folder otherwise), cheap and shell-free so a dead path cannot stall a paint. The fifth command button is an eye that toggles the Ctrl+H hidden-files switch and stays accent-coloured while on; delete remains on Del and the context menu. Verified in C:\\: 9 items -> 18 -> 9.
… temperatures

Modules are separate rounded pills with a gap, reorderable by dragging (order=...), and each one can be detached into its own child-of-the-desktop window (detached-*, x-*, y-*) and re-attached from its menu.

Temperatures per component with labels: GPU by AMD ADL (RX 580 reads 54 C; NVML kept for NVIDIA), disks by SMART (C: 40 C), CPU/motherboard by LibreHardwareMonitor WMI when it runs, and the ACPI zone as a separate opt-in row (temp-acpi=0) never labelled CPU. All on a low-priority thread with cache. Also fixed GetProcAddress being called with a non-NUL-terminated string, which broke both ADL and NVML.

Frost: opacity 40..255 (185 default), blur=1 samples a downscaled wallpaper.bmp per pill with cached generation; blur=0 is a flat translucent fill. 0.05 % of a core and 10 MB private with everything on.
…reshed

The widget had a payload entry and the updater target, but not an installer plugin: adding it cost one list row, so ROW_H goes 34 -> 32 to keep the 756 px window inside a 768p screen. docs/PERFORMANCE.md regenerated: the shell idles at 107.4 MB and 0.00 % of one core (bar blur: one half-resolution capture per monitor), Start 32.6 ms, bar menu 33.2 ms, notification centre 28.4 ms.
… switches; bin icons from the payload; widget off by default

Desktop: the icon list covers the whole virtual desktop, so icons can be dragged to any monitor; the last column is aligned to the right edge with a small margin (a cell-sized hole used to sit between the icon and the real margin), and a fresh layout puts This PC in the first cell and the Recycle Bin in the last column. Both are real icons of their own with a switch each in Ajustes -> Escritorio (look.txt desk-thispc / desk-bin) and glyphs matching the sidebar; a settings change reloads the desktop through the style broadcast.

Recycle Bin: icons and thumbnails come from the \ payload (the original path no longer exists), so a .lnk keeps its app's icon, and a recycled folder is a folder; the Type column only calls a path a drive when it is a root.

rs-metrics: off by default (config, Settings and rs-shell skip it until enabled; metrics.txt enabled=0), and destroy_all clones the window list before DestroyWindow: holding WINDOWS across WM_DESTROY deadlocked the UI thread, which is what froze the desktop when closing the widget with a module detached.

Docs/screenshots: desktop with the icons and widget, the marquee, the widget and the Desktop/Widgets pages.
… desktop timings and close the roadmap

widget-metrics.jpg now shows the real card (per-module pills, GPU 54 C, C: 40 C); recycle-bin.png shows the bin rows with their payload icons; PERFORMANCE.md gets the rs-metrics numbers and a note on the desktop watcher/drive cache; the roadmap section lists what is done (multi-monitor, notifications, Wallpaper Engine).
Weather and local news next to Start: Windows location with an IP fallback, Open-Meteo, three Google News RSS sections, a flyout with the 3-day forecast, Ajustes -> Barra and weather.txt. Copy/move/zip toasts now carry bytes, speed, ETA and read/write rates; the arrow opens a 30 s sparkline and the pin keeps the card until the job ends. Our own Properties sheet (files, folders, disks and Recycle Bin items) replaces the shell verb that needs Explorer. Docs: new screenshots and timings.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant