~scripts
55 itemsDownload ./*

55 itemsDownload ./*

..
dzen2
tiling
vosh
4cdl
4trips
alarm
ambient
ana-wall.sh
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
install-all.sh
install-twily.sh
installng
keep-on
mp3ogg
orage
pipes
pipes.x
pipewire_bt.sh
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
481•  2 years ago•  DownloadRawClose
2 years ago•  481

{}
#!/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 033 347 visits
... ^ v