Connexion
Traduction Bêta Non Officielle
Cette page a été traduite par PageTurner AI (bêta). Non approuvée officiellement par le projet. Vous avez trouvé une erreur ? Signaler un problème →
Description
Affiche les détails du réseau actuellement connecté.
info
Actuellement, seule Windows est prise en charge. Les contributions pour ajouter la prise en charge de Darwin et Linux sont les bienvenues :)
Exemple de configuration
- json
- yaml
- toml
{
"type": "connection",
"style": "powerline",
"background": "#8822ee",
"foreground": "#222222",
"powerline_symbol": ""
}
type: connection
style: powerline
background: "#8822ee"
foreground: "#222222"
powerline_symbol:
type = "connection"
style = "powerline"
background = "#8822ee"
foreground = "#222222"
powerline_symbol = ""
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
|
Modèle (info)
modèle par défaut
{{ if eq .Type \"wifi\"}}\uf1eb{{ else if eq .Type \"ethernet\"}}\ueba9{{ end }}
Propriétés
| Name | Type | Description |
|---|---|---|
.Type | string | the connection type type. Single values of type above |
.Name | string | the name of the connection |