Files
i3wm-ubuntu-dotfiles/.config/polybar/scripts/network.sh
T
2026-01-29 23:19:44 +05:30

11 lines
168 B
Bash
Executable File

#!/bin/bash
if iwgetid -r >/dev/null; then
SSID=$(iwgetid -r)
IP=$(hostname -I | awk '{print $1}')
echo "$SSID"
else
echo "❌ Disconnected"
fi