Repository navigation
Custom shell fork: blur, Start styles, notifications, file manager, Control Panel, Spanish, multi-monitor - #164
Open
RexxColder wants to merge 73 commits into
Open
RexxColder wants to merge 73 commits into
RexxColder wants to merge 73 commits into
Conversation
added 30 commits
November 24, 2026 14:31
…, Control Panel, Spanish, Explorer replacement
# Conflicts: # .gitignore # README.md # plugins/topbar/src/main.rs
…vars, keep the dialog open on errors
…rlap at small widths)
…g recording, wired to PrintScreen
…ited recording, WASAPI audio
…g); central language; async delete
…ze and the WM_NCCREATE abort); Spanish keys
… input (WM_MOUSELEAVE binding)
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.
…ures in the README
…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.
…ead device at startup
…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.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
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
rustworkspace: 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 singleWinRust.exe.Screenshots
The bar, per monitor
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
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
Menus and panels are ours (frosted, rounded, icons, shortcuts), not
TrackPopupMenu. Any program can raise a toastthrough
\\.\pipe\winrust-notifyor thers-notifyhelper; the bell opens the history.File manager, 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/.lnkshortcuts that follow their target (Steam's desktop icons run theirsteam://URL instead of failing).Calculator, screenshots
rs-calc(standard/scientific, history, memory,rs-calc "2+2*3"from the CLI) andrs-shot: region/full/windowcapture, 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
away when a window reaches it and returns at the screen edge; a maximized window keeps the whole screen).
common/es.tsv, missing entries fall back), next to the existingEN/RU/JA/PT/ZH UI.
rs-shellis the logon shell, it starts the bar and the desktop and keepsthem alive (bar back in ~5 s, desktop in ~2 s after a kill).
a clipboard helper (
rs-clip, Win+V), screenshots (rs-shot, PrintScreen / Win+Shift+S) and the Run box.The apps
topbar.exerust-explorer.exers-shell.exerust-settings.exerust-control.exertaskmgr-win32.exers-shot.exers-calc.exers-calc "2+2*3")rust-notepad.exers.exephotoview.exewiztree.exers-clip.exers-notify.exedebloat.exe,purge.exeAll of them are
--releasebuilds; the installer with every plugin embedded is 13.5 MB.Performance (this machine: Ryzen 5 5500, 32 GB, two displays)
topbar)rust-explorer --desktop)rs-shell)rs-clip)reshell)The bar's 3 % is the live blur;
bar-blur=0drops it to ~0 %. Opening:rs-calc17 ms, Task Manager 29 ms, ControlPanel 29 ms, notepad 30 ms, a new file-manager window 77 ms, Settings 136 ms.
rs-notifyto toast: 9 ms. Full methodand every row:
docs/PERFORMANCE.md, reproduced byscripts/metrics.ps1.Testing
cargo testacross the workspace (journal, installer rollback, associations/%*, URL shortcuts, monitor placement,manifest signing, Spanish literals).
screenshots and the installer (
update all, 10 components, no warnings ininstall.log).