RepositoryRust
GodrezJr2

GodrezJr2/MacDock

A macOS-style dock and menu bar for Windows 11, written from scratch in Rust on plain Win32

112stars
12forks
5issues
1views

Featured achievements

The project's latest awards

1
TINIX TRENDING·Topic: dock

#1 Repository of the week

1
TINIX TRENDING·Topic: win32

#1 Repository of the week

2
TINIX TRENDING·Topic: windows-11

#2 Repository of the week

MacDock

A macOS-style dock and menu bar for Windows 11. Written from scratch in Rust on plain Win32. No Windhawk, no Explorer patching.

MacDock running on Windows 11: the dock magnifies under the pointer, a window minimizes into its icon with the genie effect, then the battery and Control Center flyouts open from the menu bar

Every shot is a frame of one screen recording on a Windows 11 laptop. Full quality: docs/macdock.mp4


Windows 11 Rust Win32 License: MIT


Before and after

Same laptop, same wallpaper, a minute apart.

Stock Windows 11 desktop with the default taskbarThe same desktop with MacDock: menu bar on top, desktop widgets at the top right, Liquid Glass dock at the bottom
Windows 11, stock taskbarMacDock: menu bar, desktop widgets, Liquid Glass dock

New in this round

Apps windowmacOS 26's replacement for Launchpad: a Liquid Glass window with a search field that has the typing at once, category chips, recent apps and every installed app. The Apps icon in the dock or the menu bar opens it; the full-screen Launchpad is still there in Settings
SpotlightThe menu bar's magnifier or Alt+Space: a glass capsule that grows into results as you type, apps first, then a web search
Settings windowA floating Mac-style window with traffic lights for every option, animation speeds included, in English or Indonesian
Liquid Glass dockThe plate shows the real windows behind it (live capture), bent at the rim like macOS 26, not a blurred wallpaper copy
Alt+Tab like Cmd+TabOne icon per app, most recent first, on a dark frosted panel. A quick tap flips to the previous app without the panel
Drop files, widgets, recentsFiles dropped on an app icon open in it, on the Trash they are recycled; desktop widgets; the last 3 apps and a Downloads stack by the Trash
The Alt+Tab switcher: Terminal, Task Manager, Discord (selected), File Explorer and Chrome on a dark frosted panel

What you get

The dock

The Liquid Glass dock: pinned apps, unread badges on Chrome and Discord, recent apps after a divider, and the Trash
  • Magnification that follows the pointer (cosine falloff, smoothed per frame)
  • Genie minimize into the app's icon, and back out on restore
  • Launch bounce, and an attention bounce when an app flashes for you
  • Running dots, hover labels and red unread badges
  • Drag to reorder, drag out to remove, right-click for windows, Keep in Dock, Show in Explorer and Quit
  • Auto-hide, and icons shrink once the dock reaches the screen edges
  • Icons sit on macOS-style squircle tiles; right-click → Change Icon… picks your own image
  • Drop files on an app icon to open them with it, or on the Trash to recycle them
  • Recent apps (the last 3 you quit) after a divider, and a Downloads stack next to the Trash

The genie

A Visual Studio Code window bending into its dock icon mid-minimize

The window you minimize is snapshotted and drawn as a 48-row mesh by MacDock's own scanline rasterizer (bilinear, anti-aliased edges, rows split across threads), then squeezed and poured into its icon. Restore from the dock plays it backwards. Windows' own minimize animation is switched off while MacDock runs and comes back when it quits.

Battery, with real numbers

Battery flyout: 7 percent, 55 W total draw measured at the battery, split into CPU 12 W, GPU off and rest 43 W

Charge, time left, wear and cycles, plus where the power goes: CPU package power from Windows' energy meter (RAPL, no admin), NVIDIA GPU power from NVML, and the rest. On battery the total is measured; on the adapter it is estimated from a "rest" value MacDock learns while you are unplugged.

Control Center

Control Center flyout with Wi-Fi, Bluetooth, Dark Mode, Power Mode, display brightness and volume

Wi-Fi and Bluetooth radios, Dark Mode, Windows power mode, brightness and volume, plus now-playing media. Next to it: a Wi-Fi menu that scans and joins networks, and a ^ item that hosts your notification-area icons (Discord, Steam, …).

