Eun / DisableMonitor

Easily disable or enable a monitor on your Mac.
1.36k stars 149 forks source link

Show Enabled/Disabled in command line --list #54

Open adzellman opened 8 years ago

adzellman commented 8 years ago

@Eun This change adds the ability to see if a display is enabled or disabled in the --list command. This will allow users to act in a more informed way to avoid running into the problems that arise when trying to disable a disabled display or enabling an enabled display.

adzellman commented 8 years ago

Other things to note: The project and scheme changes are just an artifact of building with a newer version of Xcode (7.3.1).

Also, https://github.com/Eun/DisableMonitor/pull/54/files#diff-8eb5caa8511e325a14c7b1512d37cc60L36 is the change in main.m, I don't know why the diff isn't showing this properly.

adzellman commented 8 years ago

Example output:

zellman-imac2:tools zellman$ /Applications/DisableMonitor.app/Contents/MacOS/DisableMonitor --list
 ID         Name              Enabled
----------- ----------------- -------
 69678912   iMac              YES
 725376013  DELL U2410        NO
----------- ----------------- -------