dwmblocks scripts.
This commit is contained in:
parent
d25a6431fb
commit
24dd7f46c9
6 changed files with 97 additions and 0 deletions
10
_suckless/_scripts/sb-network
Executable file
10
_suckless/_scripts/sb-network
Executable 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
|
Loading…
Add table
Add a link
Reference in a new issue