The menu bar

  • The app in front, in bold, with File / Edit / View / Window / Help menus that send the real shortcuts (Ctrl+S, Ctrl+Z, …) to that app
  • System menu with Automatically Hide Dock, Quit MacDock and Check for MacDock Updates…. MacDock asks GitHub for the latest release at start and every 6 hours (only api.github.com, nothing is downloaded by itself); when a newer one is out, a blue dot sits on the logo and the menu shows Update Available, which opens the release page
  • Battery, Wi-Fi, Spotlight search, Control Center and the clock, which drops a calendar (month view, arrows or the wheel step months, rows for the notification center and date & time settings)
  • AI usage for Claude Code and Codex: a ring with the limit closest to running out and the live burn rate in tok/s. Its flyout shows tok/s over 5 and 30 minutes, the last 24 hours, each limit with the points used per 5 / 30 minutes, when the current pace would hit it, and every session that burned tokens in the last 30 minutes (title, project, model, branch, its own tok/s). Read from the agents' local logs (~/.claude/projects, ~/.codex/sessions); by default nothing is sent anywhere. Codex reports its own limits. Claude Code logs none: turn on ClaudeUsageOAuth to read its real 5-hour and weekly limits from Anthropic with Claude Code's own login (every 2 minutes, only to api.anthropic.com; MacDock never refreshes the token), or set ClaudeLimit5h for an estimate from local tokens.

Alt+Tab, the macOS way

  • Hold Alt and press Tab (Shift+Tab or the arrow keys go back), release Alt to switch. One icon per app, not per window, most recently used first, with the app's name under the selection
  • Esc cancels, Q quits the selected app, H minimizes it; the mouse selects on hover and switches on click
  • A quick tap switches to the previous app without ever showing the panel
  • Runs on its own thread with a low-level keyboard hook, so the dock never makes it lag. Turn it off with "AppSwitcher": false to get the Windows switcher back

Desktop widgets

Desktop widgets: analog clock, Saturday 21 November, battery ring at 53% charging, CPU memory and disk bars, under the menu bar
  • Four small macOS-style widgets at the top right of the desktop: an analog clock, today's date, a battery ring and CPU / memory / disk bars, on frosted Liquid Glass made from your wallpaper
  • They live under every window, like on macOS; a click opens Clock, Calendar, battery settings or Task Manager
  • Redrawn every 5 seconds, and only when a value on them changed

