One desk,
two
computers.

Press a button and your monitor moves to your PC. Press again and everything goes back.

The Displaybase menu: a map of the desk with the 32-inch screen on the gaming PC, and a button to bring everything back

Eight bytes move a screen.

Your monitor has been able to do this all along. Displaybase sends it one DDC/CI command, reads the input back, and tries up to four times before it believes the answer.

  1. 6EMonitor
  2. 51Mac
  3. 84Length
  4. 03Set
  5. 60Input
  6. 00High
  7. 0FLow
  8. D7Checksum

Same cables, different owner.

ThunderboltDisplayPortUSBThunderboltDisplayPortUSBMacBookGaming PCUSB switch27-inch32-inch
The tall monitor shows blue for the Mac and the wide one shows orange for the PC
The Displaybase menu while gaming

The PC takes the main screen

The Mac moves its menu bar and windows to the screen it keeps, so chat and music stay in view.

Nothing moved
the screens.

I work on a MacBook and play on a gaming PC. They share two monitors, and a USB switch moves my keyboard between them. The screens stayed put.

When a monitor did switch, macOS didn't know it was gone. Windows stayed on a screen I couldn't see, the layout reshuffled, and my portrait monitor came up sideways.

And if I needed the Mac for a second, I didn't want that to end my game.

So I wanted one press: the PC on the main screen, the Mac tucked onto the side one, and everything back where it was afterwards. That's why I built Displaybase.

Geeth, Rad Soft

A monitor's circuit board with one blue and one orange trace lit

One press, six system calls.

  1. AXUIElement

    Remembers every window

    Position, size and which screen it was on.

  2. VCP 0x60

    Switches the input

    Then reads it back, so a monitor that ignored the command doesn't take your screen away.

  3. CGSConfigureDisplayEnabled

    Turns the screen off in macOS

    Windows and the pointer can't wander onto it. It lasts for the session, so logging out always brings it back.

  4. MPDisplay

    Holds the rotation

    macOS brings a new set of screens up unrotated. A portrait screen stays portrait.

  5. CGConfigureDisplayOrigin

    Moves the menu bar

    To the screen the Mac keeps.

  6. IOUSBHostDevice

    Watches the keyboard

    When it moves back, you can have everything return, or only borrow the keyboard.

Setup shows you what each choice does.

Pick what each screen does and watch the desk change beside it. You can try an input for five seconds before you keep it.

The setup window, asking which screens move, next to a live map of the desk
The setup window asking about a shared keyboard

Press your switch's button

It watches what leaves and finds your keyboard by itself. No switch? Skip it.

The setup window listing optional permissions

Allow what you want

Every permission is optional, and says what it's for before you click.

Four permissions. All yours to refuse.

It never records your screen or what you type. There's no account and no analytics. Apart from your own computer over SSH, the only thing it contacts is its update feed.

macOS asks aboutWhenWhyIf you say no
AccessibilityOptionalPuts your windows back where they wereWindows stay where macOS leaves them
NotificationsOptionalTells you if your USB switch goes missingThe menu still shows it
Local networkOnly with SSHChecks on your other computerHand-overs go unconfirmed
Open at loginOptionalSo it's there when you sit downYou open it yourself

What you need

  • A Mac with Apple silicon, on macOS 15 or later
  • Monitors with DDC/CI turned on, plugged into both computers
  • Any second computer: Windows, Linux or another Mac
  • A USB switch and SSH, if you have them

It won't work with

  • Intel Macs
  • DisplayLink docks and adapters
  • Some LG monitors, which ignore the standard input command
  • Two matching monitors that report the same serial number

It's early, and so far it has been used on one desk. If your monitor works, or doesn't, please say so on GitHub.

A USB switch with a ring of light, half blue and half orange

Free and
open source.

Install it with Homebrew and it keeps itself up to date. Or read every line and build it yourself. MIT licensed.

Install with Homebrew

brew install --cask rad-soft/tap/displaybase

Build it yourself

git clone https://github.com/Rad-Soft/displaybase
cd displaybase
brew install xcodegen
make install