Skip to content

feat: give each screen setup its own bar - #133

Merged
Seb-GRAF merged 2 commits into
mainfrom
feat/screen-setups
Oct 21, 2026
Merged

Seb-GRAF merged 2 commits into
mainfrom
feat/screen-setups

Conversation

@Seb-GRAF

@Seb-GRAF Seb-GRAF commented Oct 20, 2026 •

Copy link
Copy Markdown
Collaborator

Problem

The bar should fit whichever screens are connected: the laptop alone, a monitor alone, both, or with a vertical monitor. Today one configuration serves every combination. To show fewer widgets on the laptop screen when it sits beside a monitor, you have to write profile overrides in JSON (#123). Setup also asked for widget sets in a step of their own instead of offering a ready-made bar.

Fixes #123 with screen setups instead of profiles. Replaces #128, and #124 before it, which both took the profile route.

Changes

  • Screen setups. A setup is the kinds of screens connected: laptop, landscape monitor and vertical monitor (a screen taller than it is wide). Every setup starts on the shared bar, which is the main configuration. Give It Its Own Bar copies the shared file to a file beside it, such as setup-laptop+monitor.json. The button sits at the bottom of Your bar, Appearance and General, and in Settings → General → Screen setups. From then on, Settings, bar editing and command-line changes made while those screens are connected go to that file. StableBar switches files when a screen connects or disconnects. Use Shared Bar… moves a setup's file to the Trash.
  • Existing configurations keep working. Nothing is migrated or written until a setup gets its own bar, so every setup reads config.json as before. A setup's file is a normal configuration: includes, packages, profiles and $CONFIG_DIR work as in the main file.
  • Switching bars saves pending Settings changes to the bar they were made on, discards temporary command-line changes and clears Undo. This stops Undo from writing one bar's history into another file. StableBar refuses to uninstall a package version that another setup's bar uses until it is removed from that bar.
  • Screens per widget. display accepts "monitor", "vertical" and an array of kinds, such as ["builtIn", "vertical"]. The Screens picker in Your bar adds Landscape monitors, Vertical monitors and Several kinds of screens, which shows a switch for each kind. While editing the bar in place, a widget's context menu offers Hide on the kind of screen it was opened on, as long as the widget still shows on another kind.
  • Setup presets. The first step offers Minimal, Developer, Workday, Notch and Everything. A preset fills in the style step and chooses the built-in widgets. The separate widgets step is gone, so setup has three steps.
  • Schema and docs. stablebar.schema.json lists the new kinds. The README gets a new Screen setups section and updates the display kinds, bar editing, saving in Settings and setup.

Testing

  • swift test on top of main with fix: tell Settings and in-place bar editing apart in the menus #134: 246 XCTest and 355 Swift Testing tests pass. With fix: keep notification clearance from freezing the bar #129 merged on top as well, 246 XCTest and 358 Swift Testing tests pass.
    • A new test starts on a docked setup with its own file and switches to the laptop alone on the shared bar. It gives that setup its own bar, edits it, checks that the shared file is untouched, lists the setups, switches back and checks that Undo is cleared.
    • Other new tests cover setup names and file names, the monitor, vertical and kind-array display choices, and loading each preset with the bundled themes.
  • npx commitlint passes for both commits.
  • --validate passes for Resources/config.json and the interactive, modular and window-clearance examples. presentation fails with "Package file does not exist: package.json." The current release fails the same way.
  • Not checked: connecting and disconnecting real screens, including a vertical monitor. The tests switch setups through the same showScreenSetup call that the screen-change notification makes. Screenshots are left out at the maintainer's request.

Merging

Use a merge commit so that both feat: commits, setup presets and screen setups, reach the changelog.

Claude Opus 5.5 via Claude Code in T3 Code

@Seb-GRAF
Seb-GRAF enabled auto-merge October 21, 2026 06:15
@Seb-GRAF
Seb-GRAF merged commit 79992f3 into main Oct 21, 2026
4 checks passed
@Seb-GRAF
Seb-GRAF deleted the feat/screen-setups branch October 21, 2026 06:19
@stablebar-releases

Copy link
Copy Markdown

🎉 This PR is included in version 0.5.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

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Choose which widgets appear on each screen in each profile

1 participant