~scripts
49 itemsDownload ./*

49 itemsDownload ./*

..
dzen2
tiling
vosh
4cdl
4trips
alarm
ambient
battery-monitor
brightness.sh
checkit
cleverbot.py
clock
color-gen
colors-hex
compton
dailywall
dmenu
ffthumb
grid
gridmacro
gridmacro.kde
importw
indexer
installng
keep-on
mp3ogg
orage
pipes
pipes.x
ports
rain
randwall
rotate.sh
scan.sh
screen-dim
screencast
screencast2
scrot
scrotw
search
skull
slocker
starwars
streamit
sumnum
tty-colorize
usrmount
ytp
ytplay


scriptsbrightness.sh
133•  7 months ago•  DownloadRawClose
7 months ago•  133

{}
#!/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 - 2022
twily at twily dot info



1 805 971 visits
... ^ v