More changes to bar look.
This commit is contained in:
parent
dc9d5df7e4
commit
e0a52c52b0
4 changed files with 13 additions and 13 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue