~scripts
51 itemsDownload ./*

51 itemsDownload ./*

..
dzen2
tiling
vosh
4cdl
4trips
alarm
ambient
battery-monitor
brightness.sh
checkit
cleverbot.py
clock
color-gen
colors-hex
colorscheme.sh
compton
dailywall
dmenu
ffthumb
grid
gridmacro
gridmacro.kde
help
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
191•  11 months ago•  DownloadRawClose
11 months ago•  191

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



1 852 718 visits
... ^ v