Skip to content

Let the Deskbar stand at either edge, at any width, compact - #120

Merged
bitemyapp merged 6 commits into
mainfrom
codex/migrate-aizome-78
Oct 30, 2026
Merged

bitemyapp merged 6 commits into
mainfrom
codex/migrate-aizome-78

Conversation

@bitemyapp

@bitemyapp bitemyapp commented Oct 27, 2026 •

Copy link
Copy Markdown
Owner

The Deskbar is fixed at the top right, 232pt wide. On a big screen at scale 1 that's a narrow column. If you want it on the left, or smaller, the only option today is to fold it away. Haiku, which the Deskbar comes from, lets you drag it to either edge.

This lets you move and resize it from the Deskbar itself, with no config file needed:

  • A grip along its top (a row of dots, like Haiku's knob). Drag it and let go on the other half of the screen, and the Deskbar moves to that edge.
  • The inner edge shows the resize cursor and a focus-coloured line when the pointer is on it. Drag it to change the width. While the button is held, an outline shows the new width over the Deskbar. The Deskbar takes that width, and saves it, when you let go. The windows beside it are fitted once, not at every step, so a drag out and back leaves them as they were. If the release never reaches the Deskbar (another grab takes the pointer, the screen locks, or the Deskbar or its display goes), the drag ends and the width stays as it was.
  • The edge takes only drags. A click there, other buttons and the wheel reach the row under it. That row also shows its hover and its tooltip there, so in Icons Only an app's name appears over the whole icon.
  • Right-click the grip for At the Left / At the Right and Icons Only / Slim / Standard / Wide / Wider. Ticks mark the current side and size. Sizes wider than the display has room for are disabled. When the display is too narrow for the width you chose, no size is ticked. Instead, a line, As Wide as This Display Allows, gives the width the Deskbar has there.
  • Settei → Desktop & Deskbar gets Stands at (Left / Right) and Width (the same five sizes). Settei's search finds both.

Narrower than the full Deskbar, it shows the same information in less space:

Width Shows
200–400pt (Full) Everything, as today
120–199pt (Slim) Everything a size smaller; each notification as a single line with a red marker; unread count as a badge
48pt (Icons Only) Each app's icon, a small window-shaped mark for each window (focused one filled, hidden ones dashed), a red unread badge on the icon, Shelf items as tiles; names in tooltips

Dragging the edge below Slim snaps it to Icons Only. On the main display the width is also kept within 45% of the display's width. That way the Deskbar always stands in one half of the screen, and filled and split windows stay beside it. The setting is left as it is, so a wider display gives the width back.

The contributor's renders, from the ignored deskbar_designs test (hotlinked from theoogabear/aizome at a pinned commit; please leave them out of the squash message):

Standard (232pt) Slim (150pt) Icons Only (48pt) Icons Only, right, Day
The grip under the pointer The edge under the pointer The grip's menu

The renders are older than review. They don't show the outline that marks the width during an edge drag, or the menu's line for a narrowed Deskbar.

Settings

[deskbar]
side = "left"   # or "right" (the default)
width = 300     # 120–400; below 84 it snaps to 48, Icons Only

Both have defaults, so existing files behave exactly as before. Older shells ignore the keys.

What changes

  • Shell (deskbar_glue.rs):
    • The surface anchors to the chosen edge.
    • It reopens when the side changes, as it already does when auto-hide or the main display changes.
    • Grip and edge drags and the grip's menu (Shell::deskbar_place_menu) are handled here, through a new Action::PlaceDeskbar that saves the section.
    • An edge drag shows its width on an aizome-deskbar-preview overlay surface, which takes no input and reserves nothing. The Deskbar's own layer size changes once, on release, so the compositor refits once.
    • The drag and its preview end, unsaved, in four cases: the Deskbar loses the pointer with the button down, the screen locks (Shell::lock), the Deskbar closes, or its display goes.
    • The width is capped at 45% of the main display (deskbar::most_width and fit_width).
  • deskbar.rs:
    • Every row follows the model's width.
    • The grip stays fixed above the scrolling list, so insertion_at and app reordering are unchanged.
    • On the left, the Deskbar casts the shadow every other floating thing does (right and down), and its edge highlights face the screen.
  • deskbar_compact.rs (new): Slim and Icons Only.
  • Kit (aizome-kit, aizome-face): widgets can take only drags (Widget::drags_only, Drawn::drags_only).
    • A left press on such a widget that ends without a drag reaches what lies under it as a click, once released. Other buttons, the wheel and drops go straight there.
    • What lies under it also shows its hover and tooltip (Win::hot_under). The widget's own tooltip, if it has one, wins.
    • If the pointer leaves the window while such a widget holds a press, the kit lets go of the press. The shell's drawn elements then forget it, so the next click isn't swallowed and hovering doesn't keep dragging.
    • Only the Deskbar's edge uses it, so nothing else changes.
  • Elsewhere:
    • The menu bar's systray header follows a wider full Deskbar at the right, and keeps its usual width otherwise.
    • Critical notification cards leave room only for a Deskbar on the right.
    • Desktop icons line up clear of a Deskbar on the left.
    • Dragging a window to a Desk and dropping a dragged app both use the real width.
    • docs/shell.md covers the keys, range and snapping, the grip, the edge and the menu, how a drag ends without its release, and the compact layouts. docs/kit.md describes widgets that take only drags, under Writing a widget. The README says how to move and resize the Deskbar.
  • Compositor: unchanged. wm::beside and deskbar_rect already handle a Deskbar on the left at any width.

What changed in review

The branch was reviewed twice after migration. Both rounds were tested on wx.

  1. Windows refitted at every pointer step. Dragging the edge resized the layer surface at every step, so free windows were shrunk and never grew back. The width now shows as an outline and is taken on release.
  2. The 5pt edge swallowed clicks on the rows' inner edge, including on the default right-side Deskbar. The kit's drags_only now passes clicks, other buttons and the wheel to the row underneath.
  3. A wide Deskbar on a narrow display stopped reserving space for windows. The width is now capped at 45% of the main display.
  4. Settei's search now finds the two new rows.
  5. docs/shell.md now describes the feature.
  6. Polish:
    • The outline no longer stays on screen when the release never comes.
    • The grip's menu no longer ticks Wider for a 400pt Deskbar narrowed to 360pt on an 800pt display.
    • Rows under the edge strip now show their hover and tooltip.
    • The fix commit's subject is reworded, and the kit note moved out of the performance section.

Design defaults are unchanged: the always-visible 10pt grip, the 5pt edge over the rows, right side at 232pt, and the five named sizes.

Trying it without restarting your shell

cargo run --release -p aizome-shell --example deskbar_preview opens the Deskbar in an ordinary window with sample apps, windows, notifications and Shelf items. The grip, edge and menu all work in it. The example resizes live as you drag, while the real shell shows the outline. Its menu also has no narrowed-width line.

DESKBAR_DESIGNS=<dir> DESKBAR_WALLPAPER=<image> cargo test -p aizome-shell --test deskbar_designs -- --ignored renders the pictures above. Both are optional; drop either if you'd rather not carry them.

Checks

All run on wx-workstation, on the exact tree of the head commit d24eeb2e, which is this branch merged with main d717500a:

  • cargo metadata --locked passes. cargo clippy --locked --all-targets -- -D warnings is clean for aizome-config, aizome-kit, aizome-face, aizome-shell, aizome-comp, aizome-comp-core and aizome-settei.
  • cargo fmt --all -- --check reports only two diffs, in aizome-comp-core/build.rs and aizome-comp-core/src/session.rs. Both are on main too, and this branch doesn't touch either file.
  • cargo test over the same crates: 716 passed, 5 failed, 18 ignored. All 5 failures are known to happen only on wx:
    • aizome-comp's grim_wlr_randr_and_lswt_work and its two reload/restart tests;
    • aizome-shell's the_whole_screen and pictures_of_the_lock_screen goldens. Their wallpapers are at a laptop-only path, and they differ by the same 65.09% and 23.10% as on main.
    • All 8 recording::run tests pass.
  • New tests:
    • tests/deskbar.rs:
      • an edge drag previews, and resizes once on release;
      • a drag out and back changes nothing;
      • a drag ends when the Deskbar closes or its display goes;
      • locking the screen mid-drag ends it, and the release after it saves nothing;
      • the width is capped on a narrow display and comes back on a wide one;
      • the grip's menu ticks no size and shows the narrowed width (360pt for 400, 270pt for Wide on 600pt), and ticks the size again on the wide display;
      • a click, a right-click and the wheel on the edge reach the rows under it;
      • in Icons Only, an icon under the edge shows its hover, pixel for pixel as in its middle, and its tooltip, while the edge shows its line.
    • deskbar_glue unit tests:
      • a click on a window row under the edge focuses that window;
      • when the pointer leaves mid-drag, the outline goes and nothing is saved, hovering drags nothing, the next click on foot's count still folds its windows, and the edge drags again.
    • An aizome-face test: a drawn element that takes only drags stops dragging once the kit lets go of its press, and a click on it reaches what's under it.
    • A Settei search test for the two new rows.
  • Mutation checks: each of these makes its new test fail.
    • Keeping the press in the kit when the pointer leaves.
    • Not ending the drag in the shell when the pointer leaves.
    • Not painting the hover under the edge.
    • Taking tooltips only from the edge's own path.
    • Removing the drawn element's reset.
  • With the real compositor and shell (layout_desktop -- --ignored), real_deskbar_edge_resizes_at_either_side passes. It checks that a free window keeps its geometry during the drag, is fitted once on release, and is left alone by a drag out and back. It fails against the shell before the first review fix (1000 to 953pt mid-drag). With this round's "leave ends the drag" change it still passes at both sides, so the real compositor sends no leave during an edge drag. real_deskbar_autohides_after_leaving_its_app_rows also passes, and layout -- deskbar passes 3 of 3.
  • The kit's perf budget test passes; hovering a button in a ~200-widget pane takes 0.01ms at p50.
  • nix build .#aizome (release LTO, with its check phase) passes. So do these VM checks: aizome-checks.file-panel-multiple, session, standard-menu and tokei-reorder. The previous round's settings VM, run on the tree before this round, also passed.

Not tested

  • None of this has been tried on hardware, including the X1 Carbon. The contributor tried the original branch live on a real session: left side, 300pt, all three sizes, grip and edge.
  • The lost-release path is tested headlessly only: the harness sends the leave, and the real-compositor test shows that no leave arrives in a normal drag. No test makes a compositor grab, such as a recovery reset, take the pointer mid-drag.
  • A Deskbar on the left hasn't been run in a VM.

On the X1 Carbon, worth checking:

  • clicking and hovering a row's first 5pt;
  • the outline at fractional scale, at both sides;
  • that filled and split windows reflow once, on release;
  • locking with Super+L, or closing the lid, mid-drag;
  • the narrowed-width line on a narrow or portrait primary display;
  • on runnymede, the outline on a primary display that isn't at the layout origin.

Questions for you

  1. Systray header with the Deskbar on the left. The header keeps its usual width and no longer lines up with anything. Would you rather the Toolchest or the Desks strip line up with the Deskbar instead?
  2. The grip. It adds 10pt above the first app on every Deskbar, including the default right-side one on installed systems and the live ISO. Keep it always visible, or only show it on hover?
  3. Reordering in the compact sizes. Slim and Icons Only don't support drag-to-reorder yet (the full size does; the app menu's Move Up and Move Down work everywhere). Worth adding here, or as a follow-up?
  4. The edge-drag outline. Review replaced live resizing of the Deskbar's rows with an outline and a resize on release. Keep that? The alternative is to have the compositor hold off refitting until release, while the Deskbar resizes live.
  5. The kit's drags_only. It's opt-in, only the Deskbar's edge uses it, and it ships with the release ISO. Keep it? The narrower alternative is to move the resize target into the 3pt shadow band.

