displayplacer

Configure multi-display resolutions and arrangements via CLI

brewmacoslinux
Try with needOr install directly
Source

About

Utility to configure multi-display resolutions and arrangements

Commands

displayplacer

Examples

List current display configuration$ displayplacer list
Set resolution for primary display to 1920x1080$ displayplacer "id:69732382-C340-0DDD-B8C4-29F6D91CB953 res:1920x1080"
Arrange multiple displays with specific positions and resolutions$ displayplacer "id:69732382-C340-0DDD-B8C4-29F6D91CB953 res:1920x1080 origin:(0,0)" "id:ABCD1234-5678-90EF-GHIJ-KLMNOPQRSTUV res:2560x1440 origin:(1920,0)"