Repository navigation
Description
The problem
On Omarchy, the bar is Quickshell (QML), and Flock appears there only as a tray icon that opens the GTK panel. The icon doesn't render correctly on this bar (#130), and the panel doesn't follow the Omarchy theme, font or bar conventions the way native widgets do.
The obvious fix is a native bar widget, but nothing outside Flock's own apps can read Flock's state reliably. The CLI already covers every action a widget needs:
flock servicesto start and stop servicesflock useto set the PHP versionflock xdebug on|offandflock dumps on|offfor the togglesflock mailandflock logs
Only flock services has --json, though. Anything else would have to scrape human-readable output.
The solution you'd like
Two additions. Nothing that exists today is replaced or changed.
1. --json on three CLI commands, following the pattern of flock services --json:
flock status --json: whether the daemon is running, each service's state, the default PHP version, and whether Xdebug and dump capture are on.flock sites --json: linked and parked sites, with each site's URL, path, PHP version and secure flag.flock php list --json: installed PHP versions, with the default one marked.
The CLI is shared across platforms, so this part works on macOS, Windows and Linux. It also gives anyone a stable base for other integrations, such as Raycast or SwiftBar, PowerToys Run, or Waybar.
2. An Omarchy menu bar widget in linux/omarchy/. It's a Quickshell plugin built only on the CLI above.
- Bar icon: shows whether Flock is running, and flags a stopped or failed service.
- Panel: contains
- a list of sites, each of which opens in the browser
- start and stop buttons for services
- a picker for the default PHP version
- the Xdebug and dump-capture toggles
- shortcuts to Mail, Dumps and Logs
- Look: it follows the Omarchy theme and font automatically.
- Install:
omarchy plugin add, or a later opt-in step in the Linux package. It doesn't replace the GTK app or tray icon.
I'll build both and maintain the widget. I'm happy to split this into two PRs, the JSON output first, and to match whatever field names and directory layout you prefer.
Alternatives you've considered
- Document the daemon's local HTTP API: a larger public surface than
--jsonon the CLI, which already wraps it. - Keep the widget in a separate repo: it would work, but it's harder to discover and would drift from Flock's releases.
- Replace the GTK app, or build one UI for all platforms: that would replace apps you already maintain, which is far more than this feature needs.
Activity
onairmarc commentedon Nov 22, 2026
I'm good with adding a JSON flag to commands. Would it be worth adding --json as a global flag so every command benefits? Doesn't this duplicate the work from #130?
Please split this into two separate tickets. One for the json flag and the other Omarchy support.
krlmrr commentedon Nov 22, 2026
Thanks! I've split this into two issues:
--jsonflag for machine-readable CLI output #199: a global--jsonflagA global flag: yes, that's a better fit. I'd make
--jsona persistent flag on the root command so every command accepts it. Commands with structured output (status,sites,php list,services,isolated,mail,dumps,version) would return JSON. Commands that stream or wrap another process (daemon,logs,share,debug) would exit with a clear "--jsonisn't supported for this command" error instead of silently ignoring it.services --jsonwould keep its current shape. I'd start with the commands the widget needs and add the rest in follow-up PRs.#130: it doesn't duplicate it. #130 fixes the tray icon's SVG so it renders on Quickshell trays, and it's still worth doing for anyone who uses the GTK app on Omarchy. The widget is a separate panel built into the bar that replaces the tray icon for people who prefer it. It doesn't change the icon.
I'll close this one in favour of the two new issues.