dotfiles/Utils/urgent.sh
Frank Villaro-Dixon cb81af8b42 dwm config
2014-06-09 23:13:34 +02:00

19 lines
389 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 | sudo tee $LIGHT
sleep .1
echo $STATE | sudo tee $LIGHT
sleep .1
echo $INVERSE | sudo tee $LIGHT
sleep .1
echo $STATE | sudo tee $LIGHT