1
0
Fork 0
mirror of https://github.com/kastdeur/dotfiles.git synced 2024-11-18 01:13:31 +01:00
dotfiles/bin/brightness

19 lines
245 B
Text
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