aboutsummaryrefslogtreecommitdiff
path: root/wmutils/bin/pulse
blob: 156c044de497068251437d4a53e3e1bf850578a2 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
#!/bin/sh
#                  ██                
# ██████          ░██                
#░██░░░██ ██   ██ ░██  ██████  █████ 
#░██  ░██░██  ░██ ░██ ██░░░░  ██░░░██
#░██████ ░██  ░██ ░██░░█████ ░███████
#░██░░░  ░██  ░██ ░██ ░░░░░██░██░░░░ 
#░██     ░░██████ ███ ██████ ░░██████
#░░       ░░░░░░ ░░░ ░░░░░░   ░░░░░░ 
#
FREQ=${FREQ:-0.05}
FILE=$BOOTSTRAP/colors
COLORS=$(tac < $FILE | cat - $FILE | tr -d '#')

while :; do
  for c in $COLORS
  do
    CUR=$(pfw)
    test "`wattr wh $CUR`" != "`wattr wh $(lsw -r)`" && chwb -c $c $CUR
    for WIN in `lsw`
    do
      test "$WIN" != "$CUR" && chwb -c 0x222222 $WIN
    done
    sleep $FREQ
  done
done