This script swap the two displays in case their order got reversed. It relies on the jakehilborn/displayplacer
- Install displayplacer
- Create config folder
- Copy the
swap_display.py
to a directory on your $PATH
brew install jakehilborn/jakehilborn/displayplacer
mkdir -p ~/.config/displayplacer
# now edit your ~/.config/displayplacer/templates.txt
cp <swap_display.py> ~/.local/bin/swap_display
chmod +x swap_display
And now you can just run swap_display
. Also you can make a workflow in alfred like I do.