website/docs/segments/system/winget.mdx
Displays the number of available WinGet package updates. This segment only appears when there are updates available.
:::info This segment is only available on Windows. :::
import Config from "@site/src/components/Config.js";
<Config data={{ type: "winget", style: "powerline", powerline_symbol: "\uE0B0", foreground: "#ffffff", background: "#0077c2", template: " \uf409 {{ .UpdateCount }} ", cache: { duration: "24h", strategy: "device", }, }} />
:::note default template
\uf409 {{ .UpdateCount }}
:::
| Name | Type | Description |
|---|---|---|
.UpdateCount | int | the number of packages with available updates |
.Updates | []WinGetPackage | array of packages with available updates |
| Name | Type | Description |
|---|---|---|
.Name | string | the package name |
.ID | string | the package ID |
.Current | string | the currently installed version |
.Available | string | the available version for update |