12 lines
235 B
Bash
Executable file
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
|