Skip to main content

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

{
"type": "winget",
"style": "powerline",
"powerline_symbol": "",
"foreground": "#ffffff",
"background": "#0077c2",
"template": "  {{ .UpdateCount }} "
}

Template (info)

default template
 \uf409 {{ .UpdateCount }} 

Properties

NameTypeDescription
.UpdateCountintthe number of packages with available updates
.Updates[]WinGetPackagearray of packages with available updates

WinGetPackage

NameTypeDescription
.Namestringthe package name
.IDstringthe package ID
.Currentstringthe currently installed version
.Availablestringthe available version for update