oh-my-posh/website/docs/segments/system/connection.mdx
Jan De Dobbeleer 2557ee2eab
Some checks failed
Code QL / code-ql (push) Waiting to run
Release / changelog (push) Waiting to run
Release / artifacts (push) Blocked by required conditions
Azure Static Web Apps CI/CD / Build and Deploy (push) Has been cancelled
fix(network): map SSID to .Name
resolves #5742
2024-10-14 13:47:35 +02:00

51 lines
1.9 KiB
Plaintext

---
id: connection
title: Connection
sidebar_label: 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
import Config from '@site/src/components/Config.js';
<Config data={{
"type": "connection",
"style": "powerline",
"background": "#8822ee",
"foreground": "#222222",
"powerline_symbol": "\uE0B0"
}}/>
## Properties
| 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 <inlineCode>\|</inlineCode> . The first to resolve is shown. Possible values:<ul><li>`wifi`</li><li>`ethernet`</li><li>`bluetooth`</li><li>`cellular`</li></ul> |
## Template ([info][templates])
:::note default template
```template
{{ if eq .Type \"wifi\"}}\uf1eb{{ else if eq .Type \"ethernet\"}}\ueba9{{ end }}
```
:::
### Properties
| Name | Type | Description |
| ------- | -------- | ------------------------------------------------------- |
| `.Type` | `string` | the connection type type. Single values of `type` above |
| `.Name` | `string` | the name of the connection |
[templates]: /docs/configuration/templates