Permalink
Switch branches/tags
Nothing to show
Find file Copy path
Fetching contributors…
Cannot retrieve contributors at this time
12 lines (11 sloc) 316 Bytes
#!/bin/bash
#change brightness 0-100
PERCENT=$1;
if [ "$PERCENT" -gt 5 ];then
OUTPUT=$(cat /sys/class/backlight/gmux_backlight/max_brightness);
PROP=$(($OUTPUT*$1/100));
echo $PROP > /sys/class/backlight/gmux_backlight/brightness;
echo "brightness changed to" $PROP;
else
echo $PERCENT "is too dim!";
fi