~scriptsdisplay
10 itemsDownload ./*

10 itemsDownload ./*

..
ana-wall-login.sh
ana-wall-next.sh
ana-wall-refresh.sh
ana-wall.sh
brightness.sh
brightness_change
keep-on.sh
screen-dim
screenshot.sh
xorient.sh


displaybrightness.sh
603•  2 years ago•  DownloadRawClose
2 years ago•  603

{}
#!/bin/bash

PER=$1

case $PER in
    ''|*[!0-9]*)
        #non numeric
        echo "Missing input value 5-100"
        exit 1
        ;;
    *)
        #good
esac

if [ $PER -lt 5 ]; then PER=5; fi

#VAL=$(( $PER / 100 ))
VAL=$(echo "$PER / 100" | bc -l)

xrandr --output HDMI-1 --brightness $VAL

exit

Top
©twily.info 2013 - 2024
twily at twily dot info



2 158 886 visits
... ^ v