Connection
What
Show details about the currently connected network.
info
Currently only supports Windows. Pull requests for Darwin and Linux support are welcome :)
Sample Configuration
- json
- yaml
- toml
Options
| Name | Type | Default | Description |
|---|---|---|---|
type | string | wifi|ethernet | the type of connection to display. Can be a single value or multiple joined by a pipe
|
Template (info)
default template
- json
- yaml
- toml
{
"template": " {{ if eq .Type \"wifi\"}}{{ else if eq .Type \"ethernet\"}}{{ end }} "
}
template: ' {{ if eq .Type "wifi"}}{{ else if eq .Type "ethernet"}}{{ end }} '
template = " {{ if eq .Type \"wifi\"}}{{ else if eq .Type \"ethernet\"}}{{ end }} "
Properties
| Name | Type | Description |
|---|---|---|
.Type | string | the connection type type. Single values of type above |
.Name | string | the name of the connection |