Skip to content

Add a dock to floating workspaces - #15263

Merged
dhh merged 27 commits into
quattrofrom
omarchy-dock
Oct 13, 2026
Merged

dhh merged 27 commits into
quattrofrom
omarchy-dock

Conversation

@dhh

@dhh dhh commented Oct 13, 2026

Copy link
Copy Markdown
Contributor

Floating workspaces have no tiles to find apps by, so they get a dock: pinned apps, everything running, and a grid of every app. It only shows on floating workspaces, and switching to a tiled or scrolling one hides it at once.

The dock

  • New first-party service plugin omarchy.dock (shell/plugins/dock/), with its state in the dock: subtree of shell.json and set through the new omarchy dock command (position, autohide, pinned, pin, unpin).
  • Pinned apps first, then running ones; pinned apps that are not running are slightly faded, and a starting app pulses until its window shows up.
  • Click brings an app's window forward and on top, preferring the workspace in front of you, then minimized windows, then other workspaces; clicking again cycles. Middle-click opens a new window.
  • Drag icons along the dock to reorder; drag apps out of the app grid to pin them where they land. The grid keeps the pointer and reports it to the dock, since Wayland drag and drop does not start from a layer surface.
  • Right-click an app to keep it in the dock (at the end), open a new window, or quit. Right-click the apps button for position and auto-hide, which slides the dock in from its edge. Appearance > Dock has Dock Position and Auto-hide Dock / Always-on Dock.
  • A maximized window puts the dock in auto-hide; fullscreen hides it.
  • The apps button opens a grid of every app: type to filter, arrows and Enter to launch, right-click to pin.
  • Terminal apps launched through omarchy-launch-tui (e.g. Neovim) get their own icon; helpers without a visible desktop entry and special workspaces stay out of the dock.
  • Default pins: Files, Chromium, Foot, Omacalc, Omawrite, X, YouTube.

Floating workspaces

  • Windows opening on a floating workspace float from their first frame through a window rule, so they pop in at their size like tiled windows instead of opening tiled and shrinking. Apps with float rules of their own (recorded by o.window) and modal dialogs are passed over.
  • Titlebars get a minimize button again, and Super + M minimizes the focused window. Minimized windows wait on special:minimized and come back from the dock, instantly. omarchy-hyprland-window-minimize only acts on floating workspaces, which have the dock to bring windows back.
  • A new window on a floating workspace takes a maximized one out of maximize.
  • Super + L replaces one layout notification instead of stacking them, and tells the dock to re-read the layout.

Web apps

