Skip to content

Instantly share code, notes, and snippets.

@skempken
Created February 6, 2022 11:15
Show Gist options
  • Save skempken/984452637894256705c9e4ec32c73101 to your computer and use it in GitHub Desktop.
Save skempken/984452637894256705c9e4ec32c73101 to your computer and use it in GitHub Desktop.
Swap displays on macOS using displayplacer
#!/bin/bash
# brew install displayplacer ;-)
displayplacer list | tail -n 1 | sed "s/(0,/(tmp,/g;s/-1920/0/g;s/tmp/-1920/g" | sh -
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment