This great blue color for notifications in dwmblocks.

This commit is contained in:
Bartek Stalewski 2021-08-23 12:14:51 +02:00
parent d7bf2ea26d
commit a40c419740
5 changed files with 6 additions and 10 deletions

View file

@ -1,10 +1,6 @@
#!/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) printf "^c#161616^^b#fd4285^\ue63e no wifi^d^" ;;
down) printf "^c#eeeeee^^b#005577^\ue63e no wifi^d^" ;;
up) printf "\ue63e $(iw dev wlp3s0 info | awk '/ssid/ {print $2}')" ;;
esac