RepositoryRustJPJapan
NU

Nuzair46/Monarch

Detach, restore, and switch monitor layouts without touching cables.

543stars
17forks
8issues
2views

Featured achievements

The project's latest awards

1
TINIX TRENDING·Topic: displays

#1 Repository of the week

1
TINIX TRENDING·Topic: display-manager

#1 Repository of the week

1
TINIX TRENDING·Topic: ultraw

#1 Repository of the week

Monarch

Detach, restore, and switch monitor layouts without touching cables.

Built for fast display switching, standby behavior, and safe rollback if something goes wrong

Monarch logo

Release Build and Publish Downloads Latest Release Platform

Download Latest Release · Quick Start · Recovery

What Is Monarch?

Monarch lets you:

  • Detach a monitor in software (no cable unplugging)
  • Reattach it later
  • Save display layouts as profiles
  • Restore the previous layout quickly
  • Recover automatically with a confirmation timeout if a layout change goes wrong
  • Easy apply with hotkeys

It uses Windows display topology APIs (DisplayConfig) to change which outputs are active.

Download & Install (End Users)

  1. Open the Releases page
  2. Download the latest .msi installer
  3. Run the installer
  4. Launch Monarch from Start Menu or Desktop

Quick Start

  1. Open Monarch
  2. In the Monitors section, click Detach on the display you want to turn off
  3. Confirm the layout change (or it auto-rolls back)
  4. Click Attach later to bring the display back
  5. Use Save Current Layout in Profiles to store common setups

Command-Line Profile Switch (Automation)

You can launch Monarch and ask it to apply a specific profile immediately:

monarch-desktop.exe -profile "ProfileName"

Also supported:

monarch-desktop.exe --profile "ProfileName"
monarch-desktop.exe --profile="ProfileName"

Notes:

  • Useful for tools like Playnite scripts (before/after game launch)
  • If Monarch is already running, the new command forwards the profile request to the running instance
  • CLI profile argument takes precedence over the configured launch profile in Settings

Safety Features

  • Confirmation timer after layout changes
  • Automatic rollback if you do not confirm in time
  • Restore Last Layout action
  • Prevents disabling the last active display

If Something Goes Wrong

Try these in order:

  1. Use Monarch tray menu: Restore Displays
  2. Reopen Monarch and use Restore Last Layout
  3. Use Windows shortcut Win + P and choose Extend or PC screen only
  4. Reboot Windows (usually restores a usable display state)

Notes (Important)

  • Windows only
  • Monarch changes display topology, not monitor power directly
  • Most monitors enter standby when Windows stops sending signal
  • If you change HDR/SDR mode in Windows, Monarch auto-reapplies calibration in the background (best effort)

Troubleshooting

The app opens but I can't see the window

  • Check the system tray for the Monarch icon
  • Double-click the tray icon or use Open App

A layout change made the screen unusable

  • Wait for the confirmation timer to expire (auto rollback)
  • Or use Win + P

My display arrangement in the UI looks outdated

  • Refocus the app window (Monarch auto-refreshes)
  • Wait a few seconds for the background refresh poll to update the layout

Color calibration looks wrong after detaching a display

  • Known issue on some systems with custom calibration (ICC / SDR / HDR calibration profiles)
  • In testing, this can be triggered when:
    • a display is detached in Monarch, and then
    • Windows Settings > System > Display is opened
  • The detach itself may look fine until Windows Display Settings is opened
  • Workaround: reattach the detached display (this often restores the remaining display calibration)
  • If needed, also reapply your calibration using your normal calibration tool / workflow

FAQ

Does Monarch physically power off the monitor?

No. It detaches the display output in Windows. Many monitors then enter standby automatically.

Is it safe to test?

Yes, but test on a non-critical setup first. Monarch includes rollback protection, and Win + P / reboot are reliable fallbacks.

Can I use it with NVIDIA / AMD / Intel?

Yes. Monarch is designed to work through Windows display APIs, not vendor-specific GPU control panels.

Is color calibration perfectly preserved in every Windows display-settings scenario?

Not yet. Monarch handles many calibration cases (including common HDR/SDR transitions), but Windows Display Settings can still cause calibration resets on some systems after topology changes. See Troubleshooting for the current known issue and workaround.

For Developers

Build / Dev / CI details

Project Layout

  • src/ Rust core library (layouts, profiles, rollback safety, persistence)
  • src-tauri/ Tauri desktop app + Windows backend
  • web/ React UI
  • .github/workflows/ Windows release workflow

Build Locally (Windows)

Requirements:

  • Node.js 20+
  • yarn
  • Rust (stable)
  • Visual Studio Build Tools 2022 + Windows SDK (rc.exe)

Commands:

yarn install
rustup target add x86_64-pc-windows-msvc
yarn tauri dev

Build MSI:

yarn tauri build --bundles msi

Output:

  • src-tauri/target/release/bundle/msi/

CI / Release

  • Workflow: .github/workflows/ci-build-release.yml
  • Manual release workflow runs via workflow_dispatch and takes a version input
  • Release pipeline updates these files together before building:
    • Cargo.toml
    • src-tauri/Cargo.toml
    • package.json
    • src-tauri/tauri.conf.json
  • Release pipeline commits the version bump, creates tag vX.Y.Z, builds the Windows installer, and publishes the GitHub Release

Release process:

  1. Make sure your release commit is on main.
  2. Open Actions -> Release Build and Publish -> Run workflow.
  3. Enter a version (example: 0.2.0) or bump kind (patch, minor, major).
  4. Run the workflow.
  5. The workflow will bump all version files, commit the change, create the tag, build Windows artifacts, and publish the GitHub Release.

Similar Projects

Discover other similar projects and AI models.

RepositorySwift
didriksg/Crisp

Every display control macOS hides, in one menu bar app: sharp HiDPI/Retina scaling (no more blurry or tiny text), DDC brightness and volume, Extra Brightness past 100%, presets, virtual displays. Free and open source, a no-cost alternative to BetterDisplay and Lunar.

2.6k
Nov 30, 2026
RepositorySwift
alin23/Lunar

Intelligent adaptive brightness for your external monitors

5.7k
Oct 25, 2026
RepositoryC#
emoacht/Monitorian

A Windows desktop tool to adjust the brightness of multiple monitors with ease

4.8k
Nov 29, 2026
RepositoryC#
terrymacdonald/DisplayMagician

DisplayMagician is an open source tool for automatically configuring your displays and sound for a game or application from a single Windows Shortcut.

786
Nov 29, 2026
RepositoryC++
ClassicOldSong/Widecar

Sidecar for Windows - with Sunshine and Moonlight

153
Sep 5, 2024
RepositoryBatchfile
massgravel/Microsoft-Activation-Scripts

Open-source Windows and Office activator featuring HWID, Ohook, TSforge, and Online KMS activation methods, along with advanced troubleshooting.

201.9k
Nov 11, 2026
Repository
jlevy/the-art-of-command-line

Master the command line, in one page

162.8k
Jun 25, 2024
RepositoryRust
alacritty/alacritty

A cross-platform, OpenGL terminal emulator.

66.4k
Dec 1, 2026
RepositoryRust
lencx/ChatGPT

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

54.7k
Aug 29, 2024