WinGet
What
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.
Sample Configuration
- json
- yaml
- toml
{
"type": "winget",
"style": "powerline",
"powerline_symbol": "",
"foreground": "#ffffff",
"background": "#0077c2",
"template": " {{ .UpdateCount }} "
}
type: winget
style: powerline
powerline_symbol:
foreground: "#ffffff"
background: "#0077c2"
template: " {{ .UpdateCount }} "
type = "winget"
style = "powerline"
powerline_symbol = ""
foreground = "#ffffff"
background = "#0077c2"
template = " {{ .UpdateCount }} "
Template (info)
default template
\uf409 {{ .UpdateCount }}
Properties
| Name | Type | Description |
|---|---|---|
.UpdateCount | int | the number of packages with available updates |
.Updates | []WinGetPackage | array of packages with available updates |
WinGetPackage
| 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 |