From 4b628fb534341138a7c5ad28317e858edb72f89d Mon Sep 17 00:00:00 2001 From: byteturtle Date: Sat, 16 Sep 2017 18:41:35 +0200 Subject: [PATCH] add spacestatus for bitbar --- spacestatus.sh | 12 ++++++++++++ 1 file changed, 12 insertions(+) create mode 100755 spacestatus.sh diff --git a/spacestatus.sh b/spacestatus.sh new file mode 100755 index 0000000..e858144 --- /dev/null +++ b/spacestatus.sh @@ -0,0 +1,12 @@ +#!/bin/bash +white='\033[0;37m' +red='\033[0;31m' +green='\033[0;32m' +nocolor='\033[0m' +status=$(curl -s http://status.schaffenburg.org) +if [ "$status" == "verriegelt" ]; then +status="${red}closed${nocolor}" +else +status="${green}open${nocolor}" +fi +echo -e "${white}Spacestatus:${nocolor} $status"