Skip to main content

Connection

Connection

Show details about the currently connected network.

info

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

Sample Configuration

{
"type": "connection",
"style": "powerline",
"background": "#8822ee",
"foreground": "#222222",
"powerline_symbol": ""
}

Properties

NameTypeDefaultDescription
typestringwifi|ethernetthe type of connection to display. Can be a single value or multiple joined by a pipe | . The first to resolve is shown. Possible values:
  • wifi
  • ethernet
  • bluetooth
  • cellular

Template (info)

default template
{{ if eq .Type \"wifi\"}}\uf1eb{{ else if eq .Type \"ethernet\"}}\ueba9{{ end }}

Properties

NameTypeDescription
.Typestringthe connection type type. Single values of type above
.Namestringthe name of the connection