mirror of
https://github.com/kastdeur/dotfiles.git
synced 2024-12-22 09:13:33 +01:00
19 lines
245 B
Text
19 lines
245 B
Text
|
#!/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
|