Merge branch 'master' of Oliver/spacestatus_bitbar into master
This commit is contained in:
commit
bb39298bdd
1 changed files with 8 additions and 5 deletions
|
@ -2,11 +2,14 @@
|
||||||
white='\033[0;37m'
|
white='\033[0;37m'
|
||||||
red='\033[0;31m'
|
red='\033[0;31m'
|
||||||
green='\033[0;32m'
|
green='\033[0;32m'
|
||||||
|
yellow='\033[0;33m'
|
||||||
nocolor='\033[0m'
|
nocolor='\033[0m'
|
||||||
status=$(curl -s http://status.schaffenburg.org)
|
status=$(curl -s http://status.schaffenburg.org)
|
||||||
if [ "$status" == "verriegelt" ]; then
|
if [ "$status" == "verriegelt" ]; then
|
||||||
status="${red}closed${nocolor}"
|
status="${red}closed${nocolor}"
|
||||||
else
|
elif [ "$status" == "offen" ]; then
|
||||||
status="${green}open${nocolor}"
|
status="${green}open${nocolor}"
|
||||||
fi
|
else
|
||||||
|
status="${yellow}not working${nocolor}"
|
||||||
|
fi
|
||||||
echo -e "${white}Spacestatus:${nocolor} $status"
|
echo -e "${white}Spacestatus:${nocolor} $status"
|
||||||
|
|
Loading…
Add table
Reference in a new issue