omarchy-webapp-install now writes StartupWMClass for web apps with a custom Exec too (HEY's mailto handler), so the dock and titlebars can tie their windows to them. A migration adds it to launchers installed without one.

Testing

  • test/shell.d/dock-test.sh (new), plus the menu, floating-workspace, workspace-layout, config, plugin and manifest entry-point suites, and ./test/cli, all pass.
  • Grid-to-dock drag and the floating open rules were verified with real pointer input and windows in a nested Hyprland.
  • Reviewed with Codex; its three findings (apps with their own float rules being claimed, minimized windows without a desktop entry vanishing, the settings menu being clipped) are fixed.
  • shell-shortcuts-test.sh fails on shortcut menu route resolves: toggle on quattro as well; unrelated.

Companion fix for resizing titled windows from their top edge: top-edge-resize in omacom/omarchy-hyprland-titlebars.

🤖 Generated with Claude Code

David Heinemeier Hansson and others added 14 commits October 13, 2026 08:59
A floating workspace has no tiles to find apps by, so omarchy.dock gives it
a dock: pinned apps, running apps grouped by app, and a grid of every app.
It stays hidden on tiled workspaces and behind a fullscreen window.

Floating is not a Hyprland layout, so the dock reads each workspace's mode
through omarchy-hyprland-workspace-layout-current, and the layout commands
ask it to read again over omarchy-shell omarchy.dock refresh.

Its position and pins live under dock in shell.json, set with omarchy dock
or from Trigger > Appearance > Dock > Dock Position.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
… change

Cycling through the layouts with Super + L left a notification for every
press. Each layout change now replaces the last one, so only the current
layout is announced.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
A window opening on a floating workspace opened tiled and then shrank into
place. A window rule now floats it from its first frame, at the size the mode
gives it, so it pops in from its own middle the way a tiled window does. The
mode claims what the rule floated as it opens, reading the window's own tags
because a strict tag query passes over a rule's, so it still tiles when the
workspace stops floating.

Titlebars get a minimize button again. omarchy-hyprland-window-minimize moves
the window to a hidden workspace the dock brings it back from, and focuses
the workspace it left so the next window opens there rather than beside it.

A maximized window keeps a floating workspace to itself until another window
opens there, which brings it back to its own size.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
- Pinned apps that are not running are drawn slightly faded, in place of a
  running dot, and a starting app pulses until its window shows up.
- Apps keep their slot for the session, and dragging along the dock reorders
  them. Apps dragged out of the app grid are pinned where they are dropped;
  the grid holds the pointer and tells the dock where it is, since Wayland
  drag and drop does not start from a layer surface.
- Right-click an app to keep it in the dock, which puts it at the end, or to
  open a new window or quit it. Right-click the apps button to move the dock
  or turn on auto-hide, which slides it in from its edge. Appearance > Dock
  has the same toggle, and omarchy dock autohide sets it.
- A maximized window hides the dock as auto-hide does, and fullscreen hides
  it outright. Switching workspaces shows and hides it at once.
- Clicking an app brings its window forward and on top, restoring it when
  minimized. Terminal apps launched through Omarchy's TUI launcher, such as
  Neovim, get their own icon.
- The app grid opens instantly, centers whole columns, wraps names to two
  lines, and highlights only the name.
- The default pins are Files, Chromium, Foot, Omacalc, Omawrite, X, and
  YouTube.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The grid of dots, and the tiles after it, read less clearly than the
squares of the Nerd Font apps glyph.

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>
Only on a floating workspace, which has the dock to bring it back from; on a
tiled one the binding leaves the window where it is.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The glyph picked up colored fringes on the transparent dock and sat smaller
than the icons beside it. Nine drawn squares stay crisp and fill the slot.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
… rule

The rule floated every window opening on a floating workspace, so an app with
a float rule of its own, such as LocalSend, took the mode's size and was
claimed by it, and tiled when the workspace stopped floating. o.window now
records the class and title of each rule that floats an app, and the open
rule passes those over, leaving their size and floating to their own rules.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The apps button's menu has a header and five rows, taller than the room the
dock left for menus, so a dock at the top or bottom of the screen cut it off.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
A web app installed with its own Exec, such as HEY with its mailto handler,
got no StartupWMClass, so nothing tied its window to its launcher: the dock
left it out and titlebars showed the page title. The command still opens the
web app at its URL, so the class follows from that URL, and a migration adds
it to launchers installed without one.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
A click took the app's first window wherever it was, so Foot minimized here
jumped to an instance on another workspace instead of coming back. Windows on
the workspace in front of the user come first, then minimized ones, then
those elsewhere, and clicking again cycles in that order. A minimized window
also stays in the dock even without a desktop entry, since the dock is the
only way back to it.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Shrinking it on press made a click read as a flinch.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
David Heinemeier Hansson and others added 13 commits October 13, 2026 16:25
The open rule centered every window at the same size, so windows opened one
after another landed exactly on top of each other. The rule now places each
window stepped on from the last, the way the mode placed them before, and
works the position out from the size it gives the window, since the window's
own size is not settled when the rule places it.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The whole slot followed the pointer, and the pointer was read through that
moving slot, so each move fed into the next: now and then a drag read as a
jump to the start of the dock, and every icon before it leapt aside and slid
back. The slot and its pointer handling stay put and only the icon moves.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Starting a drag set the dragged slot before the landing slot, so for a
moment every slot before it counted as in between and stepped aside, then
slid back. Dropping cleared the drag state while the slots' slide animation
could still be on, so they slid back from where they had stepped aside as the
reorder moved them. The landing slot is now set first, the slide is turned off
before a drop resets the slots, and hover pops wait for the pointer to move
over the reordered slots.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Icons the dragged one passed over, or that ended up under the pointer, popped
as if hovered. No icon but the dragged one pops during a drag, and after a
drop hover waits for the pointer to move rather than counting the release.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Every open rebuilt the grid's cells and loaded their icons in the background,
so the icons popped in after the grid appeared. The cells are kept when
nothing changed, and icons load with their cell, from Qt's cache after the
first open.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Moving, dropping and keeping an app each kept their own index arithmetic,
alongside a separate session order. They now all set the one order and save
the pins in it, so the model needs one helper where it had two. The slot
geometry lost its leftovers from when the dock had a background and a dot
lane: one square slot size and one icon inset.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…l from it

Super + Alt + Space and Apps in the Omarchy menu open the app grid instead
of the menu's app list, which still feeds the menu's search. On the grid,
Delete or Uninstall on the right-click menu removes an app after asking.

Review fixes:
- The web app migration skips launchers without an Exec, such as hidden
  overrides, instead of failing under set -e and holding back later ones.
- Apps floated through a tag, such as 1Password or picture-in-picture, keep
  their own floating on a floating workspace; a rule that floats a tag only
  together with a title passes over just that title.
- Apps installed or removed while the grid is closed show up when it opens.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Only the dock and its grid launched a terminal app through
omarchy-launch-tui; the Omarchy menu and the launcher went through
gtk-launch, which opens a plain terminal, so Neovim started there ran in a
window the dock could only see as Foot. The app library now launches every
terminal app through the TUI launcher, which names the window after the
command, and the dock uses the app library rather than a copy of that logic.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…hanges

Changing the default rearranged every workspace without a layout of its own,
work in progress included. Each workspace with windows on it now keeps the
layout it has, saved as its own, and only empty and new workspaces take the
new default.

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>
@dhh
dhh merged commit 124328f into quattro Oct 13, 2026
1 check passed
@dhh
dhh deleted the omarchy-dock branch October 13, 2026 08:10
@greptile-apps

greptile-apps Bot commented Oct 13, 2026 •

Copy link
Copy Markdown
Contributor

RetriggerConfidence Score: 3/5

[Medium impact] Adds a dock UI and window management to floating workspaces.

Fix the covered pin/unpin menu and the minimized windows missing from the dock before merging.

Findings

  1. P1 Uninstall covers the pin action ▶
  2. P1 Minimized windows disappear ▶
  3. P2 Dock icons leave the screen ▶
  4. P2 Saved pin order is ignored ▶

Summary

Adds a dock and app grid, with saved pins, edge placement, auto-hide, and window minimization on floating workspaces.

  • Floating workspaces show a dock for pinned apps and running windows.
  • Windows on floating workspaces open at their intended size and can be minimized.
  • Web app windows keep the name of their launcher, even with a custom command.

Diagram

%%{init: {'theme': 'neutral'}}%%
flowchart TD
  Config["shell.json dock settings"] --> Dock["Dock service"]
  Windows["Hyprland windows"] --> Dock
  Layout["Workspace layout commands"] --> Refresh["Refresh dock modes"]
  Refresh --> Dock
  Dock --> Surface["Dock on each floating screen"]
  Surface --> Grid["App grid"]
  Grid --> Launch["AppLibrary launch"]
  Surface --> Restore["Restore or focus window"]
  Minimize["Super + M or titlebar"] --> Hidden["special:minimized"]
  Hidden --> Windows
Loading

Reviews (1) · Last reviewed commit: "Fit the default layout notification on o..." · Reviewed by Greptile

Comment on lines +469 to +473
MenuRow {
text: "Uninstall"
onTriggered: root.requestUninstall(menu.entry)
}
}

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

