Skip to main content

WiFi

What#

Show details about the currently connected WiFi network.

info

Currently only supports Windows and WSL. Pull requests for Darwin and Linux support are welcome :)

Sample Configuration#

{
"type": "wifi",
"style": "powerline",
"background": "#8822ee",
"foreground": "#222222",
"background_templates": [
"{{ if (not .Connected) }}#FF1111{{ end }}",
"{{ if (lt .Signal 60) }}#DDDD11{{ else if (lt .Signal 90) }}#DD6611{{ else }}#11CC11{{ end }}"
],
"powerline_symbol": "\uE0B0",
"properties": {
"template": "{{ if .Connected }}\uFAA8{{ else }}\uFAA9{{ end }} {{ if .Connected }}{{ .SSID }} {{ .Signal }}% {{ .ReceiveRate }}Mbps{{ else }}{{ .State }}{{ end }}"
}
}

Properties#

Template Properties#

  • .Connected: bool - if WiFi is currently connected
  • .State: string - WiFi connection status - e.g. connected or disconnected
  • .SSID: string - the SSID of the current wifi network
  • .RadioType: string - the radio type - e.g. 802.11ac, 802.11ax, 802.11n, etc.
  • .Authentication: string - the authentication type - e.g. WPA2-Personal, WPA2-Enterprise, etc.
  • .Channel: int - the current channel number
  • .ReceiveRate: int - the receive rate (Mbps)
  • .TransmitRate: int - the transmit rate (Mbps)
  • .Signal: int - the signal strength (%)