Files
epod-window-bar/README.md
Erhan Keseli 70d7ca5efe EPOD Window Bar: a window strip above the macOS Dock
EPOD Window Bar is a macOS agent app. It shows a thin strip above the Dock
with one tab per window of the frontmost application. One click raises the
window.

Build from source with XcodeGen and Xcode. Signing uses Config.xcconfig
(ad-hoc by default; a local Local.xcconfig can set a team ID). The app needs
Accessibility and Screen Recording permissions, and runs in a reduced mode
without Screen Recording.

See README.md and docs/ for details.
2026-11-21 21:41:06 +01:00

140 lines
4.7 KiB
Markdown

# EPOD Window Bar
EPOD Window Bar is a macOS agent application. It shows a thin strip directly
above the Dock. The strip shows the windows of the frontmost application as
tabs. One click on a tab raises that window.
macOS shows applications in the Dock. macOS does not show the individual
windows. When one application has many windows, it is slow to find the correct
window. EPOD Window Bar fills this gap. The strip shows every window of the
frontmost application, so one click reaches the correct window.
The Dock does not change. EPOD Window Bar adds to the Dock. It does not replace
the Dock.
## Requirements
- macOS 14 (Sonoma) or later.
- Full Xcode. The build tool `xcodebuild` needs full Xcode. The Command Line
Tools alone are not enough.
- XcodeGen. Install it with `brew install xcodegen`.
## Build from source
There is no prebuilt release. You build the application from source.
The repository does not contain the Xcode project. XcodeGen generates the
project from `project.yml` and the source folders.
### 1. Signing
The file `Config.xcconfig` holds the signing settings. The default is ad-hoc
signing. The default build needs no Apple account.
> **Note.** With ad-hoc signing, macOS resets the Accessibility permission and
> the Screen Recording permission after each build. The signature changes on
> each build, and macOS stores the permissions per signature.
To keep the permissions between builds, sign with a stable Apple Development
certificate:
1. Copy the example file: `cp Local.xcconfig.example Local.xcconfig`.
2. Set your team ID in `Local.xcconfig`:
```
DEVELOPMENT_TEAM = YOURTEAMID
CODE_SIGN_STYLE = Automatic
```
3. Find your team ID in the `OU` field of the Apple Development certificate.
The value in parentheses in the `CN` field is the personal ID, not the team
ID. Read the subject with:
```sh
security find-certificate -c "Apple Development" -p | openssl x509 -noout -subject
```
Read the `OU` field of the output. That value is the team ID.
`Local.xcconfig` is in `.gitignore`. The file stays on your machine.
### 2. Build and run
```sh
./scripts/run.sh
```
The script generates the project, builds the application, copies it to
`~/Applications/EPOD Window Bar.app`, and starts it. Always run the application
from `~/Applications`.
### 3. Run the tests
```sh
xcodebuild test -scheme EPODWindowBar
```
## Permissions
EPOD Window Bar needs two permissions.
- **Accessibility.** The application reads, raises, minimizes, closes, and
resizes windows.
- **Screen Recording.** The application reads the window titles of windows on
other desktops through `CGWindowListCopyWindowInfo`. Without this permission,
the title of a window on another desktop is empty.
The application works in a reduced mode without Screen Recording. In reduced
mode, the strip shows only the windows on the current desktop. The menu bar
item shows a warning icon.
At the first start, the application shows an onboarding window. The window has
a button for each permission. Each button opens the correct System Settings
pane.
## Recommended system setting
Turn on this setting: **System Settings → Desktop & Dock → "When switching to
an application, switch to a Space with open windows for the application"**.
With this setting on, a click on a tab of a window on another desktop switches
to that desktop and raises the window.
## Known limits
- The application uses private macOS APIs. A macOS update can change or remove
these functions. The application loads each symbol at runtime. If a symbol is
missing, the application disables the feature and does not crash. The private
symbols are:
- `_AXUIElementGetWindow`
- `CGSMainConnectionID`
- `CGSCopyManagedDisplaySpaces`
- `CGSCopySpacesForWindows`
- `_AXUIElementCreateWithRemoteToken`
- The strip does not show the native tabs inside one window. Examples are the
tabs of Finder, Terminal, Safari, and a web browser.
- The strip is on the Dock screen only. The application does not add a strip to
a second monitor.
- With Stage Manager on, the strip shows, but the application does not constrain
the windows.
## Debugging
The menu bar item has two debug actions.
- **Copy window dump.** The action puts the window dump on the clipboard. You
read the dump without a log tool.
- **Dump windows to log.** The action writes the window dump to the log.
Read the log with one of these commands:
```sh
log stream --predicate 'subsystem == "com.epod.windowbar"' --level debug
log show --last 5m --predicate 'subsystem == "com.epod.windowbar"' --info
```
## Trademarks
EPOD Window Bar is not affiliated with Apple Inc. "macOS", "Dock", "Finder",
"Terminal", "Safari", and "Xcode" are trademarks of Apple Inc.