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:
parent
4f31336cbc
commit
d6e33d7a25
@ -74,3 +74,7 @@ label=🗔
|
|||||||
label=📅
|
label=📅
|
||||||
interval=30
|
interval=30
|
||||||
|
|
||||||
|
[internet]
|
||||||
|
interval=15
|
||||||
|
|
||||||
|
|
||||||
|
7
i3/i3blocks/internet
Executable file
7
i3/i3blocks/internet
Executable file
@ -0,0 +1,7 @@
|
|||||||
|
#!/bin/bash
|
||||||
|
|
||||||
|
if ping -c 1 1.1.1.1 > /dev/null 2>&1; then
|
||||||
|
echo "😛"
|
||||||
|
else
|
||||||
|
echo "😤"
|
||||||
|
fi
|
Loading…
Reference in New Issue
Block a user