Repository navigation
Add a dock to floating workspaces - #15263
Conversation
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>
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>
|
| MenuRow { | ||
| text: "Uninstall" | ||
| onTriggered: root.requestUninstall(menu.entry) | ||
| } | ||
| } |
There was a problem hiding this comment.
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.
| MenuRow { | |
| text: "Uninstall" | |
| onTriggered: root.requestUninstall(menu.entry) | |
| } | |
| } | |
| } | |
| MenuRow { | |
| text: "Uninstall" | |
| onTriggered: root.requestUninstall(menu.entry) | |
| } |
| var toplevel = toplevels[i].wayland | ||
| if (!toplevel || !toplevel.appId || toplevel.parent) continue |
There was a problem hiding this comment.
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.
| 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 {} |
There was a problem hiding this comment.
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!
| property var pendingPins: null | ||
| onDockConfigChanged: pendingPins = null |
There was a problem hiding this comment.
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.
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>
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
omarchy.dock(shell/plugins/dock/), with its state in thedock:subtree ofshell.jsonand set through the newomarchy dockcommand (position,autohide,pinned,pin,unpin).omarchy-launch-tui(e.g. Neovim) get their own icon; helpers without a visible desktop entry and special workspaces stay out of the dock.Floating workspaces
o.window) and modal dialogs are passed over.Super + Mminimizes the focused window. Minimized windows wait onspecial:minimizedand come back from the dock, instantly.omarchy-hyprland-window-minimizeonly acts on floating workspaces, which have the dock to bring windows back.Web apps
omarchy-webapp-installnow writesStartupWMClassfor 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.shell-shortcuts-test.shfails onshortcut menu route resolves: toggleonquattroas well; unrelated.Companion fix for resizing titled windows from their top edge:
top-edge-resizein omacom/omarchy-hyprland-titlebars.🤖 Generated with Claude Code