new color on ./distro and stat current brightness on ./bright

This commit is contained in:
shockrah
2020-05-22 13:35:13 -07:00
parent fc5a75071a
commit 904b8971d5
2 changed files with 5 additions and 3 deletions

3
bright
View File

@@ -12,7 +12,8 @@ then
fi
# Changes brightness through dmenu (because i like my eyes)
level=`seq 1 100 | dmenu -i -p 'Brightnesss from 1-100'`
current="`xrandr --verbose | grep Brightness | head -1 | awk '{print $2}'`"
level=`seq 1 100 | dmenu -i -p "($current) Brightnesss from 1-100"`
if [ -z "$level" ]; then exit; fi
percentage=`echo "scale=2;" "$level/100" | bc -l`