Skip to content

Instantly share code, notes, and snippets.

@nebril
Created August 19, 2024 13:05
Show Gist options
  • Save nebril/57109424bb3440ad944ee0f970cdddae to your computer and use it in GitHub Desktop.
Save nebril/57109424bb3440ad944ee0f970cdddae to your computer and use it in GitHub Desktop.
ddcutil set brightness
#!/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