Skip to content

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

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

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

Conversation

@RexxColder

@RexxColder RexxColder commented Nov 24, 2026 •

Copy link
Copy Markdown

Fork of WinRust with a personalised shell, kept opt-in: the upstream defaults still work and everything is reversible.

The bar
One bar per monitor
Start
Context menu
Open with
Notification centre
Toasts
File manager
This PC
Control Panel
Task Manager

Highlights

  • Real blur behind the bar and the menus (screen capture + blur + tint), adjustable in the bar settings.
  • Start menu with Windows 7 / 10 / 11 styles, position and size; per-tile context menu.
  • Notifications: rs-notify + named pipe, frosted toasts with progress, a bell and a notification centre; rs-notify-bridge forwards native Windows toasts (Discord, Steam, Serein) into it.
  • File manager: tabs in the title bar, This PC icon grid with drive letter tags and free space, Quick access you can pin/reorder, Recycle Bin / Network / Removable devices groups, scrolling nav pane, our own frosted context menu, a centred "Open with" picker with Browse, and "Abrir" launches the registered handler directly (never the Windows picker).
  • Control Panel in Rust (plugins/rust-control): classic Category home, pages for system, programs, services, devices, network, users, power, date/time, accessibility, security, admin tools.
  • Spanish dictionary (common/es.tsv) with English keys and a fallback, plus the existing EN/RU/JA/PT/ZH UI; tools/i18n-check.ps1 audits it.
  • Multi-monitor: bar-monitor=all draws one bar per monitor; popups, context menus and toasts follow their monitor; common::monitors is the single source of truth.
  • Shell replacement in two reversible scripts (freeze Explorer/remove Edge; run rs-shell as the shell with the replaced components blocked). -Restore undoes both.
  • Every WinRust process shares one AppUserModelID so Task Manager groups them under "WinRust".

Measurements: docs/PERFORMANCE.md (~70 MB and ~1.6 % of one core for the whole shell; 29-97 ms to open the tools; 8.7 ms per notification).
Details: README.md, FORK-CHANGES.md, PENDING.md, tools/multimonitor-review.md, tools/notify-bridge.md.

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 16 commits November 24, 2026 21:32
Double clicking a program went through its association, and `"%1" %*`
(what .exe/.bat/.cmd are registered to) resolves to nothing: every exe
failed with "Could not start the program: %1". open_file now starts a
program file itself, with its folder as the working directory.

launch::program had the same working-directory bug: runas inherits the
caller's cwd, so Blur.exe from H:\Blur (started from the Run box) exited
at once. It now sets the program's folder for runas and ShellExecuteW.
An audit of this machine's registry found the same failure in three
classes, not only in .exe:

- six types point their command at themselves ("%1" %*): .bat .cmd .com
  .exe .pif .scr. .pif was missing from the program list and .scr lost
  its /S (it is "%1" /S, run it, not its settings box).
- 22 types put %* after the document (.msi .msc .vbs .js .msu .hta...).
  args_after filled %* with the path again, so msiexec got a second,
  bogus argument and mmc opened the console twice. %* now stays empty.
- 141 ProgIDs have no shell\open\command at all because a shell
  extension opens them (.lnk .cpl .iso, pictures). Those went to our
  picker; a .lnk now goes to the shell, and so does a type that
  AssocQueryString resolves to a real exe (never OpenWith.exe).

launch::program asked runas first even from a normal session, and a
restricted token cannot start a program whose manifest asks for
elevation: it exited with an error and nothing happened, with no UAC -
the installer that "does nothing". The shell now goes first unless
WinRust itself is elevated, and a failing runas falls back to it.
Windows puts a new window on the monitor of the last focused window (or
the primary), so an app started from a bar on the second screen opened
on the first. common::place watches the started process for a moment and
moves its window to the cursor's monitor: a windowed one keeps its size,
a fullscreen one takes the whole monitor, and a late fullscreen switch
(a game leaving windowed mode) is moved again. Only the window that was
placed is touched, never the app's dialogs.

The pid comes from ShellExecuteEx (SEE_MASK_NOCLOSEPROCESS) or from
CreateProcess; `runas` and `explorer.exe <shortcut>` do not report it,
so those are followed by process name. Our own windows are created on
that monitor instead: rust-notepad used SM_CXSCREEN and the other three
CW_USEDEFAULT.

Start entries can now carry a chosen icon (common/starticons.rs,
%ProgramData%\WinRust\icons.txt): right-click an app in Start or use the
Icons rows of Settings -> Start menu, which lists the pinned apps with a
reset button. Any .ico/.exe/.dll/picture is accepted; the bar re-reads
the file on timestamp change, so no IPC between the two processes.
Audit of payload.txt against the plugin table: rs-clip.exe (Win+V
helper), rust-control.exe (the hub's Control Panel page) and
rs-notify-bridge.exe were shipped but nobody copied them; they now ride
with rust-explorer, rust-settings and topbar and are in the updater's
targets.

The steps that still needed a script are in the installer: HKCU
Winlogon\Shell (saved once, restored on uninstall), the IFEO blocks for
Start/Search/Widgets/Cortana/ShellExperienceHost, the %ProgramData%
defaults (lang, autohide, dodge, look, handlers-enabled) and the removal
of the duplicate rs-overlay/topbar/reshell logon tasks. An update in
shell mode swaps rs-shell/rust-explorer/rs-clip/reshell aside instead of
killing them, so the session survives it.

The IFEO blocks need care: shell-phase2.ps1 (and installs from before
the journal) already set them to our own "cmd.exe /c exit", so recording
that as the original would write the block back on uninstall and leave
Start dead. Journal::reclaim_reg rewrites such an entry as "delete".

The updater's BASE points at the fork's releases (an upstream build has
neither rs-shell as the shell nor the fork's binaries), and
scripts\release-fork.ps1 builds a fork release without touching git.
The paint computed the maximum from the layout it had already scrolled,
so every step down lowered the ceiling and the page bounced back (240 ->
max 170, then 170 -> max 120): the wheel looked broken. The unscrolled
bottom is now bottom + scroll, which is what max_scroll() does too.

Also: the bell drew an unread dot but nothing called toggle_center(), so
the notification centre was unreachable; left click opens it, right
click opens Windows' notification settings.
…he bars

The button was only the grid drawn from the accent colour. look.txt's
new start-icon key points at an .ico/.exe/.dll, chosen from Settings ->
Start menu -> Start button (with a reset), and the bar draws it with the
same press animation.

rs-shot's region overlay covers the whole virtual screen and is topmost
by design, which made every bar think a window had reached its strip and
slide away in the middle of the screenshot. The dodge check now skips
windows of class rs-shot-overlay.
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.
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