Logo
Explore Help
Sign In
c0de/dotfiles
1
0
Fork 0
You've already forked dotfiles
Code Issues Pull Requests Projects Releases Wiki Activity
Files
62a40cac7ee3d33e91d19be1b0e199511723c626
dotfiles/i3/i3blocks/internet

10 lines
173 B
Plaintext
Raw Normal View History

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"
2019-03-04 23:46:56 -06:00
#!/bin/bash
if ping -c 1 1.1.1.1 > /dev/null 2>&1; then
echo "😛"
else
echo "😤"
log the date and time the internet goes out
2019-10-08 19:42:26 -05:00
echo "$(date)" >> /tmp/internet-outages
notify when internet goes down
2019-10-14 11:49:32 -05:00
nfty send "Internet Outage"
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"
2019-03-04 23:46:56 -06:00
fi
Reference in New Issue Copy Permalink
Powered by Gitea Version: 1.24.3 Page: 30ms Template: 2ms
English
Bahasa Indonesia Deutsch English Español Français Gaeilge Italiano Latviešu Magyar nyelv Nederlands Polski Português de Portugal Português do Brasil Suomi Svenska Türkçe Čeština Ελληνικά Български Русский Українська فارسی മലയാളം 日本語 简体中文 繁體中文(台灣) 繁體中文(香港) 한국어
Licenses API