Rework the command page: apps and actions on the ledger grid #19

Merged
arne merged 1 commit from command-page into main 2026-11-06 14:58:34 +01:00
Owner

Closes #17.

The launcher becomes the command page, drawn by Panel on the ledger grid like control, activity and update. One prompt, two kinds of result. Prototyped in the drawer prototype's command tab first.

apps

  • Declared apps and desktop entries, deduped by what they run (program + plain arguments): ghostty -e yazi stays Yazi, a Steam game is not Steam. Today Steam fell off the end of a 9-row list; now it is listed.
  • A declared app takes the name of the desktop entry it claims ("Telegram", not telegram); a declared fjordxy-open <category> is whatever that default is ("browser" is Firefox, listed once).
  • Every name starts with a capital. An app a key starts shows that key (Firefox — Mod+B).
  • Before you type: apps you launched from here, newest first ($XDG_STATE_HOME/fjordxy/launched.json), then declared ones not already shown — eight at most. Search ranks by match position; recency breaks ties.
  • PATH fallback only when nothing else matches, and it matches a prefix.

actions

  • Every binding from the niri config the session loaded (KeybindsData, same source as the sheet), with its key; Enter closes the drawer and runs what the key runs. A numbered family takes a digit (work 3); Mod+=/Mod+- become two rows.
  • Drawer pages (control, activity, update), the session (log out, reboot, power off arm first via Power.confirm), control's switches (wifi, bluetooth, tailscale, stay awake, mute, mic mute) and power profiles. A binding with the same title lends its key instead of being a second row.
  • A query with + searches keys (mod+shift).

modes

,name, install <attr>, default [<cat>] stay, each taking the page over as its own section (default browser as ●/○ choices). pwa still works but is not listed — web apps get their own pass.

also

  • nix/keybinds.nix emits what each key runs (runs, aligned with keys).
  • Binds retitled Home → Control, Launcher → Command; app binds titled after the app instead of "Spawn".
  • Panel gains an optional prompt (BLOCKS.me.md, "A page you type into"). Launcher.qml is gone; Chooser.qml is the clipboard's alone; Apps.claimed removed.

Tested on black with --override-input fjordxy git+file:///home/arne/source/fjord?ref=command-page.

🤖 Generated with Claude Code

Closes #17. The launcher becomes the **command** page, drawn by `Panel` on the ledger grid like control, activity and update. One prompt, two kinds of result. Prototyped in the drawer prototype's command tab first. ## apps - Declared apps and desktop entries, deduped by what they run (program + plain arguments): `ghostty -e yazi` stays Yazi, a Steam game is not Steam. Today Steam fell off the end of a 9-row list; now it is listed. - A declared app takes the name of the desktop entry it claims ("Telegram", not `telegram`); a declared `fjordxy-open <category>` is whatever that default is ("browser" is Firefox, listed once). - Every name starts with a capital. An app a key starts shows that key (Firefox — Mod+B). - **Before you type:** apps you launched from here, newest first (`$XDG_STATE_HOME/fjordxy/launched.json`), then declared ones not already shown — eight at most. Search ranks by match position; recency breaks ties. - PATH fallback only when nothing else matches, and it matches a prefix. ## actions - Every binding from the niri config the session loaded (`KeybindsData`, same source as the sheet), with its key; Enter closes the drawer and runs what the key runs. A numbered family takes a digit (`work 3`); `Mod+=`/`Mod+-` become two rows. - Drawer pages (control, activity, update), the session (log out, reboot, power off arm first via `Power.confirm`), control's switches (wifi, bluetooth, tailscale, stay awake, mute, mic mute) and power profiles. A binding with the same title lends its key instead of being a second row. - A query with `+` searches keys (`mod+shift`). ## modes `,name`, `install <attr>`, `default [<cat>]` stay, each taking the page over as its own section (`default browser` as ●/○ choices). `pwa` still works but is not listed — web apps get their own pass. ## also - `nix/keybinds.nix` emits what each key runs (`runs`, aligned with `keys`). - Binds retitled Home → Control, Launcher → Command; app binds titled after the app instead of "Spawn". - `Panel` gains an optional prompt (BLOCKS.me.md, "A page you type into"). `Launcher.qml` is gone; `Chooser.qml` is the clipboard's alone; `Apps.claimed` removed. Tested on black with `--override-input fjordxy git+file:///home/arne/source/fjord?ref=command-page`. 🤖 Generated with [Claude Code](https://claude.com/claude-code)
The launcher becomes the command page, drawn by Panel like control, activity
and update. One prompt, two kinds of result:

- apps: declared apps and desktop entries, deduped by what they run (so
  `ghostty -e yazi` stays Yazi and a Steam game is not Steam), named after
  the desktop entry they claim, every name capitalised. An app a key starts
  shows that key. Before you type: recently launched apps (kept in
  $XDG_STATE_HOME/fjordxy/launched.json), then declared ones, eight at most.
- actions: every binding from the loaded niri config, plus drawer pages, the
  session (log out/reboot/power off arm first) and control's switches and
  power profiles, each with its key; Enter does it. "mod+shift" searches by
  key, "work 3" fills a numbered action.

The prefixed modes stay (,name / install / default; pwa works but is not
listed), each taking the page over as its own section.

keybinds.nix now emits what each key runs; Home/Launcher binds are titled
Control/Command, and app binds get the app's name instead of "Spawn".
Panel gains an optional prompt; Chooser is the clipboard's alone.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
arne merged commit 071e3a1bcb into main 2026-11-06 14:58:34 +01:00
arne deleted branch command-page 2026-11-06 14:58:34 +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!19
No description provided.