Repository navigation
Let the Deskbar stand at either edge, at any width, compact - #120
Merged
Merged
Conversation
Owner
Author
|
Re-pinned Sidestep to Revalidated on wx-workstation against that Sidestep:
🤖 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
force-pushed
the
codex/migrate-aizome-78
branch
from
October 29, 2026 06:15
a87f1f1 to
0eae91a
Compare
- 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>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
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:
Narrower than the full Deskbar, it shows the same information in less space:
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_designstest (hotlinked from theoogabear/aizome at a pinned commit; please leave them out of the squash message):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
Both have defaults, so existing files behave exactly as before. Older shells ignore the keys.
What changes
deskbar_glue.rs):Shell::deskbar_place_menu) are handled here, through a newAction::PlaceDeskbarthat saves the section.aizome-deskbar-previewoverlay surface, which takes no input and reserves nothing. The Deskbar's own layer size changes once, on release, so the compositor refits once.Shell::lock), the Deskbar closes, or its display goes.deskbar::most_widthandfit_width).deskbar.rs:insertion_atand app reordering are unchanged.deskbar_compact.rs(new): Slim and Icons Only.aizome-kit,aizome-face): widgets can take only drags (Widget::drags_only,Drawn::drags_only).Win::hot_under). The widget's own tooltip, if it has one, wins.docs/shell.mdcovers 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.mddescribes widgets that take only drags, under Writing a widget. The README says how to move and resize the Deskbar.wm::besideanddeskbar_rectalready 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.
drags_onlynow passes clicks, other buttons and the wheel to the row underneath.docs/shell.mdnow describes the feature.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_previewopens 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 -- --ignoredrenders 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 maind717500a:cargo metadata --lockedpasses.cargo clippy --locked --all-targets -- -D warningsis clean for aizome-config, aizome-kit, aizome-face, aizome-shell, aizome-comp, aizome-comp-core and aizome-settei.cargo fmt --all -- --checkreports only two diffs, inaizome-comp-core/build.rsandaizome-comp-core/src/session.rs. Both are on main too, and this branch doesn't touch either file.cargo testover the same crates: 716 passed, 5 failed, 18 ignored. All 5 failures are known to happen only on wx:grim_wlr_randr_and_lswt_workand its two reload/restart tests;the_whole_screenandpictures_of_the_lock_screengoldens. Their wallpapers are at a laptop-only path, and they differ by the same 65.09% and 23.10% as on main.recording::runtests pass.tests/deskbar.rs:deskbar_glueunit tests:aizome-facetest: 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.layout_desktop -- --ignored),real_deskbar_edge_resizes_at_either_sidepasses. 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_rowsalso passes, andlayout -- deskbarpasses 3 of 3.perfbudget 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-menuandtokei-reorder. The previous round'ssettingsVM, run on the tree before this round, also passed.Not tested
On the X1 Carbon, worth checking:
Questions for you
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
save_sectionwrites its whole cachedsettings.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.drags_onlywidgets. 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
af3534bafter #107. The patch applied underdesktop/aizomeon current Sekka main, retaining contributor authorship and the original screenshots and design questions. The original PR retains its discussion.🤖 Generated with Claude Code