Omarchy's panel treats percent as a fraction (1.0 = 100%). Vendor creditUsagePercent is 0-100, so 1.0 was rendering as a full bar. After writing grok.json, ping omarchy.agents refresh so the widget rescans without a shell restart.
13 lines
290 B
Desktop File
13 lines
290 B
Desktop File
[Unit]
|
|
Description=Refresh SuperGrok usage for the Omarchy agents panel
|
|
After=network-online.target
|
|
Wants=network-online.target
|
|
|
|
[Service]
|
|
Type=oneshot
|
|
Environment=OMARCHY_PATH=/usr/share/omarchy
|
|
ExecStart=%h/.local/bin/omarchy-grok-usage --write
|
|
Nice=10
|
|
|
|
[Install]
|
|
WantedBy=default.target
|