hammerspoon2-docs
    Preparing search index...

    Function currentNetwork

    • Returns the SSID of the network currently joined on an interface.

      Parameters

      • Optionalinterface: string | null

        the interface name as returned by interfaces(); omit for the system's default Wi-Fi interface

      Returns string | null

      the SSID string, or null if not joined to a network (or Location Services is not authorized)