Skip to content
This repository was archived by the owner on Oct 27, 2026. It is now read-only.

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

Closed
theoogabear wants to merge 1 commit into
bitemyapp:mainfrom
theoogabear:deskbar-placement
Closed

theoogabear wants to merge 1 commit into
bitemyapp:mainfrom
theoogabear:deskbar-placement

Conversation

@theoogabear

@theoogabear theoogabear commented Oct 26, 2026 •

Copy link
Copy Markdown
Contributor

Migrated to Sekka #120 after the Aizome import in Sekka #107. Continue development and review there; this PR and its branch retain the original proposal and discussion.


The Deskbar is fixed at the top right, 232pt wide. On a big screen at scale 1 that's a narrow column. And if you want it on the left, or want it smaller, the only option 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; it updates as you drag and is saved when you let go.
  • Right-click the grip for At the Left / At the Right and Icons Only / Slim / Standard / Wide. Ticks mark the current side and size.
  • Settei → Desktop & Deskbar gets Stands at (Left / Right) and Width (Standard / Wide / Wider).

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.

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
--- --- ---

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.

What changes

  • Shell (deskbar_glue.rs):
    • The surface anchors to the chosen edge.
    • It reopens when the side changes, alongside the existing reopen when auto-hide or the main display changes.
    • Grip and edge drags and the grip's menu are handled here, through a new Action::PlaceDeskbar that saves the section.
  • 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.
  • Elsewhere:
    • The menu bar's systray header follows a wider full Deskbar at the right, and keeps its usual width otherwise.
    • Notification banners 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.
  • Compositor: unchanged. wm::beside and deskbar_rect already handle a Deskbar on the left at any width.

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.

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

  • cargo fmt --all -- --check, git diff --check, and cargo clippy -p aizome-config -p aizome-shell -p aizome-settei --all-targets -- -D warnings are clean.
  • cargo test -p aizome-config -p aizome-shell -p aizome-settei: 343 passed, 3 failed. None of the 3 is caused by this branch:
    • the_whole_screen and pictures_of_the_lock_screen fail the same way on unmodified main here; they need the board wallpapers under /home/callen/work/aizome-design.
    • typical_interactions_fit_the_frame_budget failed once while other builds were running, then passed 3 out of 3 times on its own.
  • deskbar-day.png and deskbar-night.png are regenerated. The only change is the grip, which makes the Deskbar 10pt taller.
  • New tests:
    • the Deskbar moves to the left and widens (anchors, input region, Desk drops, systray header);
    • width snapping and size thresholds;
    • an edge drag snaps to Icons Only;
    • letting go of the grip on the right half moves the Deskbar right.
  • Tried live on a real session at the installed revision (left side, 300pt, all three sizes, grip and edge).

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. 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). Worth adding here, or as a follow-up?

🤖 Generated with Claude Code

[deskbar] gains side ("left" | "right") and width. Below the full
Deskbar's 200pt it goes Slim (everything a size smaller) and, narrower
still, to an icon rail. A grip at its top moves it to the other edge, its
inner edge drags to resize, and the grip's menu picks a side and size;
Settei's Desktop & Deskbar pane has the same choices. Desktop icons line
up clear of a Deskbar at the left.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants