3 . /usr/pandora/scripts/op_paths.sh
7 maxbright="$(cat $SYSFS_BACKLIGHT/max_brightness)"
8 curbright="$(cat $SYSFS_BACKLIGHT/brightness)"
11 newbright=$(zenity --scale --text "Set brightness" --min-value=$minbright --max-value=$maxbright --value=$curbright --step 1)
15 if [ $newbright ]; then
16 if [ $newbright -le $minbright ]; then newbright=$minbright; fi
17 if [ $newbright -ge $maxbright ]; then newbright=$maxbright; fi
18 echo $newbright > $SYSFS_BACKLIGHT_BRIGHTNESS