Skip to content

Add App Drawer: the Dock, most or recently used apps, or a deck of keys - #29

Open
masonjmiller wants to merge 3 commits into
kemalandic:mainfrom
masonjmiller:app-drawer-widget
Open

masonjmiller wants to merge 3 commits into
kemalandic:mainfrom
masonjmiller:app-drawer-widget

Conversation

@masonjmiller

@masonjmiller masonjmiller commented Oct 9, 2026 •

Copy link
Copy Markdown

What does this PR do?

Adds App Drawer, a built-in widget for starting things from the dashboard: a copy of the Dock with running apps, the apps used most or most recently, or a deck of keys set up like a Stream Deck.

Why

The XENEON EDGE sits under the main display, which makes it a natural launcher. App Drawer started as a plugin, but plugins can't list, launch or watch apps, so it needed a helper app installed beside it. Everything that helper did fits in EdgeControl itself, so this brings it in: nothing extra to install.

How

  • Modes: Dock (the Dock's apps, a divider, then running apps that aren't in it), Most used, Recently used, and Deck.

  • Keys can:

    • open an app, run one of your Shortcuts, or open a link (web or app links like obsidian://) or a file;
    • copy text, or type it into the app in front;
    • press a keyboard shortcut or a media key;
    • do several of those in a row (a multi-action, with waits);
    • open a folder of more keys.

    Holding a key for half a second runs a second action.

  • Editing on the dashboard: the pencil opens tabs for the deck's keys, apps, running apps, Shortcuts, and common hotkeys, media keys, links, text and folders. It has search and its own on-screen keyboard. Rows in its scrolling list register as touch zones only the part the list shows, so a row scrolled out of the tile can't take a tap meant for the widget next to it.

  • Editing on the Mac: Edit Decks… in the widget's settings opens a deck editor window, which keeps itself off the dashboard's display. It covers titles, colors, SF Symbols, emoji, pictures or another app's icon, a hotkey recorder, multi-actions and hold actions, with drag to reorder: the dragged key follows the pointer, and a bar marks where it will land before you let go.

  • Looks:

    • Keys take the macOS app icon's shape: Apple's continuous-corner rectangle at a 26.15% corner radius, which matches the system's icons to within a pixel. App icons are drawn so their artwork, not their padded canvas, is the size of a key.
    • Keys without their own color take the theme's accent (or App Drawer's color from the Theme page), dimmed or full, with near-black or white ink chosen for contrast.
    • Styles: Plain, Cards, Dividers and a square Keys style.
  • Decks live in Decks.json, on this Mac or in a folder iCloud Drive, Google Drive, Dropbox or OneDrive already syncs. Another Mac pointed at the same folder shares them, merged deck by deck with the newest winning, and nothing to sign up for.

    • Keys are checked before anything acts on them: capped strings, at most 500 keys, folders four deep, multi-actions of 20 steps with no nesting, and pictures only from the decks folder.
    • Fields from a newer version are kept.
    • On first use, decks from the App Drawer plugin's helper come in, and a cloud folder it used is adopted.
  • Usage history starts from Spotlight's last-used dates and use counts, then adds time in front, fading with a 14-day half-life. It stays on the Mac.

  • Accessibility is needed only for keys that press shortcuts, press media keys or type. EdgeControl asks the first time one is used, and the tile, the picker and the editor say when it's missing. Keyboard events reach the app being worked in, since a tap on the dashboard doesn't bring EdgeControl forward. If EdgeControl is in front anyway, the app used before it comes back first.

  • Code: Services/AppDrawer/ holds the model, the store, the catalog, the runner and AppDrawerService (ServiceKey.appDrawer). Widgets/AppDrawer/ holds the widget, the picker, the keyboard and the deck editor. There's one new config field type, .appDrawerDecks, for the Edit Decks… button. The README lists the widget and the Accessibility permission.

Screenshots

On a XENEON EDGE, in Deck mode:

App Drawer on the dashboard: two rows of app keys and a Screen Saver key in the dimmed accent, with running-app dots

The widget's settings, and the deck editor with its app chooser:

App Drawer's settings: Show, Deck Name, an Edit Decks… button, Title, Style, Key Color, Icon Color, Icon Size and the names and running-indicator toggles

The App Drawer Decks window: decks on the left, the Main deck's keys in a grid, and an inspector placeholder

