跳转到主内容

网络连接

非官方测试版翻译

本页面由 PageTurner AI 翻译(测试版)。未经项目官方认可。 发现错误? 报告问题 →

功能

显示当前连接网络的详细信息。

信息

目前仅支持 Windows 系统,欢迎提交 Pull Request 增加 Darwin 和 Linux 支持 :)

示例配置

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

选项

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

模板 (信息)

默认模板
 {{ if eq .Type \"wifi\"}}\uf1eb{{ else if eq .Type \"ethernet\"}}\ueba9{{ end }}

属性

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