API
Similar to Rectangle, Rectangle Pro actions can be programmatically triggered using a URL API. The following examples show usage via open -g, demonstrable in the Terminal.
For options that already exist, like left half:
Section titled “For options that already exist, like left half:”open -g "rectangle-pro://execute-action?name=left-half"List of actions
left-halfright-halfmaximizemaximize-heightprevious-displaynext-displaylargersmallerbottom-halftop-halfcenterbottom-leftbottom-righttop-lefttop-rightrestorefirst-thirdfirst-two-thirdscenter-thirdlast-two-thirdslast-thirdmove-leftmove-rightmove-upmove-downalmost-maximizefill-leftfill-rightcenter-halffirst-fourthsecond-fourththird-fourthlast-fourthtop-left-sixthtop-center-sixthtop-right-sixthbottom-left-sixthbottom-center-sixthbottom-right-sixthfirst-sixthlast-sixthfullscreencloseminimizequit-apphide-appcascade-allcascade-apptile2x2tile2x3reveal-desktop-edgeapp-next-displayapp-prev-displayapp-left-halfapp-right-halffirst-three-fourthslast-three-fourthstop-left-ninthtop-center-ninthtop-right-ninthmiddle-left-ninthmiddle-center-ninthmiddle-right-ninthbottom-left-ninthbottom-center-ninthbottom-right-ninthtop-left-thirdtop-right-thirdbottom-left-thirdbottom-right-thirdtop-left-eighthtop-center-left-eighthtop-center-right-eighthtop-right-eighthbottom-left-eighthbottom-center-left-eighthbottom-center-right-eighthbottom-right-eighthcenter-two-thirdsfill-bottom-leftfill-bottom-rightfill-top-leftfill-top-rightlastnext-spacenudge-leftnudge-rightnudge-upnudge-downprev-spacesnap-bottom-leftsnap-bottom-rightsnap-top-leftsnap-top-rightupper-centernext-display-ratioprev-display-ratiostash-leftstash-rightstash-upstash-downunstashcycle-stashedtoggle-stashedunstash-allstash-allstash-all-but-frontreflow-pinnext-spaceprev-spaceThere are two available pin mode actions:
Section titled “There are two available pin mode actions:”open -g "rectangle-pro://execute-action?name=pin"open -g "rectangle-pro://execute-action?name=reflow-pin"For Layouts you’ve created, use the names you gave them
Section titled “For Layouts you’ve created, use the names you gave them”open -g "rectangle-pro://execute-layout?name=Layout1"For custom shortcuts you’ve created, also use the names you gave them
Section titled “For custom shortcuts you’ve created, also use the names you gave them”open -g "rectangle-pro://execute-custom?name=custom1"