dwmblocks scripts.

This commit is contained in:
Bartek Stalewski 2021-06-19 15:50:04 +02:00
parent d25a6431fb
commit 24dd7f46c9
6 changed files with 97 additions and 0 deletions

10
_suckless/_scripts/sb-network Executable file
View file

@ -0,0 +1,10 @@
#!/bin/sh
# 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}'` ;;
esac