US Debt Clock — Omarchy plugin
A live-ticking US national debt counter for the Omarchy status bar.
Treasury only posts one official closing balance per business day — there is no true real-time feed for this (not even from us-debt-clock.com or similar sites). This plugin fetches the two most recent closing balances from the official U.S. Treasury Fiscal Data API ("Debt to the Penny"), derives the average daily increase between them, and projects the number forward every second from the last confirmed close — the same approach the well-known debt-clock sites use. The base figure refetches from Treasury every few hours; the displayed number itself ticks up continuously in between.
Install
omarchy plugin add https://github.com/mudiam/omarchy-debt-clock --enable
omarchy bar put kmudiam.debt-clock --section right
Remove
omarchy plugin remove kmudiam.debt-clock --yes
This takes the widget off the bar and deletes the plugin's files from
~/.config/omarchy/plugins/; no other config is touched.
Behavior
- Left-click: force an immediate refresh from Treasury.
- Right-click: send a desktop notification with the as-of date and the current daily rate.
- Middle-click: open usdebtclock.org for the full live dashboard.
- Hovering shows a tooltip with the Treasury close date and daily rate.
- Adapts to a vertical (left/right-positioned) bar by showing a compact
$40.05 / Tstacked form instead of the full figure, matching how the built-in clock widget handles its own vertical format.
Settings
refreshHours(default6): how often to refetch from Treasury.omarchy bar set kmudiam.debt-clock refreshHours 4
Data source
U.S. Treasury Fiscal Data API — free, public, no API key required. This plugin is not affiliated with or endorsed by the U.S. Treasury, usdebtclock.org, or us-debt-clock.com.