P1 Uninstall covers the pin action

AppGrid.qml nests the Uninstall MenuRow inside the pin/unpin row. Both rows occupy the same position, so Uninstall covers Keep in Dock / Remove from Dock and receives its clicks. Users get an uninstall confirmation instead of pinning or unpinning the app. Make Uninstall a sibling in menuColumn so all three actions remain usable.

Suggested change
MenuRow {
text: "Uninstall"
onTriggered: root.requestUninstall(menu.entry)
}
}
}
MenuRow {
text: "Uninstall"
onTriggered: root.requestUninstall(menu.entry)
}

Comment on lines +65 to +66
var toplevel = toplevels[i].wayland
if (!toplevel || !toplevel.appId || toplevel.parent) continue

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

P1 Minimized windows disappear

omarchy-hyprland-window-minimize accepts child windows and windows without an app ID, but this filter drops them before checking whether they are minimized. Pressing Super + M sends such a window to special:minimized without a dock item to restore it. Keep minimized windows before applying these exclusions, using an address-based fallback where needed, or refuse to minimize windows the dock cannot restore.

Comment on lines +295 to +306
Grid {
id: slots
anchors.centerIn: parent
columns: window.vertical ? 1 : appRepeater.count + 1

AppsSlot {}

Repeater {
id: appRepeater
model: window.dock ? window.dock.itemModel : null

delegate: AppSlot {}

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

P2 Dock icons leave the screen

The dock puts every app into one fixed-size row or column without limiting its length or allowing scrolling. At the default sizes, each slot is 48 pixels, so a side dock with 20 apps already exceeds a 900-pixel-high screen. Centering it pushes the first and last icons off screen, including the apps button. Add scrolling or shrink the slots to fit the available space.

Note: If this suggestion doesn't match your team's coding style, reply to this and let me know. I'll remember it for next time!

Comment on lines +31 to +32
property var pendingPins: null
onDockConfigChanged: pendingPins = null

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

P2 Saved pin order is ignored

After a user drags an icon, root.order overrides later order changes from omarchy dock pinned. Config reload keeps the dock instance, and onDockConfigChanged only clears pendingPins. The CLI saves the new order, but the dock shows the old one until the service restarts. Update order when the saved pin order changes.

@dhh
dhh restored the omarchy-dock branch October 13, 2026 08:17
@emirb emirb added this to the 4.5 milestone Oct 17, 2026
Raiden-MeixElysia pushed a commit to Raiden-MeixElysia/omarchy-iso that referenced this pull request Oct 31, 2026
Since omacom/omarchy#15263, Super+Alt+Space toggles the dock's app
picker (layer omarchy-dock-apps), not the Omarchy menu. The smoke still
waited for omarchy-menu, so it failed the shortcut that worked, then hid
omarchy.menu and left the picker open. The picker kept the keyboard:
Super+T never reached the terminals, and Super+C's token was typed into
the picker's search. Those two failures followed from the first one.
The x86_64 smoke only saw this once pull requests built from edge.

Wait for omarchy-dock-apps instead. Close every shortcut surface, the
picker included (its apps command toggles it), before each phase and
after any failed check, so one surface left open cannot take the
keyboard from the checks after it. bin/omarchy-iso-test's copy of the
smoke gets the same change.

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.

2 participants