Add check for internet

We will have a happy face (😛) most of the time
When the internet goes down, this will become an steamed face (😤)

Also interesting note, the unicode name for the steamed face is "Face
with Look of Triumph"
This commit is contained in:
David Todd 2019-03-04 23:46:56 -06:00
parent 4f31336cbc
commit d6e33d7a25
2 changed files with 11 additions and 0 deletions

View File

@ -74,3 +74,7 @@ label=🗔
label=📅
interval=30
[internet]
interval=15

7
i3/i3blocks/internet Executable file
View File

@ -0,0 +1,7 @@
#!/bin/bash
if ping -c 1 1.1.1.1 > /dev/null 2>&1; then
echo "😛"
else
echo "😤"
fi