Skip to content

Commit

Permalink
Added help for high number max backlight
Browse files Browse the repository at this point in the history
New laptop has a max of 1500, so needed to add a high/low setting, as it takes forever to go up to max from low 1 at a time.
  • Loading branch information
theredbaron1834 authored Apr 6, 2017
1 parent d5a472a commit f89755c
Showing 1 changed file with 16 additions and 1 deletion.
17 changes: 16 additions & 1 deletion backlight
Original file line number Diff line number Diff line change
Expand Up @@ -25,4 +25,19 @@ if [ "$1" == - ]
fi
fi

echo "This is a simple script to change the backlight. Pass + to increase brightness and - to decrease brightness."
if [ "$1" == high ]
then
echo $max | sudo tee /sys/class/backlight/*/brightness
notify-send -t 1000 "Brightness maxed"
fi

if [ "$1" == low ]
then
low=$(echo $(( $max / 10 )))
echo $low | sudo tee /sys/class/backlight/*/brightness
notify-send -t 1000 "Brightness set to $low"
fi



echo "This is a simple script to change the backlight. Pass + to increase brightness by 1, - to decrease brightness by 1, high to max brightness, and low to put to 10%."

0 comments on commit f89755c

Please sign in to comment.