Adds nameserver and site status i3 blocks
This commit is contained in:
parent
f71a059603
commit
e04ffb56f5
3 changed files with 38 additions and 0 deletions
10
i3/blocks/siteStatus
Executable file
10
i3/blocks/siteStatus
Executable file
|
@ -0,0 +1,10 @@
|
|||
#!/usr/bin/env sh
|
||||
|
||||
echo "$1"
|
||||
echo "$1"
|
||||
curl "$1" 2> /dev/null | grep -q "$2"
|
||||
if [ $? -eq 0 ]; then
|
||||
echo "#00FF00"
|
||||
else
|
||||
echo "#FF8000"
|
||||
fi
|
Loading…
Add table
Add a link
Reference in a new issue