dotfiles/Utils/urgent.sh
Frank Villaro-Dixon 92ee9ff38d Urgent made better
2013-10-06 19:55:14 +02:00

12 lines
235 B
Bash
Executable file

#!/bin/bash
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