Skip to content

Show OmniWM workspaces in workspace widgets #267

Closed

Description

@M4n0x

Problem

OmniWM is a tiling window manager for Apple Silicon Macs on macOS 26 or later, with Niri-style scrolling and Dwindle layouts. workspaceSource accepts only aerospace, yabai and spaces, so OmniWM users can't show their workspaces in a workspaces widget.

Proposal

Add "workspaceSource": "omniwm", read through omniwmctl, OmniWM's command-line tool for its local IPC socket:

  • Snapshot: omniwmctl query workspaces --format json and omniwmctl query windows --format json. Workspaces carry rawName, displayName, isFocused, isVisible and display; windows carry workspace, app.name, app.bundleId, title and isFocused.
  • Live updates: omniwmctl subscribe active-workspace,layout-changed,windows-changed,focus,display-changed --reconnect --format ndjson streams one JSON line per change and resubscribes when OmniWM relaunches, much like the AeroSpace subscription in Workspaces.swift. Users don't need to configure signals, unlike yabai.
  • Clicks: omniwmctl workspace focus-name <raw name> switches workspace; omniwmctl window focus <id> focuses a window.

Points to settle:

  • OmniWM window ids are opaque session strings (ow_…), while WorkspaceWindow.id is an Int. Focusing a window needs the opaque id.
  • Display ids are strings; map them to the bar's screens the way yabaiSnapshot maps yabai display ids.
  • The single workspace-bar query groups apps per monitor but has no per-workspace visible flag and follows OmniWM's own bar settings, so workspaces plus windows looks safer.
  • IPC is off by default (Enable IPC in OmniWM's status menu), and the CLI needs Install CLI to PATH. The widget's error should say so.
  • Surfaces: WorkspaceSource, stablebar.schema.json, the source picker in Settings → General, window-manager detection and gap guidance in setup, the bar menu's reconnect item, docs/widgets.md, and docs/getting-started.md (OmniWM's top outer gap for clearance).

Possible today

A script widget can run omniwmctl query workspaces --format text, and omniwmctl watch active-workspace --exec /Applications/StableBar.app/Contents/MacOS/StableBar --trigger omniwm can refresh it. That gives text only: no workspace cells, app icons, focus styling or click to switch.

Related

Triaged by Claude Code (Claude Opus 5.5).

Activity

  1. added
    enhancement
    on Oct 23, 2026
  2. stablebar-releases commented on Oct 23, 2026

    @stablebar-releases

    🎉 This issue has been resolved in version 0.7.0 🎉

    The release is available on GitHub release

    Your semantic-release bot 📦🚀

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementreleased

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions