Skip to content

About

Yield any macOS monitor to your Windows PC in one click — native SwiftUI menu bar app with true video signal cut & Apple Silicon DDC/CI input switching.

Topics

Resources

Stars

0 stars

Watchers

0 watching

Forks

Latest commit

 

History

3 Commits

Folders and files

Repository files navigation

DisplayYield App Icon

DisplayYield

Yield any macOS monitor to your Windows PC in one click.

A lightweight, 100% native macOS menu bar utility that cuts the real video signal to a chosen display — letting your monitor auto-switch to a Windows PC (or console) on DisplayPort/HDMI without unplugging cables or trapping your cursor on a darkened screen.

Build macOS App Latest Release macOS 13+ Zero Dependencies License: MIT

Interactive Website & Demo · Download v1.1.0 (.dmg) · How It Works


DisplayYield Dual Monitor Handoff

Why DisplayYield?

When a monitor is shared between a Mac and a Windows PC (e.g., Mac on HDMI/USB-C, Windows PC on DisplayPort), turning on your Windows PC won't wake that screen while macOS keeps sending an active video signal.

Approach Triggers Auto-Switch to PC? Keeps Cursor & Windows on Mac? Works Without Unplugging?
Screen Dimmer / Black Overlay ❌ No (signal stays active) ❌ No (cursor gets trapped) ✅ Yes
Unplugging Video Cable ✅ Yes ✅ Yes ❌ No (wears ports)
DisplayYield ✅ Yes (real signal cut + DDC/CI) ✅ Yes (windows consolidate) ✅ Yes (one click or ⌃⌥⌘W)

Features

  • Interactive Desk Minimap — Visual side-by-side preview of your physical left/right monitor layout right inside the menu bar popover; click any screen tile to yield or reclaim it immediately.
  • True Hardware Signal Cut — Calls macOS WindowServer's CGSConfigureDisplayEnabled to genuinely disconnect the video output across USB-C, DisplayPort, HDMI, and adapters.
  • Live Apple Silicon DDC/CI Engine — Reads each monitor's current active input (HDMI 2, DP 1, etc.) over IOAVServiceReadI2C (VCP 0x60), lets you switch directly to DP 1, DP 2, HDMI 1, HDMI 2, or USB-C, and supports Auto-Switch Input Before Yield.
  • Identical Dual-Monitor Ready — Distinguishes identical screens (e.g., dual MSI MAG272CQR) using hardware UUIDs, serial suffixes, refresh rates, live input tags, inline custom renaming, and a floating Identify HUD overlay.
  • Zero-Permission Global Hotkeys — Built with Carbon Event Manager (⌃⌥⌘W toggles your starred display, ⌃⌥⌘R restores all displays) with no Accessibility permission prompt.
  • Safety Guard & Clean Recovery — Prevents disabling your last active monitor, tracks yielded displays even if their CGDirectDisplayID changes after wake, and automatically restores all screens when you quit.

Installation

Option 1 — Download Pre-Built Release (Recommended)

  1. Download DisplayYield-v1.1.0-macOS.dmg (or .zip) from GitHub Releases.
  2. Drag DisplayYield.app into /Applications.
  3. Since this open-source release is ad-hoc signed, if macOS Gatekeeper prompts on first launch, either Right-click → Open or run:
    xattr -cr /Applications/DisplayYield.app
    open /Applications/DisplayYield.app

Option 2 — Build from Source

Requires only macOS 13+ and Apple Command Line Tools (full Xcode is not required):

git clone https://github.com/panda0x-dev/DisplayYield.git
cd DisplayYield
./scripts/build-app.sh
cp -R dist/DisplayYield.app /Applications/
open /Applications/DisplayYield.app

Keyboard Shortcuts & Controls

Trigger Action
⌃ ⌥ ⌘ W Yield / Reclaim your starred (⭐) target monitor from any app
⌃ ⌥ ⌘ R Restore All yielded displays back to macOS
Click Minimap Tile Instantly toggle that left or right display
Right-Click Menu Bar Icon Quick menu for Toggle, Restore All, and Identify Displays

Monitor OSD Tip: Enable Auto Input Switch (and DDC/CI for direct port switching) in your monitor's on-screen menu for instant handoff to your Windows PC.


How It Works

flowchart LR
    A[Click 'Yield to PC'<br/>or press ⌃⌥⌘W] --> B{Auto/Manual<br/>DDC Switch?}
    B -- Yes --> C[IOAVServiceWriteI2C<br/>VCP 0x60 → DP/HDMI]
    C --> D[CGSConfigureDisplayEnabled<br/>enabled = false]
    B -- No --> D
    D --> E[macOS cuts video signal<br/>& consolidates windows]
    E --> F[Monitor detects no signal<br/>& wakes on Windows PC]
Loading

Architecture

DisplayYield/
├── Package.swift                                  # Zero-dependency Swift package
├── Resources/Info.plist                           # Menu bar agent bundle metadata (LSUIElement)
├── scripts/build-app.sh                           # Release compiler + .app / .zip / .dmg packager
├── docs/                                          # Interactive GitHub Pages showcase (EN/TR)
└── Sources/DisplayYield/
    ├── DisplayYieldApp.swift                      # NSStatusItem + auto-sized NSPopover lifecycle
    ├── Models/DisplayDevice.swift                 # Display & DDCInputSource models
    ├── Services/
    │   ├── CoreDisplayBridge.swift                # CGSConfigureDisplayEnabled + CoreDisplay metadata
    │   ├── DDCController.swift                    # Async Apple Silicon IOAVService Read/Write I2C
    │   ├── DisplayManager.swift                   # State, safety guard, UUID caching, Launch at Login
    │   └── HotkeyManager.swift                    # Carbon global hotkeys (⌃⌥⌘W, ⌃⌥⌘R)
    └── UI/
        ├── MenuBarPopoverView.swift               # Native SwiftUI popover with Desk Minimap & Settings
        └── IdentifyOverlayController.swift        # Floating translucent Identify HUD panels

License

Released under the MIT License. Built by panda0x.

About

Yield any macOS monitor to your Windows PC in one click — native SwiftUI menu bar app with true video signal cut & Apple Silicon DDC/CI input switching.

Topics

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages