More changes to bar look.

This commit is contained in:
Bartek Stalewski 2021-07-26 16:52:58 +02:00
parent dc9d5df7e4
commit e0a52c52b0
4 changed files with 13 additions and 13 deletions

View file

@ -1,10 +1,10 @@
#!/bin/sh
#!/bin/bash
# Show wifi 📶 and percent strength or 📡 if none.
# Show 🌐 if connected to ethernet or ❎ if none.
# Show 🔒 if a vpn connection is active
case "$(cat /sys/class/net/w*/operstate 2>/dev/null)" in
down) echo "^c#161616^^b#fd4285^NO WIFI^d^" ;;
up) echo `iw dev wlp3s0 info | awk '/ssid/ {print $2}'` ;;
down) printf "^c#161616^^b#fd4285^\ue63e no wifi^d^" ;;
up) printf "\ue63e $(iw dev wlp3s0 info | awk '/ssid/ {print $2}')" ;;
esac