Repository navigation
Closed
Labels
Description
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 jsonandomniwmctl query windows --format json. Workspaces carryrawName,displayName,isFocused,isVisibleanddisplay; windows carryworkspace,app.name,app.bundleId,titleandisFocused. - Live updates:
omniwmctl subscribe active-workspace,layout-changed,windows-changed,focus,display-changed --reconnect --format ndjsonstreams one JSON line per change and resubscribes when OmniWM relaunches, much like the AeroSpace subscription inWorkspaces.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_…), whileWorkspaceWindow.idis anInt. Focusing a window needs the opaque id. - Display ids are strings; map them to the bar's screens the way
yabaiSnapshotmaps yabai display ids. - The single
workspace-barquery groups apps per monitor but has no per-workspace visible flag and follows OmniWM's own bar settings, soworkspacespluswindowslooks 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, anddocs/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
- Support yabai in workspace widgets #6 added yabai as a second source (PR feat: add yabai workspaces, profile editing, app icon and MIT license #21).
- Show macOS Spaces in workspace widgets without a tiling window manager #84 added macOS Spaces (PR feat: show macOS Spaces in workspace widgets without a tiling window manager #194).
- Show each window in workspace widgets, with its title, and focus it on click #73 / PR feat: show and focus individual workspace windows #113 added per-window items, which this source should support too.
Triaged by Claude Code (Claude Opus 5.5).
Activity
chore(release): 0.7.0 [skip ci]
stablebar-releases commentedon Oct 23, 2026
🎉 This issue has been resolved in version 0.7.0 🎉
The release is available on GitHub release
Your semantic-release bot 📦🚀