Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
49 commits
Select commit Hold shift + click to select a range
e0b6717
Custom WinRust shell: blur, Start styles, notifications, file manager…
Nov 24, 2026
a43bb3d
open with: centre the dialog on the monitor under the cursor
Nov 24, 2026
796b214
context menu: replace the shell's Open with verb with our own picker
Nov 24, 2026
615433c
appid: one WinRust AppUserModelID so Task Manager groups every proces…
Nov 24, 2026
2da20a4
open with: Browse button (GetOpenFileNameW) and measurements in PERFO…
Nov 24, 2026
8428ebe
Merge upstream v0.5.8
Nov 24, 2026
b63d0cd
rs-shell: quote an unquoted Run path so cmd start does not stop at th…
Nov 24, 2026
011b493
context menu: frosted WinRust menu for files; bar: activate apps off …
Nov 24, 2026
44c668d
menu: double buffer and per-row invalidation (no flicker on hover)
Nov 24, 2026
7d785d4
bar: launch apps off the UI thread, no modal activation errors, locks…
Nov 24, 2026
a627a8f
docs: frosted context menu screenshot
Nov 24, 2026
ec6220a
open with: launch the handler directly (no shell picker), expand env …
Nov 24, 2026
1ae6e69
docs: open with screenshot; fix double-encoded Spanish lines
Nov 24, 2026
1901269
icons: fix R/B swap in the downscaler (Firefox, AMD and Explorer look…
Nov 24, 2026
38bbe2d
task manager: search box anchored to the right of the toolbar (no ove…
Nov 24, 2026
0d49c00
shell: pending tweaks before the push
Nov 24, 2026
2856f3d
rs-shot: screenshots, region overlay, annotation editor and WGC/ffmpe…
Nov 24, 2026
c001eff
bar: restart itself when closed (except while uninstalling)
Nov 24, 2026
10e251e
bar: pass the restart command with raw_arg (cmd was seeing a network …
Nov 24, 2026
728f886
rs-shot: clipboard by default, videos in Videos\Screen Records, unlim…
Nov 24, 2026
097ad45
rs-shot: pick the source and act at once (no Capture button)
Nov 24, 2026
9930aa3
i18n: rs-shot in every language from the central setting (100 Spanish…
Nov 24, 2026
2739a32
settings: single categorised hub (fixes the bar settings never openin…
Nov 24, 2026
ff64bd4
settings: one hub with per-component sections, four window-creation f…
Nov 24, 2026
d3a5f5a
settings: WinRust Settings hub opens on its own class (fixes the free…
Nov 24, 2026
dc1fb7d
settings: open on the bar's monitor with real focus; the bar was neve…
Nov 24, 2026
964cb24
settings: the hub is its own app (rust-settings); fixes the swallowed…
Nov 24, 2026
2d1ff95
rust-notepad, Win+R dialog and ms-settings router (ISO test pieces)
Nov 25, 2026
76ac5a0
rs-calc: calculator for the ISO (standard + scientific, CLI parser)
Nov 25, 2026
e52cb54
rs-clip: clipboard history (Win+V) and emoji picker (Win+.), started …
Nov 25, 2026
5279004
iso-vm: lightweight QEMU VM for the WinRust ISO test
Nov 25, 2026
b15b320
bar: dodge windows, full-screen maximized apps; Spanish keys; fix fly…
Nov 25, 2026
15b6efa
bar: per-monitor slide and edge reveal; dodge looks at every window, …
Nov 25, 2026
f6dc803
iso: research debloat/post-setup + WinRust injection for the modified…
Nov 25, 2026
233c7c9
iso: half-hardware autotest (3C/6T, 16 GB, NVMe) and guest benchmark
Nov 25, 2026
e38c760
explorer: run .exe/.bat directly, from their own folder
Nov 25, 2026
059eed2
explorer: the other association traps, and UAC in launch::program
Nov 25, 2026
64f1da3
apps: open on the monitor under the cursor; an icon per Start entry
Nov 25, 2026
f913fd2
icons: only .ico/.exe/.dll in the picker, like Windows' own Change icon
Nov 25, 2026
84c74ac
setup: install the three orphan payloads and do the shell step itself
Nov 25, 2026
e9a5bcb
common: place.rs keeps the crate's unsafe_op_in_unsafe_fn warnings out
Nov 25, 2026
9be259e
settings: the scroll limit no longer shrinks with the scroll
Nov 25, 2026
0c5915b
bar: choose the Start button icon; rs-shot's overlay does not dodge t…
Nov 25, 2026
c6db472
docs: new screenshots and a measured performance table
Nov 25, 2026
0f4f967
release: v0.5.10
Nov 25, 2026
c4fa320
settings: writable data folder and a reopen that shows the window; bi…
Nov 25, 2026
39d6abf
release: v0.5.11
Nov 25, 2026
67e1ff5
bar: a checkbox per monitor, applied without a restart
Nov 25, 2026
08c9c77
release: v0.5.12
Nov 25, 2026
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
23 changes: 17 additions & 6 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,7 +1,18 @@
# build output and local state
target/
/share
/ripgrep
/payload/*.exe
*.log
.claude/
CLAUDE.md
payload/
tools/state/
tools/*.zip
tools/*.log
*.orig.exe
*.v1.exe
*.v2.exe
es-chunks/
*.pdb
*.dSYM/

# editor / OS
.vscode/
.idea/
Thumbs.db
desktop.ini
67 changes: 66 additions & 1 deletion Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

9 changes: 8 additions & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "plugin-launcher"
version = "0.5.8"
version = "0.5.12"
edition = "2024"
license = "MIT OR Apache-2.0"

Expand Down Expand Up @@ -37,13 +37,20 @@ members = [
"plugins/topbar",
"plugins/rtaskmgr-win32",
"plugins/rs-du",
"plugins/rs-notify",
"plugins/rs-notify-bridge",
"plugins/rust-explorer",
"plugins/rs-shell",
"plugins/wiztree",
"plugins/photoview",
"plugins/rs-shot",
"plugins/rs-clip",
"plugins/debloat",
"plugins/purge",
"plugins/rust-settings",
"plugins/rs-calc",
"plugins/rust-notepad",
"plugins/rust-control",
"tools/winrust-sign",
]
# Stay separate projects with their own target\ and Cargo.lock, because they need panic = "unwind" (the profile below is
Expand Down
106 changes: 106 additions & 0 deletions FORK-CHANGES.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,106 @@
# Fork notes — WinRust custom shell

This fork builds on [Lemxy/WinRust](https://github.com/Lemxy/WinRust) and adds, on top of upstream:

## Shell look

- **Real blur behind the bar**: the strip just outside the bar is captured, blurred (three box passes) and painted as
the bar background with a tint; refresh every 400 ms `plugins/topbar/src/blur.rs`. Settings live in
`%ProgramData%\WinRust\look.txt` and are edited from the bar's settings window.
- **Real blur behind the context menu** (`plugins/rust-explorer/src/menu.rs`): a custom Win11-style menu replaces
`TrackPopupMenu`, with shell icons, shortcuts, ticks, one submenu level, rounded corners and live transparency.
- **Settings window with tabs** (`plugins/topbar/src/settingswin.rs`): replaces the long dropdown with a popup that has
a tab rail (Appearance, Start menu, Blur, Bar, Language), double-buffered, with the frost background.
- **Dodge windows** (the settings hub, Bar → Behavior, `%ProgramData%\WinRust\dodge.txt`): the bar reserves no work area,
hides while a window of its monitor reaches it and returns at that screen's edge; a maximized window takes the whole
screen. Independent of auto-hide. **Per monitor**: one slide per bar (`Slide`), the targets are computed from every
window of that monitor (not the focused one), and the edge of a screen only brings back its own bar (the pointer span
is checked, so a bar above/below another screen does not answer its edge). With dodge on, a fullscreen window is just
another window: the edge still reveals the bar over it. `style::reread()` makes a settings change skip the one-second
cache, and `fit_maximized` grows *and* trims already-maximized windows (they stay maximized).
- **Bar layout**: Windows button at the left end (Start), search / Task View can be hidden, the tray hugs the clock and
there is no hairline border.
- **Start menu, three styles** (`start7.rs`, `start10.rs`, `start11.rs` behind `startctx.rs`): Windows 7 (two columns,
pinned on top, places on the right), Windows 10 (alphabetical list + pinned tiles, independent hover) and Windows 11
(pinned grid + recommended). Position (centred / left) and size (90 / 100 / 115 %) are adjustable, the wheel scrolls
the list, and right-click on a pinned tile opens the app menu.
- **Windows icons instead of ours**: Explorer and Settings entries borrow `explorer.exe` / `SystemSettings.exe` icons
(`common::icon`, jumbo 256 px assets scaled down with an alpha-aware area average) in the bar, the Start menu and the
desktop icon list.
- **Custom icon per Start entry** (`common/src/starticons.rs`, `%ProgramData%\WinRust\icons.txt`): right-click an app in
the Start menu → *Choose icon…*, or pick a pinned app's row in Settings → Start menu → Icons. Any `.ico`, `.exe`, `.dll`
or picture is accepted; the entry key is the app's path, and the bar re-reads the file when its timestamp changes, so
the two processes need no IPC. The ✕ in Settings drops the override.
- **Programs open on the monitor under the cursor** (`common/src/place.rs`): a new window is moved to the cursor's
monitor after start, windowed (kept size, centred in the work area) or fullscreen (whole monitor, including a late
fullscreen switch, which is how a game's swap chain follows its window). Covers the Start menu and pinned tiles
(`.exe` by pid, `.lnk` by following the target process), the Run box, Settings, the task manager and `rust-explorer`
double clicks; our own windows (`rust-notepad`, `rust-explorer`, `photoview`, `wiztree`) are created there directly.

## Language

- **Spanish** (`common/es.tsv`, `Lang::Es`): English texts are the keys, missing entries fall back to English. The
language list, the `lang.txt` codes, plurals and number formatting know about `es`. `tools/i18n-check.ps1` reports
**0 errors** for the whole workspace; the texts of Notepad, Calculator, Clipboard, Run, the icons' descriptions and
the new bar setting are in the table too.
- **`plugins/topbar/src/fly.rs` encoding**: the file had been saved double-encoded (UTF-8 read as CP1252 and saved
again), so every Russian/Japanese/Chinese/Portuguese string and every curly quote in the network panel and the other
flyouts of that file showed mojibake. Converted back losslessly (1,266 Cyrillic and 1,026 CJK characters restored).

## File manager

- **This PC** as the default view (all drives), clickable "This PC" node, tabs moved to the title bar, **Recycle Bin /
Network / Removable devices** groups in the nav, and Quick Access entries that can be pinned, unpinned and reordered.
- **Deleting** now reports the failure (`%TEMP%\winrust-delete.log` with the HRESULT and the paths) and offers a
permanent delete when the Recycle Bin refuses (e.g. some volumes/drivers).

## Shell replacement

- `rs-shell` is the per-user shell (`HKCU\...\Winlogon\Shell`); the `rs-overlay` logon task is off, so `explorer.exe` is
never started as the shell. It starts the bar, the desktop, the Run keys and the Win+D / Win+E hotkeys, and falls back to
Explorer if the bar will not stay up.
- The Windows pieces WinRust replaces cannot start: `StartMenuExperienceHost`, `SearchApp`, `SearchUI`, `SearchHost`,
`Widgets`, `Cortana` and `ShellExperienceHost` (IFEO `cmd.exe /c exit`, the same mechanism as `taskmgr.exe`).
`explorer.exe` itself stays available: folders open in rust-explorer through `HKCU\Software\Classes\Directory|Folder\shell\open\command`,
and URL/Settings hand-offs keep working.
- Windows Search (`WSearch`) is disabled (`rs-search` replaces it); Edge is gone (phase 1).
- `tools\shell-phase2.ps1`: `-DryRun` / `-Apply` / `-Restore`, state in `tools\state\shell-phase2.backup.json`.

## Tooling

- `tools/explorer-edge.ps1`: freezes the stock Explorer (policies only, `Shell` untouched) and removes Microsoft Edge
with its own uninstaller, blocking reinstallation; `-DryRun` / `-Apply` / `-Restore`, every original value saved in
`tools/state/explorer-edge.backup.json`. WebView2 untouched.
- `tools/wallpaper-engine.md`: how Wallpaper Engine attaches to `Progman`/`WorkerW` and the plan to support it in a
custom shell (deferred).
- `PENDING.md`: what is done, what is paused and what is next.
- `plugins/rust-control`: a Control Panel in Rust (Category view as home, pages for System, Programs, Services, Devices,
Network, Users, Power, Date/Time, Accessibility, Security and admin tools).

## Build

Most crates build with the GNU toolchain:

```
cargo +stable-x86_64-pc-windows-gnu build --workspace --exclude plugin-launcher --release
```

`rtaskmgr-win32` must be built with MSVC (its GNU build fails to load with `0xC0000139`):

```
cargo +stable-x86_64-pc-windows-msvc build -p rtaskmgr-win32 --release
```

The auto-updater task (`WinRust-update`) is disabled when using these builds, otherwise it replaces them with the
official ones.

## Notifications

- **Pop-up toasts** (`plugins/topbar/src/notify.rs`): rounded, frosted with the menu capture (`menu-blur`/`menu-alpha`),
bottom right above the bar, at most three, slide + fade, hover pauses the auto-close, progress bar variant.
- **Any program can raise one** by writing a `winrust_common::notify::NotifyWire` to `\\.\pipe\winrust-notify`; the
`rs-notify` helper wraps that (`--app --title --body --icon --timeout --progress --id --action --cmd`).
- **Bell + notification centre**: an unread dot on the bell next to the clock, a 360x420 panel with the 50-entry history,
"Borrar todo" and click-to-reopen.
- `notify` and `notify-timeout` live in `look.txt` and are editable from the bar settings. Native Windows/UWP
notifications still depend on Explorer and are not captured (documented as phase 2).
111 changes: 111 additions & 0 deletions PENDING.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,111 @@
# WinRust (fork) — pending work

Everything done so far lives in this fork; this file tracks what is **not** done yet, so nothing gets lost.
Toolchain: mingw-w64 (GNU) for most crates, **MSVC** for `rtaskmgr-win32` (its GNU build fails to load with `0xC0000139`).

## 1. Wallpaper Engine (deferred — next phase)

Full report: `tools/wallpaper-engine.md` (mechanism, phases, snippets, risks, 24 sources).

- [ ] **Phase 1 (short term)**: launch WE through its CLI (`wallpaper64.exe -control openWallpaper -file <pkg> -playInWindow "<title>" -borderless`) and `SetParent` the window inside the `WorkerW` that `rust-explorer` already creates.
- Needs WE installed and running; no playlists inside the window.
- [ ] **Phase 2 (medium)**: rebuild the desktop as the classic topology (`Progman` + top-level `WorkerW` with `SHELLDLL_DefView`/`SysListView32` + host `WorkerW` below) behind a feature flag, so WE attaches by itself (playlists, profiles, pause rules).
- [ ] Rename/settle the desktop window title: `rs-desktop` breaks code that looks for `FindWindow("Progman", "Program Manager")`.
- Do **not**: mimic the raised desktop without DirectComposition (black screen) or inject into WE (`weshim`, anti-cheat/DRM risk).

## 2. Window frost (Mica) — paused

- [ ] `common::frost` works (capture + blur + tint) and is wired in `rust-explorer`, `rust-settings`, `rtaskmgr-win32`,
but it is **off by default** (`look.txt` → `win-blur=0`): on bright wallpapers the tint needed for readable text
makes the window look washed out.
- [ ] Decide: fixed ~70 % tint of a neutral colour, stronger blur, or real DWM acrylic per window.

## 3. In progress / to verify

- [ ] `rust-explorer`: default **This PC** view listing all drives (not only `C:`), clickable "This PC" nav node,
and tabs moved into the title bar (one row, no duplicated title).
- [ ] `common::icon`: jumbo (256 px) shell icons scaled down with quality; wired in bar, Start and the file list.
- [ ] `plugins/rust-control`: new Control Panel crate (Category view as the home page, Icon view toggle,
pages: System, Programs, Services, Devices, Network, Users, Power, Date/Time, Accessibility, Security, Admin tools).
- [ ] Bluetooth: `DeviceWatcher` (classic + LE) with live results — verify the controller appears while pairing.
- [x] Spanish entries added for every new `t!` key: `tools/i18n-check.ps1` reports **0 errors** (the 32 remaining
duplicate aliases are historical, only one of each pair is used). `plugins/topbar/src/fly.rs` was double-encoded
and has been converted back (RU/JA/ZH/PT and curly quotes in the flyouts).

## 4. Applied, do not undo

- **Phase 2 (shell replacement)**: `rs-shell.exe` is now this user's shell (HKCU Winlogon\Shell); the `rs-overlay` logon
task is disabled, so Explorer never starts at logon. IFEO blocks (`cmd.exe /c exit`) for StartMenuExperienceHost, SearchApp,
SearchUI, SearchHost, Widgets, Cortana and ShellExperienceHost; WSearch disabled. `explorer.exe` stays available for
hand-offs, and folders open in rust-explorer through HKCU Classes\Directory|Folder\shell\open\command.
Undo: `tools\shell-phase2.ps1 -Restore` (state in `tools\state\shell-phase2.backup.json`).
Pending: sign out/in once and confirm bar + desktop icons + Win+E + Start + tray come up.

- `WinRust-update` scheduled task is **disabled** (it would replace the custom binaries with the official ones).
- Explorer policies `NoDesktop`, `NoTrayContextMenu`, `NoViewContextMenu` and EdgeUpdate install blocks
(backup + revert: `tools/explorer-edge.ps1 -Restore`). Edge was uninstalled; WebView2 untouched.
- `AuthRestartShell`/`Winlogon\Shell` left as they were (`explorer.exe`) — WinRust relies on `rs-shell --overlay`.

## 5. Restore points

- `Antes de instalar WinRust` (before the shell replacement)
- `Antes de Explorer/Edge` (before the debloat script)

## 6. Icon quality (implemented, partial rollout)

- [x] `common::icon` (jumbo 256 → area-averaged downscale with alpha) wired in `topbar` (bar, Start rows/tiles, tray, menus)
and in the explorer's desktop icon list.
- [ ] The bar button of `rust-explorer` still shows its own logo on some setups: the pin's `.lnk` target does not always
resolve, so `sys_pin_icon` now also matches the shortcut's file name — verify after the next restart.
- [ ] `start7.rs` / `start10.rs` / `start11.rs` still call `DrawIconEx` directly (one line each to switch to `icon::draw`).
- [ ] `thumbs.rs` (alt-tab previews) still uses `icon_of`; switch it when DPI changes are handled.
## 7. File manager: icon grid and navigation (done)

- [x] The icon grid is the default view of every window (the toolbar button / Ctrl+M switch to the details list); cells are
48 px (half of the old 96) with 11 px labels, and wider in This PC.
- [x] This PC draws its own cells: the volume name, and under it the drive letter as a small tag plus "free of total".
The nav pane and the details list use the same letter tag instead of "Name (C:)".
- [x] The left pane scrolls with the wheel (three rows per notch, slim thumb on the right edge), also while the list holds
the focus.
- [x] "+" and Ctrl+T open a new tab on This PC.
- [ ] Screenshots + performance table for the README (`docs/screenshots`, metrics to be measured).

## 8. Notification centre (phase 2)

- [x] Phase 1 (this fork): `topbar` shows `rs-notify` / named-pipe toasts (`\\.\pipe\winrust-notify`), a 3-toast stack,
a bell with an unread dot and a 50-entry in-memory history panel; `notify` and `notify-timeout` live in
`look.txt`, with a switch in the bar settings.
- [ ] Phase 2: capture **native** Windows notifications (the ones Apps/UWP raise through Explorer's
`Windows.UI.Notifications` / `ToastNotificationManager`). They depend on Explorer being the shell and are **not**
captured in phase 1; this needs a toast listener/COM server or a hook into the notification platform, plus a
decision on the app identity to register under.
- [ ] Optional: persist the history in `%APPDATA%\WinRust\notifications.txt` (phase 1 keeps it in memory only).
- [ ] Phase 1 limits: one notification per pipe connection; the pipe thread reads one record and disconnects, so a
program that wants live progress must reopen the pipe (or keep a connection open in a later protocol version).
## 9. Translation audit (done) and what is left

- [x] `tools/i18n-check.ps1`: audits every `t!`/`tf!` call (languages, placeholders, `es.tsv` keys, duplicates).
- [x] `common/es.tsv`: 61 duplicates removed (last value kept, historical values restored for Settings/Disabled/Start/
Nothing here yet), malformed lines dropped, CRLF normalised, 26 missing entries added (installer, purge, tools,
notifications, bar menu). Checker: 0 malformed, 0 mismatched placeholders, 0 missing keys.
- [ ] `topbar` still has 65 calls without `ja`/`pt`/`zh` (44 in `settingswin.rs`, 16 in `start7.rs`, 3 in `start10.rs`) and
`rust-settings`/`common` a few more; fill them from the existing terminology.
- [ ] Portuguese is pt-BR in practice (`arquivo`, `tela`, `registro`); moving to pt-PT would be a full pass, not a fix.
- [ ] 18 remaining "duplicates" are case variants of distinct keys (`installed`/`Installed`); harmless, keep both or align
the source literals.

## 10. GitHub page

- [x] `README.md` in English with screenshots (`docs/screenshots`: bar, bar menu, Start, notifications, toasts, file
manager, This PC, Control Panel, Task Manager) and `docs/PERFORMANCE.md` with the measured numbers.
- [x] `tools/multimonitor-review.md`: multi-monitor review and phase plan (not implemented yet).
- [ ] PR upstream is intentionally on hold; the branch is committed locally only.
## 11. After the first shell-mode reboot (validated)

- [x] `rs-shell` started as the logon shell (no `explorer.exe` as shell), autostart ran (Rainmeter, Firefox, Serein), bar and
desktop came up. Only `/factory -Embedding` explorer hosts remain, which is normal.
- [x] Context menus clamp to the monitor they open on (secondary included) and toasts follow the pointer's monitor.
- [x] `rs-shell` shell mode now respawns `rust-explorer --desktop` if it dies (the overlay watcher already did this; shell
mode only watched the bar). Built and queued for the next boot through PendingFileRenameOperations, because the
running `rs-shell.exe` cannot be overwritten.
- [ ] Next reboot: confirm the new `rs-shell.exe` (desktop respawn) is in place; `Get-Item` date 24/11 10:18.
Loading