CLI And Colour Schemes
Getting the Current Colour Scheme from the CLI
To get the current colour scheme from the CLI, use the following command:
If MacOS is in dark mode, this will print Dark
. But if MacOS is in light mode, this key won't be set at all, and the command will print return an error of the form:
As such, in order to confirm that the colour scheme is light, you'll need to parse for this error.
Last updated