Skip to content

Instantly share code, notes, and snippets.

View nebril's full-sized avatar
🥋

Maciej Kwiek nebril

🥋
View GitHub Profile
@nebril
nebril / sbr.sh
Created August 19, 2024 13:05
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