#!/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