move i3blocks to automatically be installed
This commit is contained in:
9
bin/i3blocks/internet
Executable file
9
bin/i3blocks/internet
Executable file
@@ -0,0 +1,9 @@
|
||||
#!/bin/bash
|
||||
|
||||
if ping -c 1 1.1.1.1 > /dev/null 2>&1; then
|
||||
echo "😛"
|
||||
else
|
||||
echo "🤬"
|
||||
echo "$(date)" >> /tmp/internet-outages
|
||||
nfty send "Internet Outage"
|
||||
fi
|
Reference in New Issue
Block a user