A simple command line app to interact with BetterDisplay.
BetterDisplay must be running and configured to accept CLI commands (this is the default setting).
- XCode or XCode Developer Tools must be installed (enter
xcode-select --install
). - BetterDisplay v2.2.0 or later must be installed.
- Enter
brew install waydabber/betterdisplay/betterdisplaycli
- Download source package
git clone https://github.com/waydabber/betterdisplaycli
- Enter the downloaded folder:
cd ./betterdisplaycli
- Enter
sudo make install
. This will compile the app and install it under/usr/local/bin
.
... or instead of the last step you can continue like this:
- Compile by entering:
swiftc betterdisplaycli.swift
- Move the compiled
betterdisplaycli
binary to a location where it's easily available in$PATH
.
- Make sure BetterDisplay 2.2.x and newer is running and is configured to accept CLI/notification requests.
- Run
betterdisplaycli
for help. - Try
betterdisplaycli set --brightness=80%
to set the brightness level of all displays to 80% (note: you can use both single and double hyphen style for parameters).
Note
You can use the installed app itself to send CLI commands as well - the following prints help:
/Applications/BetterDisplay.app/Contents/MacOS/BetterDisplay help
More info and other integration options:
This app also serves as a demonstration of how to integrate your app with BetterDisplay using notification dispatch.