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
283a65dcfd7b1f2582fab4f37319da23469ce34d
dotfiles/i3/i3blocks/internet

9 lines
141 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
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: 588ms Template: 6ms
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