网络连接
非官方测试版翻译
本页面由 PageTurner AI 翻译(测试版)。未经项目官方认可。 发现错误? 报告问题 →
功能
显示当前连接网络的详细信息。
信息
目前仅支持 Windows 系统,欢迎提交 Pull Request 增加 Darwin 和 Linux 支持 :)
示例配置
- 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 = ""
选项
| 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
|
模板 (信息)
默认模板
{{ if eq .Type \"wifi\"}}\uf1eb{{ else if eq .Type \"ethernet\"}}\ueba9{{ end }}
属性
| Name | Type | Description |
|---|---|---|
.Type | string | the connection type type. Single values of type above |
.Name | string | the name of the connection |