Display current wireless network

Posted in System by matt 3650 days ago

This Geeklet displays the current wireless network. I'm not sure if this is the most efficient way to do it, so if anyone else can think of a better command, let me know. It seems to take a little while to execute, so keep the refresh time quite high unless you want to cause performance problems.


system_profiler SPAirPortDataType | tail -9 | head -1 | sed -e "s/://" | sed -e 's/^[ t]*//'

Font: Lucida Grande
Colour: White
Size: 18

Geeklet files to download


User Avatar
appi 3650 days ago
The command you suggest is a bit slow, and doesn't work with all Macs (it supposes that the right info is at a fixed line in the output). I'll suggest using instead:

/System/Library/PrivateFrameworks/Apple80211.framework/Versions/A/Resources/airport -I | awk '/ SSID/{print $2}'


- ap

Log in to comment or register here.