create a short cut for display arrangement for MAC using displayplacer and Automator
Install displayplacer through brew
To install type the following in Terminal
brew tap jakehilborn/jakehilborn && brew install displayplacer
Type the following in the termimal to output the current diaplay configulation:
code:terminal
displayplacer list
Open Automator, create a service (quick action) file From Utility choose Run SHell Script
Select no input
In the textfieild paste the following line in the first line (this will allow the -zsh to find the diaplayplacer command.
code:terminal
export PATH=/usr/local/bin:$PATH
In the following line, copy and paste the out put of displayplacer list
for example, mine looked like the following
code:terminal
displayplacer "id:6B5751C9-D34B-1E8E-F956-D7F80DE3171C res:1920x1080 hz:60 color_depth:8 scaling:off origin:(0,0) degree:0" "id:744AA6C9-FD9B-7991-A74C-FA5871346337 res:2560x1440 hz:30 color_depth:8 scaling:off origin:(-288,-1440) degree:0" "id:6161706C-6950-6164-0000-053900000000 res:960x768 hz:60 color_depth:4 scaling:on origin:(1920,312) degree:0"