Skip to content

Display Origin Swap (dos) provides a workaround to the issue where Macs will randomly reverse the screen arrangement of identical external displays. dos uses the Displayplacer command line utility to swap the position of two displays.

Notifications You must be signed in to change notification settings

kernelpanic19/display-origin-swap

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 
 
 

Repository files navigation

Display Origin Swap (dos)

Introduction

Display Origin Swap (dos) provides a workaround to the issue where Macs will randomly reverse the screen arrangement of identical external displays. dos uses the Displayplacer command line utility to swap the position of two displays.

  • Runs 'displayplacer list' to extract current screen configuration.
  • Runs 'displayplacer' with the correct arguments to swap the origin position of two displays.

Install Display Origin Swap

git clone https://github.com/kernelpanic19/display-origin-swap.git

Configure Display Origin Swap

Edit the displays_to_swap() tuple in dos.py if needed. This collection should contain the indexes of the two displays to swap. The indexes can be seen in the 'Detected screens' output of dos.py.

def main():
    displays_to_swap = (1, 2)

Install Displayplacer

Displayplacer is a macOS command line utility to configure multi-display resolutions and arrangements.

https://github.com/jakehilborn/displayplacer

Install via Homebrew with:

brew tap jakehilborn/jakehilborn && brew install displayplacer

Alias

You may want to alias this script for ease of execution. Typing dos in the shell will execute this script. The example below will need to be modified for your environment and appended to your .bash_profile or .zshrc.

alias dos='python ~/code/dos/dos.py'

About

Display Origin Swap (dos) provides a workaround to the issue where Macs will randomly reverse the screen arrangement of identical external displays. dos uses the Displayplacer command line utility to swap the position of two displays.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages