aboutsummaryrefslogtreecommitdiff
path: root/wmutils/bin/pulse
diff options
context:
space:
mode:
authorxero <x@xero.nu>2017-01-22 23:22:55 -0500
committerxero <x@xero.nu>2017-01-22 23:22:55 -0500
commit5a4d4a06a287985fbf5b458056881d3d0a0c71aa (patch)
tree0daa8de87d60c396ca3dbadccbdfe735fc5f72d8 /wmutils/bin/pulse
parent4d6c6b497c3e4d5d6bd4e7728f42303f23120f27 (diff)
downloaddotfiles_ascii-5a4d4a06a287985fbf5b458056881d3d0a0c71aa.tar.xz
dotfiles_ascii-5a4d4a06a287985fbf5b458056881d3d0a0c71aa.zip
add wmutils setup
Diffstat (limited to 'wmutils/bin/pulse')
-rwxr-xr-xwmutils/bin/pulse26
1 files changed, 26 insertions, 0 deletions
diff --git a/wmutils/bin/pulse b/wmutils/bin/pulse
new file mode 100755
index 0000000..156c044
--- /dev/null
+++ b/wmutils/bin/pulse
@@ -0,0 +1,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