screenresolution

Get, set, and list display resolution from the command line

brewmacoslinux
Try with needOr install directly
Source

About

Get, set, and list display resolution

Commands

screenresolution

Examples

List all available display resolutions$ screenresolution list
Set display resolution to 1920x1080$ screenresolution set 1920 1080
Get current display resolution$ screenresolution get