Created
August 19, 2024 13:05
-
-
Save nebril/57109424bb3440ad944ee0f970cdddae to your computer and use it in GitHub Desktop.
ddcutil set brightness
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/sh | |
if [ -z "$1" ] | |
then | |
echo "Brightness not supplied" | |
fi | |
for monitor in $(sudo ddcutil detect | grep i2c | awk '{print $3}' | grep -o '[0-9]$') ; do sudo ddcutil setvcp 10 --bus "$monitor" "$1"; done |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment