Skip to content

Instantly share code, notes, and snippets.

@rbreaves
Created October 28, 2025 16:13
Show Gist options
  • Select an option

  • Save rbreaves/67009acd0f2c21513cf0ad21a621b474 to your computer and use it in GitHub Desktop.

Select an option

Save rbreaves/67009acd0f2c21513cf0ad21a621b474 to your computer and use it in GitHub Desktop.
Reset macOS Desktop for local use
#!/bin/bash
# brew install displayplacer
# To generate the config below
# displayplacer list | awk '/^displayplacer /{p=1} p'
# How to run
# ~/displayplacer_local.sh
# Resets workflow for local use on 3 monitors
displayplacer "id:08BCC513-9559-411E-8B01-44EE4FC048DE res:2560x1440 hz:144 color_depth:8 enabled:true scaling:off origin:(0,0) degree:0" "id:37D8832A-2D66-02CA-B9F7-8F30A301B230 res:1512x945 hz:120 color_depth:8 enabled:true scaling:on origin:(2560,321) degree:0" "id:2C97B10A-8BA6-405D-B343-FEC6D289E20F res:1920x1200 hz:60 color_depth:8 enabled:true scaling:off origin:(-1920,109) degree:0"
osascript -l JavaScript ~/move_to_three_monitors.jxa
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment