avibrazil / RDM

Easily set Mac Retina display to higher unsupported resolutions
4.13k stars 352 forks source link

Add a command line interface? #19

Open NoobDoesMC opened 6 years ago

NoobDoesMC commented 6 years ago

I want to be able to change the screen resolution from the command line

jonathonlui commented 6 years ago

@NoobDoesMC the RDM.app includes a CLI. Assuming its installed at /Applications/RDM.app try these commands:

$ /Applications/RDM.app/Contents/MacOS/SetResX --modes
mode: {resolution=1280x800, scale = 2.0, freq = 0, bits/pixel = 32}
mode: {resolution=1680x1050, scale = 2.0, freq = 0, bits/pixel = 32}
mode: {resolution=1440x900, scale = 2.0, freq = 0, bits/pixel = 32}
...etc.

$ /Applications/RDM.app/Contents/MacOS/SetResX --width 1680 --height 1050 --scale 2.0
RichardBronosky commented 5 years ago

Assuming you use brew or have /usr/local/bin in your $PATH for any other reason. You can make it handy with:

ln -s /Applications/RDM.app/Contents/MacOS/SetResX /usr/local/bin/rdm

That let's you use the rdm command without specifying a path, just like most commands.