dotfiles/Utils/urgent.sh
Frank Villaro-Dixon 60e0ec1df7 Some utils
2013-11-07 15:49:29 +01:00

19 lines
348 B
Bash
Executable file

#!/bin/bash
BEFORE=`xbacklight`
xbacklight -set 0 -time 0 -steps 1
sleep 0.1
xbacklight -set $BEFORE -time 0 -steps 1
exit
LIGHT=/sys/class/leds/tpacpi\:\:thinklight/brightness
STATE=`cat $LIGHT`
INVERSE=`echo 255-$STATE | bc -l`
echo $INVERSE > $LIGHT
sleep .1
echo $STATE > $LIGHT
sleep .1
echo $INVERSE > $LIGHT
sleep .1
echo $STATE > $LIGHT