Initial commit of the Quickshell desktop suite: bar, dock, launcher, settings, Control Center, dashboard, OSD, lock screen, desktop widgets, plugin host with the vendored Noctalia/Omarchy compatibility layer, helpers, packaging, tests and phase documentation. Includes the optimization work so far: usage widgets and dashboard gauges no longer animate continuously, desktop widgets pause while covered, system controls stop flickering on background polls, dock app matching uses an indexed catalog, and workspace ghosts are created only for occupied slots. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
127 lines
6.2 KiB
Markdown
127 lines
6.2 KiB
Markdown
# Phase 3 — configurable dock
|
|
|
|
Implemented and tested from source on Quickshell 0.3.1 (existing Phase 2 SNI
|
|
compatibility patch), Qt 6 and Hyprland 0.56.2. No Nix files, system configuration,
|
|
autostart entries, keybinds, services or installed packages were changed.
|
|
|
|
## Behaviour
|
|
|
|
One floating dock defaults to the bottom of the primary output. No applications
|
|
are hardcoded or pinned automatically. Running applications appear dynamically;
|
|
Settings → Dock provides an installed-app picker and saved pin order.
|
|
|
|
- Closed pinned entry: click launches its native desktop entry.
|
|
- One running window: click focuses it.
|
|
- Multiple windows: click opens a glass window chooser. Arrow keys / Enter work;
|
|
Escape or an outside click dismisses the popup.
|
|
- Right-click: Open, individual windows, actual desktop-entry actions, Pin/Unpin,
|
|
and Close for each window. New Window appears only when advertised by the app.
|
|
- Drag a pinned icon onto another pinned icon to reorder; settings also has arrows.
|
|
- Running and focused indicators, neighbour magnification, press feedback and tooltips.
|
|
- Dynamic width with scrolling for overflow; configurable icon size, spacing,
|
|
margin, motion speed, monitor, edge and visibility. Reduced motion is respected.
|
|
- Always visible, Auto Hide and Intelligent Hide. Hidden input is restricted to a
|
|
3 px edge strip; menus and pointer interaction hold the dock open.
|
|
|
|
Bottom is the default. Left/right are opt-in positions of the same dock, not
|
|
additional side docks. No screen coordinates or application IDs are host-specific.
|
|
|
|
## Files
|
|
|
|
New:
|
|
|
|
- `quickshell/services/ApplicationsService.qml`, `AppMatching.js`, `HyprlandService.qml`
|
|
- `quickshell/core/ScreenService.qml`
|
|
- `quickshell/dock/Dock.qml`, `DockItem.qml`, `DockModel.qml`, `DockState.qml`,
|
|
`DockContextMenu.qml`, `WindowChooser.qml`, `DockGeometry.js`, `qmldir`
|
|
- `quickshell/settings/pages/Dock.qml`
|
|
- `quickshell/testing/DockDriver.qml` (opt-in QtTest driver)
|
|
- `tests/dock.test.cjs`, `tests/dock_runtime.py`, `tests/dock-fixture/shell.qml`
|
|
- `docs/phase-3.md`
|
|
|
|
Updated:
|
|
|
|
- `quickshell/shell.qml`: dock composition and opt-in test driver.
|
|
- `quickshell/services/qmldir`, `quickshell/core/qmldir`: shared service registration.
|
|
- `quickshell/services/ConfigLogic.js`, `quickshell/config/defaults.json`: schema 3,
|
|
validated dock preferences, migration preserving old settings and unknown keys.
|
|
- `quickshell/settings/Settings.qml`: Dock navigation, lazy page loading, About.
|
|
- `tests/config.test.cjs`, `scripts/validate`: migration and dock logic checks.
|
|
- `README.md`, `dependencies.json`, `docs/architecture.md`, `docs/validation.md`.
|
|
|
|
## Matching and platform limits
|
|
|
|
Matching uses desktop IDs, then unique StartupWMClass values, with explicit
|
|
`dock.appOverrides` taking precedence. Ambiguous matches remain separate running
|
|
entries instead of focusing a guessed app. Browser web apps, Wine and unusual
|
|
XWayland classes may require an override, for example:
|
|
|
|
```json
|
|
{"dock":{"appOverrides":{"actual-window-class":"installed-entry.desktop"}}}
|
|
```
|
|
|
|
Unknown running entries can be focused/closed, but cannot be pinned until matched.
|
|
Missing installed entries remain in the pinned list and can be removed there.
|
|
|
|
Desktop launches use Quickshell's native DesktopEntry/DesktopAction execution.
|
|
Its 0.3.1 API is not a full desktop portal/DBus activation implementation, and does
|
|
not expand every desktop Exec field code. Terminal=true apps require a configured
|
|
`dock.terminalCommand` argument array, including the terminal's execute flag.
|
|
Settings exposes this array; no terminal executable is guessed or installed.
|
|
|
|
Hyprland has no universal primary-output flag: `primary` resolves to the output at
|
|
logical (0,0), or the first available output. Selecting an explicit output is best
|
|
for other arrangements; a disconnected selection falls back to primary.
|
|
|
|
Intelligent hide samples native Hyprland geometry every 500 ms only while enabled.
|
|
It considers visible workspaces and windows on the dock's own output. It detects
|
|
rectangle overlap/fullscreen, not pixel occlusion, transparent regions or rounded
|
|
corners. Normal window matching is event-driven. No `hyprctl` subprocess polling.
|
|
|
|
## Validation
|
|
|
|
Passed QML lint, config migration/preservation tests, matching/ambiguity/grouping
|
|
and geometry tests, foundation runtime regression, private-DBus tray regression,
|
|
and live dock tests. Runtime logs were free of QML warnings and DBus errors.
|
|
|
|
The dock test launches temporary fixture windows and desktop entries. It verifies
|
|
native desktop/action execution, actual pointer drag reorder and persisted order,
|
|
window matching/focus/chooser/close, Escape, settings loading, auto hide/edge reveal,
|
|
fullscreen overlap, restoration to the existing-window baseline, both available
|
|
outputs and all supported edges, enable/disable, and menu-based unpinning.
|
|
It never closes or launches real user applications. Geometry logic additionally
|
|
checks off-output and inactive-workspace exclusion. The glass dock was inspected
|
|
from a rendered capture. Nix builds were deliberately deferred as requested.
|
|
|
|
Still requiring manual acceptance: physical pointer routing to the hidden edge,
|
|
long overflowing docks and drag during scrolling, compositor outside-click routing,
|
|
monitor hotplug, fractional scaling, app-specific launch behaviour, and other distros.
|
|
Synthetic input does not prove physical Wayland input routing. Blur/refraction
|
|
still depends on external compositor setup; this phase does not change it.
|
|
|
|
## Try it
|
|
|
|
From the project root, in your Hyprland session:
|
|
|
|
```sh
|
|
./scripts/glassmxrph run
|
|
quickshell ipc --path ./quickshell call shell openSettings dock
|
|
quickshell ipc --path ./quickshell call dock status
|
|
```
|
|
|
|
The cog → Dock opens the same settings. Pin two apps, drag to reorder, open two
|
|
windows of an app and try the chooser. Test auto/intelligent hide and your selected
|
|
monitor. Existing source previews hot-reload; the runner prevents duplicate instances
|
|
of the same source path. Use the standalone source runner for this phase.
|
|
|
|
Automated checks require matching Qt imports, Node, Python 3 and QtTest:
|
|
|
|
```sh
|
|
./scripts/validate
|
|
python3 tests/dock_runtime.py
|
|
```
|
|
|
|
Do not run the runtime test against a path already in use. It refuses to replace
|
|
that shell; use an isolated source copy when keeping your normal preview running.
|
|
`GLASSMXRPH_DOCK_TESTING=1` loads the input driver only for testing.
|