diff options
| author | William Hergès <william@herges.fr> | 2025-08-12 15:19:57 +0200 |
|---|---|---|
| committer | William Hergès <william@herges.fr> | 2025-08-12 15:19:57 +0200 |
| commit | 4a21ae6fcdfcd0051a2e6fee641cd344c01dac83 (patch) | |
| tree | a3741ca7f848d0f5213915d82f78fd0039a874f9 /config/polybar/hack/scripts/check-network | |
| parent | fed5ed81fbf64942dab81e7afd1eac5651290631 (diff) | |
Reset everything
Diffstat (limited to 'config/polybar/hack/scripts/check-network')
| -rwxr-xr-x | config/polybar/hack/scripts/check-network | 19 |
1 files changed, 0 insertions, 19 deletions
diff --git a/config/polybar/hack/scripts/check-network b/config/polybar/hack/scripts/check-network deleted file mode 100755 index 53ba282..0000000 --- a/config/polybar/hack/scripts/check-network +++ /dev/null @@ -1,19 +0,0 @@ -#!/usr/bin/env bash - -count=0 -connected="說" -disconnected="ﲁ" - -ID="$(ip link | awk '/state UP/ {print $2}')" - -while true; do - if (ping -c 1 archlinux.org || ping -c 1 google.com || ping -c 1 bitbucket.org || ping -c 1 github.com || ping -c 1 sourceforge.net) &>/dev/null; then - if [[ $ID == e* ]]; then - echo "$connected Online" ; sleep 25 - else - echo "$connected Online" ; sleep 25 - fi - else - echo "$disconnected Offline" ; sleep 5 - fi -done |