Follow-ups

  • The shell's save_section writes its whole cached settings.toml. A grip-menu choice or an edge release can therefore revert a Settei change made within the watcher's delay. This race isn't new: ToggleDeskbar, pins and reordering have it too. The shell should re-read the file before writing, as Settei does.
  • The compositor only moves and shrinks free windows when the Deskbar widens; they never grow back when it narrows. This isn't new, and is now reached only by deliberate width changes.
  • Possibly: drag-to-reorder in the compact sizes (question 3).
  • The kit lets go of a lost press only for drags_only widgets. Doing the same for every widget would be a wider kit change, and wasn't looked into here.

Migration to Sekka

Migrated from @theoogabear's Aizome #78 at af3534b after #107. The patch applied under desktop/aizome on current Sekka main, retaining contributor authorship and the original screenshots and design questions. The original PR retains its discussion.

🤖 Generated with Claude Code

@bitemyapp

Copy link
Copy Markdown
Owner Author

Re-pinned Sidestep to aizome-combined (bitemyapp/sidestep#8, 853fbb3) in a87f1f1. That commit changes only the flake input, its lock and vendor/sidestep, which agree. The combined branch is aizome plus bitemyapp/sidestep#6 (Utsushi's video layer) and bitemyapp/sidestep#7 (Omperor's clipboard reading and text attachments); every open Aizome PR now pins it, ahead of Sidestep moving into Sekka's tree.

Revalidated on wx-workstation against that Sidestep:

  • cargo build --locked --workspace passes.
  • aizome-settei and aizome-config tests pass, as do the rest of aizome-shell's.
  • cargo clippy -p aizome-config -p aizome-shell -p aizome-settei --all-targets -- -D warnings is clean.
  • cargo test -p aizome-shell --test deskbar_designs -- --ignored passes.
  • aizome-shell's the_whole_screen and pictures_of_the_lock_screen goldens differ on wx-workstation by the same amount with either Sidestep (65.09% and 23.10% of pixels). The tests load their wallpapers from /home/callen/work/aizome-design/..., which exists only on the laptop.

🤖 Generated with Claude Code

Migrate bitemyapp/aizome#78 at af3534beab7a3762f9712f16ff54d933c277e776 to Sekka after #107.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@bitemyapp
bitemyapp force-pushed the codex/migrate-aizome-78 branch from a87f1f1 to 0eae91a Compare October 29, 2026 06:15
bitemyapp and others added 4 commits October 29, 2026 17:13
- Size an edge drag by how far the pointer has gone since the press.
  While the button's held, the compositor reports the pointer from where
  the surface was at the press, so at the right the width ran away to the
  maximum or the Rail.
- Keep desktop icons and critical cards where they are for a Deskbar that
  hides itself, and move the cards when the Deskbar moves, widens or folds
  while they're up.
- Offer the same widths in the grip's menu and Settei (Icons Only, Slim,
  Standard, Wide, Wider). Settei shows the compact ones, and lights none
  after a dragged width, so any can be picked.
