Draw the drawer as a ledger (command, control, activity, update), keybindings as a sheet, and make the rail clickable #14

Merged
arne merged 7 commits from ledger into main 2026-11-06 06:19:12 +01:00
Owner

The drawer's pages lacked hierarchy: Home mixed two layouts, every block was split off by an identical hairline, and accent went on headings and meters rather than on where you are. A design review, prototyped first (the ledger style), settled on the layout below. This brings it to the shell, along with the rail and volume fixes it was tested with.

Ledger

  • One grid on every page: a 2-character gutter (glyph, cursor ›, unread •), names at column 2, values at column 13, and a right edge.
  • Headings: SemiBold fg, with an optional count on the right (headingMeta). Accent is now only the cursor and the current page.
  • Home:
    • The date is the heading.
    • Three groups ("|" in blocks): battery and audio; wifi, bluetooth and tailscale; machine and a new session block.
    • session takes lock, suspend, hibernate, log out, reboot and power off from the battery. The last three still arm before they fire.
    • The time block is dropped, since the rail has the clock.
  • Open blocks: sit on surface. Choices (●/○), toggles (on/off), levels and verbs each look like what they do. The dangerous row goes last: the wifi radio and the bluetooth power switch are no longer the cursor's first stop.
  • Meters: ten drawn cells in label. A row marked hot (cpu, memory, disk) turns warning above 85%.
  • Notifications: three-line notes. They're marked read when you leave the page, so the page still shows which are new.
  • Keybindings: one chord and a count of the rest.
  • STYLE.me.md and BLOCKS.me.md describe the grid, the groups, raised open blocks and the row types.

Pages: command, control, activity, update

  • Activity replaces notifications and ai status. It is ordered by what each thing asks of you: needs you (unread critical notifications), new, then earlier with clear.
    • Notes are two lines: app · summary with the age on the right, then the body.
    • The heading counts what is new. Program status (OSC 7501 via Rex) will join this page later.
  • Claude and OpenAI quotas move to control (home), under the machine readings. A Usage singleton keeps them, refreshing when home opens.
  • Keybindings leave the drawer for a sheet over the screen on Mod+Shift+/.
    • Three or four columns, with every chord.
    • Runs like Mod+1…9 are collapsed, and media keys are named for what they do.
    • Esc, the same key, or a click off the card closes it.
  • The tab icons are command, sliders, pulse and refresh. The bell and question-mark glyphs are gone.

Rail and drawer

  • Clicking empty rail space opens the drawer on home, or closes it.
  • Clicking the notification count opens notifications. Clicking the battery or wifi gauge opens home with that block expanded.
  • Drawer.toggleBlock and revealed let any page open on a given block.
  • The drawer gets an 8px inset, so pages start 24px from the rail. Page markers are text-sized and dim until current.
  • Home's marker is Phosphor sliders-horizontal instead of a house.

Fixes

  • Volume and mic: they could only go up, wrapping 100% to 0%. Now h/l, ←/→, the wheel, or a click on the meter set them, and they stop at the ends.
  • Battery: the shell started with no battery for 10 seconds. The first read happened before the FileView paths had updated.
  • Notification sender: a notification without an app name (e.g. OSC 9 relayed by Ghostty) showed "?". It's now named from its desktop-entry, and a title that only repeats the sender is dropped.

Tested on black:

  • The real shell code rendered offscreen with live data: home closed and with network, audio, power and session open; activity fed by test notifications on a private D-Bus; and the keybindings sheet with black's binds.
  • qmllint passes on every shell file, and black builds.
  • black runs this branch except the last two commits (sender naming, margins and markers). The rail clicks and the volume fix haven't been confirmed by hand yet.

Not yet: program status from Rex on the rail and in activity, and the command rework. Those come next, prototyped first.

🤖 Generated with Claude Code

The drawer's pages lacked hierarchy: Home mixed two layouts, every block was split off by an identical hairline, and accent went on headings and meters rather than on where you are. A design review, prototyped first (the `ledger` style), settled on the layout below. This brings it to the shell, along with the rail and volume fixes it was tested with. **Ledger** - **One grid on every page:** a 2-character gutter (glyph, cursor `›`, unread `•`), names at column 2, values at column 13, and a right edge. - **Headings:** SemiBold `fg`, with an optional count on the right (`headingMeta`). Accent is now only the cursor and the current page. - **Home:** - The date is the heading. - Three groups (`"|"` in `blocks`): battery and audio; wifi, bluetooth and tailscale; machine and a new `session` block. - `session` takes lock, suspend, hibernate, log out, reboot and power off from the battery. The last three still arm before they fire. - The `time` block is dropped, since the rail has the clock. - **Open blocks:** sit on `surface`. Choices (●/○), toggles (on/off), levels and verbs each look like what they do. The dangerous row goes last: the wifi radio and the bluetooth power switch are no longer the cursor's first stop. - **Meters:** ten drawn cells in `label`. A row marked `hot` (cpu, memory, disk) turns `warning` above 85%. - **Notifications:** three-line notes. They're marked read when you leave the page, so the page still shows which are new. - **Keybindings:** one chord and a count of the rest. - **STYLE.me.md and BLOCKS.me.md** describe the grid, the groups, raised open blocks and the row types. **Pages: command, control, activity, update** - **Activity** replaces notifications and ai status. It is ordered by what each thing asks of you: `needs you` (unread critical notifications), `new`, then `earlier` with `clear`. - Notes are two lines: `app · summary` with the age on the right, then the body. - The heading counts what is new. Program status (OSC 7501 via Rex) will join this page later. - **Claude and OpenAI quotas** move to control (home), under the machine readings. A `Usage` singleton keeps them, refreshing when home opens. - **Keybindings** leave the drawer for a sheet over the screen on Mod+Shift+/. - Three or four columns, with every chord. - Runs like Mod+1…9 are collapsed, and media keys are named for what they do. - Esc, the same key, or a click off the card closes it. - The tab icons are command, sliders, pulse and refresh. The bell and question-mark glyphs are gone. **Rail and drawer** - Clicking empty rail space opens the drawer on home, or closes it. - Clicking the notification count opens notifications. Clicking the battery or wifi gauge opens home with that block expanded. - `Drawer.toggleBlock` and `revealed` let any page open on a given block. - The drawer gets an 8px inset, so pages start 24px from the rail. Page markers are text-sized and `dim` until current. - Home's marker is Phosphor `sliders-horizontal` instead of a house. **Fixes** - **Volume and mic:** they could only go up, wrapping 100% to 0%. Now h/l, ←/→, the wheel, or a click on the meter set them, and they stop at the ends. - **Battery:** the shell started with no battery for 10 seconds. The first read happened before the FileView paths had updated. - **Notification sender:** a notification without an app name (e.g. OSC 9 relayed by Ghostty) showed "?". It's now named from its `desktop-entry`, and a title that only repeats the sender is dropped. Tested on black: - The real shell code rendered offscreen with live data: home closed and with network, audio, power and session open; activity fed by test notifications on a private D-Bus; and the keybindings sheet with black's binds. - `qmllint` passes on every shell file, and black builds. - black runs this branch except the last two commits (sender naming, margins and markers). The rail clicks and the volume fix haven't been confirmed by hand yet. Not yet: program status from Rex on the rail and in activity, and the command rework. Those come next, prototyped first. 🤖 Generated with [Claude Code](https://claude.com/claude-code)
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Home and every drawer page share one grid: a 2ch gutter (glyph, cursor,
unread dot), names at 2, values at 13, and a right edge. Headings are fg,
so accent is only the cursor and the current page. Home is three groups
under the date: battery and audio; wifi, bluetooth and tailscale; machine
and a new session block, which takes lock through power off from the
battery. An open block sits on a raised ground, with choices, toggles,
levels and verbs that each look like what they do, the dangerous row
last. Meters are ten drawn cells in label, warning past 85% where hot.
Notifications are three-line notes, read on leaving the page. Keybindings
show one chord and a count. The battery is read as soon as it is found.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Activity replaces notifications and ai status: one page, sectioned by what
each thing asks of you (needs you, new, earlier with clear), notes in two
lines with their age. Program status will join it. The quota readings move
to home under the machine block, kept by a Usage singleton. Keybindings
leave the drawer for a sheet over the screen on Mod+Shift+/, in columns
with every chord, digit runs and media keys tidied.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
arne changed title from Draw the drawer as a ledger, and make the rail and its levels clickable to Draw the drawer as a ledger (command, control, activity, update), keybindings as a sheet, and make the rail clickable 2026-11-06 06:17:40 +01:00
arne merged commit 870c7a6f1e into main 2026-11-06 06:19:12 +01:00
arne deleted branch ledger 2026-11-06 06:19:12 +01:00
Sign in to join this conversation.
No reviewers
No labels
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set

Reference
bases/fjord!14
No description provided.