It stays out of the way

  • Dock and menu bar are real AppBars: maximized windows stop at them.
  • A fullscreen game hides both, puts the render loop to sleep and removes the mouse hook. On the author's laptop that measured 0.00% CPU and a 17 MB working set while a game was in front.
  • Idle on the desktop: about 0.4% of one core (4 ms CPU per second) and about 80 MB private memory. Most of that memory is the one Direct3D device the live Liquid Glass and the GPU genie share (the Intel iGPU driver alone reserves ~50 MB for it); the 13 MB of earlier versions had no live glass. Nothing redraws unless something is moving (see Rust vs the old C# build).

Install

Download: grab macdock.exe from the latest release and run it. Windows 11 only, nothing else to install. Each release is built by GitHub Actions from its tag.

Build from source: you need Windows 11 and Rust. Follow these steps in order:

  1. Install Rust from rustup.rs (run rustup-init.exe, accept the defaults).
  2. Switch to the GNU toolchain, so you don't need Visual Studio Build Tools:
    rustup default stable-x86_64-pc-windows-gnu
    
  3. Open a new terminal, then build and run:
    git clone https://github.com/GodrezJr2/MacDock.git
    cd MacDock
    cargo build --release
    .\target\release\macdock.exe
    

The first build takes a few minutes because it compiles the dependencies.

The result is one ~1 MB exe with no runtime to install; copy it wherever you like.

MacDock hides the Windows taskbar while it runs and restores it when you quit.

  • Quit: Windows logo in the menu bar → Quit MacDock
  • If it was killed and the taskbar is still hidden: macdock.exe --restore
  • Start with Windows: Windows logo in the menu bar → Open MacDock at Login

Configure

Settings live in %APPDATA%\MacDock\config.json, created on first run.

KeyDefaultWhat it does
PinnedExplorer, Apps, Chrome, Outlook, Terminal, VS Code, Discord, SettingsDock items: shell:AppsFolder\<AppID>, a .lnk, an .exe, or macdock:apps for the Apps item
LaunchpadStyle"apps"What the Apps icon opens: "apps" (the macOS 26 Apps window) or "classic" (full-screen Launchpad)
IconSize52Icon size at rest, in pixels
Magnify1.75Size of the icon under the pointer, relative to rest
AutoHidefalseSlide the dock away until the pointer touches the bottom edge
GenietrueGenie minimize and restore
IconTilestruePut every icon on a squircle tile
BadgestrueRed unread badges
MenuBartrueShow the menu bar
TrayIconstrueHost notification-area icons behind the ^ item
HideTaskbartrueHide the Windows taskbar while MacDock runs
DesktopWidgetstrueClock, date, battery and system widgets on the desktop
DownloadsStacktrueDownloads folder item next to the Trash
DownloadsFolderyour DownloadsFolder the stack lists, if it is not the Windows Downloads folder
ShowRecentstrueThe last 3 apps you quit, after a divider
AppSwitchertruemacOS-style Alt+Tab (off = the Windows switcher)
IconOverrides{}Item → image or exe used as its icon (set with right-click → Change Icon…)
AiUsagetrueClaude Code / Codex usage item in the menu bar (shown once either has logs)
ClaudeUsageOAuthfalseRead Claude's real 5-hour / weekly limits from api.anthropic.com/api/oauth/usage with the login in ~/.claude/.credentials.json
ClaudeLimit5hnullTokens per 5-hour Claude block that count as 100% (input + cache writes + output)

A crash writes %APPDATA%\MacDock\panic.log and still puts the taskbar back.

How it works

Liquid Glass without a blur API

Windows ignores window regions for layered windows, so accent blur behind a rounded plate showed up as a black or grey square. MacDock draws the glass itself: the windows under the plate are captured live with Windows Graphics Capture (one capture per window, wallpaper where there is none), and the plate shows them nearly sharp, bent inward near the rim like a lens, with a light edge on top. Captures repaint at most 30 times a second, so a video playing behind the dock costs about 0.1 s of CPU per second.

A genie with no flash

For a title-bar minimize, a low-level mouse hook (on its own thread) sees the press on the minimize button and MacDock pre-draws the first frame from a fresh snapshot; on release the overlay is shown from the hook itself, so the animation is already up when the window disappears. Only the mesh's bounding box is redrawn and pushed to the screen each frame. Snapshots are shrunk off the UI thread and saved to disk, so windows minimized before a restart still animate on restore.

Unread badges

The taskbar keeps app badges to itself, so the count is the larger of a (N) prefix in the window title and the Action Center toasts that arrived since you last had the app in front (read from the notification database through the system's own winsqlite3.dll).

Battery power on a laptop that does not report it

The battery driver only knows the battery side. On battery its discharge rate is the whole system's draw; on the adapter nothing measures the input. MacDock reads CPU package energy through Windows' Energy Meter Interface and GPU power through NVML, and learns the rest (screen, RAM, SSD, fans) while unplugged. Sensors are read off the UI thread, and a sleeping NVIDIA GPU is left asleep instead of being woken every second.

Known limits

  • Built and tested on one machine: a Windows 11 laptop at 2560×1600, 125% scale, with an NVIDIA GPU. Other setups may show rough edges; issues are welcome.
  • Dock and menu bar live on the primary monitor; other monitors have no taskbar while MacDock runs.
  • While the ^ tray flyout is open, a WinUI 3 app started at that moment can fail to start, because the tray host registers its own Shell_TrayWnd. The host only runs while that flyout is open.
  • GPU power needs an NVIDIA GPU; without one the breakdown shows CPU and the rest.

Rust vs the old C# build

MacDock started as C# / WPF on .NET 10 and was rewritten in Rust (plain Win32, tiny-skia, WinRT through the windows crate) to make it lighter. Same features, same config.json. Measured on the same laptop and screen, 20 s idle plus a 10 s scripted pointer sweep over the dock:

C# / WPFRust
Private memory320-379 MB12.9 MB
CPU idle0.04-0.6%0%
CPU while magnifying2.0-2.3%1.65%
Threads21-2611
On disk30 MB + .NET runtime1.1 MB exe

The C# version is kept at the tag csharp-final.

Credits

  • Built by @GodrezJr2 with Claude Code as an AI pair programmer.
  • macOS and the Dock are trademarks of Apple Inc. MacDock is an independent project, not affiliated with or endorsed by Apple.

License

MIT

Similar Projects

Discover other similar projects and AI models.

RepositoryRust
alacritty/alacritty

A cross-platform, OpenGL terminal emulator.

66.4k
Dec 1, 2026
RepositoryRust
warpdotdev/warp

Warp is an agentic development environment, born out of the terminal.

66.2k
Dec 1, 2026
RepositoryRust
tw93/Pake

Turn any website into a lightweight desktop app with one command, on macOS, Windows and Linux.

64.1k
Nov 28, 2026
RepositoryRust
lencx/ChatGPT

❄️ ChatGPT Desktop Application (Mac, Windows and Linux)

54.7k
Aug 29, 2024
Modelsentence-similarity
sentence-transformers/all-MiniLM-L6-v2

all-MiniLM-L6-v2 This is a sentence-transformers(https://www.SBERT.net) model: It maps sentences & paragraphs to a 384 dimensional dense vector space and can be used for tasks like clustering or semantic search. Usage (Sentence-Transformers) Using t...

♥0
157.6M
Jun 1, 2026
RepositoryRust
sxyazi/yazi

💥 Blazing fast terminal file manager written in Rust, based on async I/O.

43.8k
Dec 1, 2026
RepositoryRust
GyulyVGC/sniffnet

Comfortably monitor your network traffic 🕵️‍♂️

43.4k
Nov 28, 2026
RepositoryRust
eythaann/Seelen-UI

The Fully Customizable Desktop Environment for Windows 10/11.

18.7k
Nov 29, 2026
RepositoryRust
Ericismee/Azr

Customize Windows 11 with a glass Dock, Dynamic Island, Launchpad, and desktop widgets. Available in English and Vietnamese.

260
Nov 27, 2026