A way to control monitor brightness through the command line. You can change the brightness of all monitors simultaneously.
ddc-i2c crate for perfomance improvement-a and -s flagsInstall the dependencies first and then build and install the binary into PATH.
i2c-dev kernel module should be loaded during boot.~/.cargo/bin to $PATH Environment variable.
Add export PATH=$PATH:$HOME/.cargo/bin to ~/.bash_profile or ~/.zprofile i2c-dev in ArchLinux/etc/mkinitcpio with the following command: sudo vim /etc/mkinitcpio.confi2c-dev to MODULES -> (MODULES=(... i2c-dev))sudo mkinitcpio -P to generate linux kernel binariesIf the MODULES is empty in
/etc/mkinitcpio.confthen,MODULES=(i2c-dev)should be enough. ... represents other modules that are present
git clone https://github.com/5iddy/monitorctl.gitcd monitorctlmake installUSAGE:
monitorctl [OPTIONS] <Value>
ARGS:
<Value>
OPTIONS:
-a, --add Adds the value to the current value
-h, --help Print help information
-s, --sub Subs the value from the current value
-V, --version Print version information
monitorctl 10 set brightness of all monitors to 10monitorctl -a 10 set brightness of all monitors to current value + 10monitorctl -s 10 set brightness of all monitors to current value - 10$ claude mcp add monitorctl \
-- python -m otcore.mcp_server <graph>