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

18 lines
245 B
Bash
Executable file

#!/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