Initial revision
[wakeup.git] / test / lightctrl-fade
1 #!/bin/bash
2 #
3 #  Test fading lights
4 #
5 PATH=../src:$PATH
6
7 lightcontrol -r 0 -g 0 -b 0 -w 0
8 lightcontrol -l
9 lightcontrol -r 30 -g 40 -b 20 -w 40 -f 120 &
10 sleep 1
11
12 read TACHYON_NAME <lightcontrol.run
13 tachyon -a 10 $TACHYON_NAME
14
15 while [ -f lightcontrol.run ]
16 do
17    lightcontrol -l
18    sleep 1
19 done
20 lightcontrol -l