From e90da14e7834d220ea9fc77aabcb7f8b1d17b0c1 Mon Sep 17 00:00:00 2001 From: Marvin Borner Date: Tue, 29 Sep 2020 22:03:27 +0200 Subject: Added awesome hue control script --- .scripts/light | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to '.scripts/light') diff --git a/.scripts/light b/.scripts/light index c8b1001..143ba1f 100755 --- a/.scripts/light +++ b/.scripts/light @@ -1,6 +1,9 @@ #!/usr/bin/env bash -if [ -n "$1" ]; then +if [ "$1" = "alert" ]; then + hueadm group 1 select &>/dev/null + exit 0 +elif [ -n "$1" ]; then hueadm group 1 =0 &>/dev/null hueadm group 1 on &>/dev/null exit 0 -- cgit v1.2.3