dotfiles/eww/scripts/lan.sh

15 lines
261 B
Bash
Raw Normal View History

2022-05-22 15:32:36 -04:00
#!/usr/bin/bash
ETH="$(cat /sys/class/net/enp0s31f6/operstate)"
WAN="$(cat /sys/class/net/wlan0/operstate)"
if [[ "$ETH" == "up" ]]; then
#echo ""
echo "󰈀"
2022-05-22 15:32:36 -04:00
exit
elif [[ "$WAN" == "up" ]]; then
echo ""
else
#echo ""
#echo "睊"
echo "󰈂"
2022-05-22 15:32:36 -04:00
fi