dotfiles/home/.config/i3/i3blocks/internet
2020-03-25 14:26:51 -05:00

10 lines
173 B
Bash
Executable File

#!/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