- With the Deskbar at the left, put `N apps ⌄` and Hide Deskbar after the
  Toolchest, above it, and keep the systray's widgets. Revealing it from
  the bar's far end hid it before the pointer arrived.
- Hide a revealed Deskbar again after its grip moves it.
- Count one gap fewer under the compact Deskbar's Shelf.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…edge reach its rows

Dragging the Deskbar's edge resized its layer surface at every pointer
step, so the compositor refitted every window beside it each time. Free
windows only ever move and shrink to fit, so an exploratory drag out and
back left them narrower. The Deskbar now keeps its size while the button
is held: an outline of the new width shows on an overlay surface that
takes no input, and the Deskbar takes the width, and saves it, when it is
let go. Windows are fitted once, and a drag out and back changes nothing.

The 5pt edge strip lies over the rows' inner edge and took every press
there, so a click on the first points of a window row (on the default
right-hand Deskbar) did nothing, and right-clicks and the wheel were lost
too. Aizome's kit gains widgets that take only drags: a left press that
ends without one is delivered to what lies under it as a click, and other
buttons, the wheel and drops go straight there. The edge is one of them.

The width is also kept within 45% of the main display, so a wide Deskbar
on a narrow display still stands in one half of it and the compositor
keeps filled and split windows beside it. The setting is left as it is,
so a wider display gives the width back, and the grip's menu disables
sizes that don't fit.

