Back to Oh My Posh

Connection

website/docs/segments/system/connection.mdx

29.12.01.8 KB
Original Source

What

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" }}/>

Options

NameTypeDefaultDescription
typestringwifi|ethernetthe 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)

:::note default template

template
 {{ if eq .Type \"wifi\"}}\uf1eb{{ else if eq .Type \"ethernet\"}}\ueba9{{ end }}

:::

Properties

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