add spacestatus for bitbar
This commit is contained in:
commit
4b628fb534
1 changed files with 12 additions and 0 deletions
12
spacestatus.sh
Executable file
12
spacestatus.sh
Executable file
|
@ -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"
|
Loading…
Add table
Reference in a new issue