Category filter
Script to change screen brightness on Mac
Users can change the brightness levels on macOS devices with the help of dedicated function keys or using the System Preferences. Despite these alternatives, administrators can directly run the Terminal commands to adjust brightness on Mac. Hexnode enables you to run these commands as scripts remotely using the Execute Custom Script action.
Change brightness
1 |
/usr/local/Cellar/brightness/1.2/bin/brightness 0.75 |
It turns the brightness level to 75%. You can change the value 0.75
as per your requirement.
To change the brightness level to 100%
1 |
/usr/local/Cellar/brightness/1.2/bin/brightness 1.0 |
To adjust the brightness to half-way
1 |
/usr/local/Cellar/brightness/1.2/bin/brightness 0.5 |