Skip to content

Omarchy menu bar widget, plus --json output on status, sites and php list #198

Closed as not planned

Description

@krlmrr

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 services to start and stop services
  • flock use to set the PHP version
  • flock xdebug on|off and flock dumps on|off for the toggles
  • flock mail and flock 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 --json on 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

  1. self-assigned this
    on Nov 22, 2026
  2. onairmarc commented on Nov 22, 2026

    @onairmarc
    Member

    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.

  3. krlmrr commented on Nov 22, 2026

    @krlmrr
    Author

    Thanks! I've split this into two issues:

    A global flag: yes, that's a better fit. I'd make --json a 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 "--json isn't supported for this command" error instead of silently ignoring it. services --json would 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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions