Add glassMxrph shell sources
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>
This commit is contained in:
commit
99e64a7713
433 files changed
+57792
No files matched your search
@@ -0,0 +1,87 @@
|
||||
# Phase 9 — Polish and recovery
|
||||
|
||||
Later [customization work](customization.md) adds native wallpaper handling and opt-in global HyprGlass controls, superseding the documentation-only integration below.
|
||||
|
||||
This phase changes only the portable project. It does not apply Nix/Hyprland configuration, alter bindings, load/unload plugins, install services or publish a repository.
|
||||
|
||||
## Changes
|
||||
|
||||
- Neutral, low-opacity gradient highlights add depth to shared glass surfaces. Hover lift, press compression and popup translation use the existing centralized duration/intensity controls; no new blur passes or background animation loops were added.
|
||||
- Reduced motion now suppresses spatial intensity as well as duration, including dock magnification/press response and the settings cog. Existing launcher, popup and dock transitions remain interruptible.
|
||||
- Accent text uses linearized luminance and chooses a contrasting black/white foreground. Matugen's supplied foreground is retained only when it meets 4.5:1 contrast against the current accent. Normal/hover/pressed button states have separate derived foregrounds; glass surfaces remain neutral.
|
||||
- Media artwork retains the previous image while a new image loads, alongside existing metadata and artwork transitions. This uses the installed Qt Image `retainWhileLoading` API (Qt 6.8+).
|
||||
- Launcher, Settings and Control Center resolve captured outputs against the current Quickshell screen list, falling back to the active output if the previous output is gone. Widgets/dock retain their existing configured-monitor fallback.
|
||||
- Metrics failures mark readings stale immediately and retry with a 1–30 second exponential delay. Successful data resets the delay. The collector remains shared and stops without consumers. IPC diagnostics now include its PID and retry delay.
|
||||
- A successful watched-palette reload clears the prior palette error. Invalid palette files still preserve the last valid colors.
|
||||
- `./scripts/glassmxrph doctor` reports required command availability, session presence, versions, optional tools and HyprGlass layer status. It only queries; it does not activate services or start the shell. The runner gives a direct error when Python/Quickshell is absent.
|
||||
|
||||
## HyprGlass integration is opt-in
|
||||
|
||||
The running compositor is Hyprland 0.56.2. The host Nix configuration pins HyprGlass revision `77636c5711ed572ca199a84d06146ccac0951786`; the plugin reports runtime version 1.0.0 while the package is labelled 0.8.0, so the source revision is the reliable compatibility reference. Read-only inspection found the plugin loaded, but `plugin:hyprglass:layers:enabled` was false.
|
||||
|
||||
[The project example](../examples/hyprland/glassmxrph-hyprglass.conf) uses option names from the [pinned upstream documentation](https://github.com/hyprnux/hyprglass/blob/77636c5711ed572ca199a84d06146ccac0951786/README.md). It defines a neutral, restrained preset and explicitly lists this project's seven layer namespaces. Alpha masking leaves the transparent regions of fullscreen launcher/settings/Control Center surfaces unglassed. A 0.1 alpha threshold excludes subtle shell shadows.
|
||||
|
||||
**The example has not been applied or visually verified with refraction.** Merge it with existing namespace/preset maps during the later host integration; do not replace existing lists or blindly source it over other applications' configuration. It loads no plugin. Never use a plugin binary built for a different compositor ABI. Keep HyprGlass's existing blur-management defaults; avoid adding a second blur layer or enabling force-live-resample. Tray menus are xdg popups, not independently named layer surfaces, so their compositor treatment may differ.
|
||||
|
||||
The shell remains usable with neutral QML transparency/highlights when HyprGlass is absent. No fake background refraction or global blur-strength slider is presented. Compositor effects remain owned by the compositor.
|
||||
|
||||
## Test and review
|
||||
|
||||
```sh
|
||||
./scripts/glassmxrph doctor
|
||||
./scripts/validate
|
||||
./scripts/glassmxrph run
|
||||
```
|
||||
|
||||
Check Appearance → Reduced motion, hover/press feedback, repeated popup opens/closes, track changes, palette updates, monitor selection and dock neighbors. For automated tests, stop only this project's preview first:
|
||||
|
||||
```sh
|
||||
python3 tests/polish_runtime.py
|
||||
python3 tests/runtime.py
|
||||
python3 tests/launcher_runtime.py
|
||||
python3 tests/dock_runtime.py
|
||||
python3 tests/settings_runtime.py # Matugen 4.2.x on PATH
|
||||
python3 tests/controlcenter_runtime.py
|
||||
python3 tests/metrics_runtime.py
|
||||
dbus-run-session -- python3 tests/media_runtime.py
|
||||
dbus-run-session -- python3 tests/tray_runtime.py
|
||||
```
|
||||
|
||||
Private-DBus fixtures require the development dependencies listed in `dependencies.json`. The polish test uses isolated XDG configuration, tests synthetic stale-screen references, and deliberately terminates only its own verified metrics-helper PID to check recovery. It does not disconnect monitors or kill other services. Palette and contrast tests also cover an invalid Matugen foreground. A sampled RGB cube verifies at least 4.5:1 black/white contrast mathematically; this is not a claim about every translucent element or accessibility certification.
|
||||
|
||||
Physical output hot-unplug, fractional-scale hardware, other distributions/architectures and actual HyprGlass refraction still require host testing. Two currently connected outputs, normal/reduced motion, native UI interactions, live Matugen generation and provider failures are covered locally. Nix packaging, conflicting host keybinds and autostart remain deferred by request. No source test replaces that deployment work.
|
||||
|
||||
## Recorded validation
|
||||
|
||||
QML validation and configuration/provider/contrast tests passed. The polish, foundation, launcher, dock, settings/Matugen, Control Center, metrics, private-DBus media and private-DBus tray runtime tests all passed with clean QML/DBus logs. Updated launcher and metrics captures were visually reviewed. Nix files match the pre-phase baseline; compositor effects were not applied.
|
||||
|
||||
## Changed files
|
||||
- `README.md`
|
||||
- `dependencies.json`
|
||||
- `docs/architecture.md`
|
||||
- `docs/compatibility.md`
|
||||
- `docs/phase-9.md`
|
||||
- `docs/validation.md`
|
||||
- `examples/hyprland/glassmxrph-hyprglass.conf`
|
||||
- `quickshell/bar/modules/SettingsModule.qml`
|
||||
- `quickshell/components/GlassButton.qml`
|
||||
- `quickshell/components/GlassPanel.qml`
|
||||
- `quickshell/components/GlassPopup.qml`
|
||||
- `quickshell/controlcenter/ControlCenter.qml`
|
||||
- `quickshell/core/ScreenService.qml`
|
||||
- `quickshell/dock/DockItem.qml`
|
||||
- `quickshell/launcher/Launcher.qml`
|
||||
- `quickshell/media/MediaCard.qml`
|
||||
- `quickshell/services/MetricsService.qml`
|
||||
- `quickshell/settings/Settings.qml`
|
||||
- `quickshell/shell.qml`
|
||||
- `quickshell/testing/PolishDriver.qml`
|
||||
- `quickshell/theme/ColorLogic.js`
|
||||
- `quickshell/theme/MatugenService.qml`
|
||||
- `quickshell/theme/Theme.qml`
|
||||
- `scripts/doctor.py`
|
||||
- `scripts/glassmxrph`
|
||||
- `scripts/validate`
|
||||
- `tests/launcher_runtime.py`
|
||||
- `tests/polish.test.cjs`
|
||||
- `tests/polish_runtime.py`
|
||||
Reference in new issue
Block a user