feat(polybar): update polybar style

This commit is contained in:
Anhgelus Morhtuuzh 2023-07-25 23:46:05 +02:00
parent 9f00495503
commit c57e8ab185
No known key found for this signature in database
GPG key ID: 7765EC9C8383805F
604 changed files with 86703 additions and 181 deletions

View file

@ -0,0 +1,19 @@
#!/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