Settei's search now finds the Stands at and Width rows. docs/shell.md
describes the side and width keys, their range and snapping, the grip,
the edge and its menu, and the compact layouts; docs/kit.md describes
widgets that take only drags; and the README says how to move and resize
the Deskbar.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…under the edge

If the compositor took the pointer while the Deskbar's edge was being
dragged (a grab of its own ending the press's implicit grab), the
release never reached the Deskbar. The width outline then stayed over
the screen until another edge drag ended, and the kit kept the edge
holding the press, so the next click on a row lost its release to it.
Leaving the Deskbar with the button down now ends the drag and keeps the
width, as locking the screen and the Deskbar or its display going do. The
kit lets go of a press held by a widget that takes only drags when the
pointer leaves its window, and the shell's drawn elements forget a press
the kit has let go of.

On a display too narrow for the width asked for, the grip's menu ticked
whichever named size the narrowed width happened to equal (Wider, for
400pt on an 800pt display) while Settei lit none. The menu now ticks no
size then, and a line gives the width the Deskbar has on that display.

Rows under the 5pt edge strip showed no hover there, and in Icons Only
an app's name tooltip didn't come over the inner points of its icon.
What lies under a widget that takes only drags now shows its hover and
its tooltip too, while the edge keeps its cursor and its line.

docs/kit.md describes such widgets under Writing a widget rather than
among the performance budget's points, and docs/shell.md the menu's line
and how a drag ends without its release.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Main now has #151's keyboard-offer test in deskbar.rs; both sides' tests
are kept, as in the release-candidate tree.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@bitemyapp
bitemyapp merged commit d40a5b3 into main Oct 30, 2026
@bitemyapp
bitemyapp deleted the codex/migrate-aizome-78 branch October 30, 2026 21:31
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants