dotfiles/bin/brightness

19 lines
245 B
Plaintext
Raw Normal View History

2016-12-22 02:01:03 +01:00
#!/bin/bash
if [ ! -z $2 ];
then
disp=$1
bright=$2
else
echo "Available displays:"
xrandr -q | grep " connected"
echo "What display to use?"
read disp
echo "Brightness[0-1]:"
read bright
fi
xrandr --output $disp --brightness $bright