The deck editor's app chooser: a search field above installed apps with their bundle IDs

Testing

  • Scripts/ci-local.sh all passes: swift-format lint, zero compiler warnings, and 423 Swift Testing tests in 40 suites. Twenty-seven are new, in Tests/EdgeControlTests/AppDrawer/:
    • The file format: the plugin helper's file reads, unknown fields survive a save, and bad keys or decks are skipped.
    • Limits: colors, icons, sizes and depth.
    • Orders and folders, and where a dragged key lands.
    • The store: saving, importing the helper's decks, adopting its cloud folder, migrating App Drawer 1's apps, merging another Mac's changes, and moving folders.
    • The catalog: parsing Shortcuts and the Dock, usage decay and rankings, and the grid layout.
    • Keyboard keys: typing in chunks with returns and tabs as keys, and hotkey flags.
  • On a XENEON EDGE (macOS 27.2): the tile in Deck mode with decks brought in from the plugin's helper, the settings, the deck editor and its app chooser.
  • Not yet checked end to end: hotkey, media and typing keys with Accessibility switched on.

Checklist

  • Tested on macOS 14+ (macOS 27.2)
  • No third-party dependencies added
  • Follows existing code style

🤖 Generated with Claude Code

masonjmiller and others added 2 commits October 9, 2026 16:22
A built-in widget for starting things from the dashboard: a copy of the
Dock with running apps, the apps used most or most recently, or a deck of
keys set up like a Stream Deck. It replaces the App Drawer plugin and the
helper app that plugin needed, since everything the helper did can be
done in EdgeControl itself.

Keys open an app, run a Shortcut, open a link or a file, copy text or
type it into the app in front, press a keyboard shortcut or a media key,
do several of those in a row, or open a folder of more keys. Holding a key
for half a second runs a second action. Hotkeys, media keys and typing
post keyboard events, which needs Accessibility: EdgeControl asks the
first time, and the tile, the picker and the editor say when it's missing.
The events reach the app being worked in, since a tap on the dashboard
doesn't bring EdgeControl forward; if it's in front anyway, the app used
before it comes back first.

Decks are edited on the tile, with the pencil and the tile's own keyboard
(tabs for the deck's keys, apps, running apps, Shortcuts, and common
hotkeys, media keys, links, text and folders), or in a deck editor window
on the Mac, opened from the widget's settings: titles, colors, SF Symbols,
emoji or pictures, a hotkey recorder, multi-actions and hold actions.

Decks live in Decks.json, in the same format the plugin's helper wrote,
so its decks come in on first use; a cloud folder it was pointed at is
adopted, so syncing carries on. The file can live on this Mac or in a
folder iCloud Drive, Google Drive, Dropbox or OneDrive syncs, and another
Mac's changes are merged deck by deck, newest winning. Keys are checked
before anything acts on them: capped strings, at most 500 keys, folders
four deep, multi-actions of at most 20 steps and no nesting, and pictures
only from the decks folder. Fields a newer version adds are kept.

Usage history starts from Spotlight's last-used dates and use counts and
adds the time each app spends in front, fading with a 14-day half-life.
It stays on this Mac.

The tile follows the theme: keys take the macOS app icon's shape (Apple's
continuous-corner rectangle at a 26.15% radius), app icons are drawn so
their artwork matches a key's size, and keys without their own color take
the accent, dimmed or full, with ink chosen for contrast. Plain, Cards,
Dividers and Keys styles. Rows in the picker's scrolling list register
only the part of themselves the list shows as touch zones, so a row
scrolled out of the tile can't take a tap meant for the widget beside it.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The bounce was a repeating animation, and SwiftUI adds a later animation
to one that repeats forever instead of replacing it, so it never stopped.
It's now worked out from the clock and simply stops. It ends once the app
has finished launching, after one bounce at least, and at 8 seconds at most.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Dragging a key showed the copy badge, as if it were being added, because a
plain drop destination always copies. The grid now has its own drop
handling: the pointer carries the key itself, the drag is a move, and an
accent bar in the gap shows where the key will go before you let go. The
left half of a key puts it before; the right half, after. Each key's cell
reaches into the gaps, so the bar doesn't flicker between keys, and no bar
shows where letting go wouldn't change anything.

The move follows the order the keys are shown in, so a deck sorted by name
or use keeps that arrangement with the one change, instead of jumping back
to the order the keys were added.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
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.

1 participant