dotfiles/.config/i3/scripts/brightness.sh

10 lines
170 B
Bash
Executable File

#!/bin/bash
MONITORS='0 9'
BRIGHT=`zenity --entry --width 40 --text="Brightness:"`
for m in ${MONITORS}; do
ddccontrol dev:/dev/i2c-${m} -r 0x10 -w ${BRIGHT}
done