{
  "_comment": "Compose pi data into YOUR OWN Oh My Posh theme instead of using the bundled one. Copy these segments into a block's \"segments\" array in your theme (keep your own colors/separators), then point the extension at that file: PI_OMP_CONFIG=~/your.omp.json. They read the .Env.PI_* variables this extension exports: PI_MODEL, PI_THINKING, PI_CTX_GAUGE, PI_CTX_PERCENT, PI_TOKENS, PI_PROVIDER, PI_CTX_WINDOW, PI_STATUS (selected other-extension statuses, joined), PI_STATUS_COUNT, and PI_STATUS_<KEY> per publisher (e.g. PI_STATUS_REMOTE_PI_SESSION). Run /oh-my-posh-status in pi to list live keys. Each segment self-hides when its data is absent (empty template output).",
  "segments": [
    {
      "type": "text",
      "style": "powerline",
      "powerline_symbol": "",
      "background": "#bd93f9",
      "foreground": "#282a36",
      "template": "{{ if .Env.PI_MODEL }}  {{ .Env.PI_MODEL }}{{ if .Env.PI_THINKING }}  {{ .Env.PI_THINKING }}{{ end }} {{ end }}"
    },
    {
      "type": "text",
      "style": "powerline",
      "powerline_symbol": "",
      "background": "#6272a4",
      "foreground": "#f8f8f2",
      "foreground_templates": [
        "{{ if ge (atoi .Env.PI_CTX_PERCENT) 90 }}#ff5555{{ end }}",
        "{{ if ge (atoi .Env.PI_CTX_PERCENT) 70 }}#ffb86c{{ end }}"
      ],
      "template": "{{ if .Env.PI_CTX_GAUGE }} {{ .Env.PI_CTX_GAUGE }} {{ .Env.PI_CTX_PERCENT }}% {{ end }}"
    },
    {
      "type": "text",
      "style": "powerline",
      "powerline_symbol": "",
      "background": "#44475a",
      "foreground": "#f8f8f2",
      "template": "{{ if .Env.PI_TOKENS }}  {{ .Env.PI_TOKENS }} {{ end }}"
    },
    {
      "type": "text",
      "style": "powerline",
      "powerline_symbol": "",
      "background": "#282a36",
      "foreground": "#8be9fd",
      "template": "{{ if .Env.PI_STATUS }} {{ .Env.PI_STATUS }} {{ end }}"
    }
  ]
}
