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,134 @@
|
||||
# Architecture
|
||||
|
||||
`shell.qml` composes modules and exposes IPC; it contains no feature layout.
|
||||
Directory singletons use explicit `qmldir` registration.
|
||||
|
||||
- `services/ConfigService.qml`: XDG persistence, defaults and validation.
|
||||
- `services/ConfigLogic.js`: pure merge/validation/update functions, tested separately.
|
||||
- `theme/ThemeManager.qml`: resolves custom, Qt system and Matugen accent sources.
|
||||
- `theme/Theme.qml`: semantic color, shape and motion tokens. Literal theme colors live here.
|
||||
- `theme/MatugenService.qml`: watches validated JSON; retains the last valid palette.
|
||||
- `core/ShellState.qml`: settings routing and active-monitor selection.
|
||||
- `core/ModuleRegistry.qml`: allowlisted bar component URLs; configuration cannot load arbitrary QML.
|
||||
- `components/`: reusable glass primitives.
|
||||
- `bar/`: ordered modules, assigned through configuration to left/center/right.
|
||||
- `settings/`: appearance, tray, dock and about pages.
|
||||
|
||||
Phase 1 directly consumes the single native Hyprland model: no subprocess polling.
|
||||
Later services encapsulate media, applications, networking and metrics for all views.
|
||||
Desktop widgets are user-placed (`widgets/`); none are shown by default. Dock defaults to bottom.
|
||||
|
||||
Unknown configuration keys survive saves. Arrays preserve user order rather than
|
||||
index-merging defaults. Future schema migrations must be explicit, tested and must
|
||||
not silently replace pinned apps or configured module arrays. Unknown future schema
|
||||
versions are rejected without overwriting the file.
|
||||
|
||||
Distribution boundaries: QML contains no package manager, host name, monitor name,
|
||||
or machine path. Packaging lives under `packaging/`; ZaneyOS selection belongs in
|
||||
the user's external repository. Optional capabilities must degrade visibly and safely.
|
||||
|
||||
Future palette generation: wallpaper event → debounced Matugen job → validate staging
|
||||
JSON → atomic promotion → FileView reload → ThemeManager. One global palette follows
|
||||
a configured monitor. Job generations prevent stale jobs replacing newer requests.
|
||||
Current music artwork must never change the global accent.
|
||||
|
||||
## Phase 2 tray
|
||||
|
||||
`TrayService` owns the one native `SystemTray` model, active icon/menu, hover dismissal
|
||||
and popup registry. `TrayModule` renders only registered SNI items on each bar.
|
||||
`TrayMenus` owns one root popup and a Hyprland focus grab for outside dismissal.
|
||||
Each submenu uses a lazily instantiated `QsMenuOpener` and an anchored popup; dormant
|
||||
menus do not retain openers or animation timers. Compositor constraints flip/slide
|
||||
popups at screen edges. The menu stack is closed when its tray delegate disappears
|
||||
or Settings opens. Tray clicks never call the system-area action.
|
||||
|
||||
`GlassMenu` and `GlassMenuItem` are shared presentation components. `TrayMenuItem`
|
||||
adapts real `QsMenuEntry` state; triggering calls the entry's actual `triggered()`
|
||||
signal. The app remains authoritative for checked state. Empty/asynchronous menus
|
||||
show status text, not made-up application actions.
|
||||
|
||||
The optional `GLASSMXRPH_TESTING=1` driver imports QtTest for event simulation on
|
||||
fixture icons. It is unloaded in normal operation; QtTest is not a runtime dependency.
|
||||
The fixture runs in a private DBus session and never activates real user applications.
|
||||
|
||||
## Phase 3 dock
|
||||
|
||||
`ApplicationsService` owns the shared native desktop-entry catalog and launches.
|
||||
`HyprlandService` adapts the one native toplevel model; focus/close use Wayland
|
||||
handles with validated Hyprland address dispatch as fallback.
|
||||
`AppMatching.js` and `DockGeometry.js` contain independently tested pure logic.
|
||||
`DockModel` groups windows and saved pins; keyed ScriptModel delegates preserve
|
||||
icon identity when focus or geometry changes. `DockState` owns the single chooser/
|
||||
context popup and coordinates exclusivity with tray menus and Settings.
|
||||
|
||||
`ScreenService` resolves configured outputs in logical per-screen coordinates.
|
||||
`Dock` manages placement, edge input and hide transitions. Intelligent mode alone
|
||||
enables a shared 500 ms native geometry refresh; there is no subprocess polling.
|
||||
`DockItem` handles pointer interactions, neighbour magnification and indicators.
|
||||
`DockContextMenu` and `WindowChooser` use the shared glass menu presentation.
|
||||
|
||||
Config schema 3 adds defaults without replacing saved pins, module arrays or
|
||||
unknown keys. Invalid object/array types are rejected instead of reset silently.
|
||||
QtTest is loaded only with `GLASSMXRPH_DOCK_TESTING=1`. The disposable fixture
|
||||
uses Quickshell's [AppId pragma](https://quickshell.org/docs/v0.3.0/guide/advanced/)
|
||||
and [FloatingWindow API](https://quickshell.org/docs/v0.3.1/types/Quickshell/FloatingWindow/).
|
||||
|
||||
## Phase 4 launcher
|
||||
|
||||
`Launcher` owns only presentation, input and selection. `AppSearch` consumes the
|
||||
existing shared ApplicationsService; `CommandSearch` consumes CommandRegistry.
|
||||
Both use pure SearchLogic scoring over pre-normalized catalog fields. Result work
|
||||
stops while the launcher is closed; no subprocess or duplicate application scan
|
||||
is introduced. Launches go through ApplicationsService.
|
||||
|
||||
`SettingsRegistry` defines canonical page IDs, command aliases, labels and phase
|
||||
availability. Settings and CommandRegistry share it, so palette destinations are
|
||||
also reachable normally. Code-owned command extensions may register callbacks;
|
||||
query text is never shell-evaluated. Future pages are explicitly labelled.
|
||||
|
||||
`LauncherState` supplies IPC and owns the window reference. ShellState coordinates
|
||||
opening/closing and captures ScreenService's active output. ScreenService consumes
|
||||
native monitor-focus events eagerly; no focus polling is needed. Dock/tray popups
|
||||
and Settings are dismissed when opening the launcher. Appearance and search
|
||||
preferences are shared ConfigService/Theme values. Width and delayed height
|
||||
animations form the opening search pill and respect reduced motion.
|
||||
|
||||
## Phase 5 providers
|
||||
|
||||
WallpaperService owns discovery, gallery and wallpaper changes. MatugenService observes the selected palette output and serializes generation through ProviderJob, discarding stale results. A short-lived Python helper handles filesystem/provider operations and generated palette files. Settings controls share ConfigService and Theme; Media preferences are ready for the next phase.
|
||||
|
||||
## Phase 6 media
|
||||
|
||||
`MediaService` is the sole owner of the native MPRIS model, player selection, guarded
|
||||
actions and a shared 500 ms position sampler. It reads Quickshell's locally extrapolated
|
||||
position; it does not poll DBus or spawn playerctl. Sampling stops without visible progress
|
||||
consumers or when paused. `MediaCard` is shared by Settings and
|
||||
`controlcenter/modules/Media.qml`; Now Playing uses the same service.
|
||||
|
||||
`CavaService` runs one optional process for all visualizer consumers. The bundled raw
|
||||
configuration leaves audio input selection to Cava, emits 24 bars at 30 fps, and never
|
||||
alters the user's Cava configuration. Its Python launcher execs Cava in place and reports
|
||||
missing executables. Playback pause, hidden views or disabling Cava stop the process;
|
||||
failures do not cause restart loops. Song artwork never changes the global accent.
|
||||
|
||||
## Phase 7 system controls
|
||||
|
||||
`ControlCenter` is an active-monitor overlay with a registry-driven module layout.
|
||||
`ShellState` coordinates its visibility with existing shell popups. `AudioService`,
|
||||
`NetworkService` and `BluetoothService` adapt native Quickshell event-driven models.
|
||||
`SystemService` serializes one-shot JSON provider jobs for visible display/DND/power
|
||||
controls, polling every five seconds only while needed. `PowerService` owns pending
|
||||
confirmation; it exposes no direct destructive IPC action. The helper also enforces
|
||||
confirmation before logout/reboot/shutdown and uses argv arrays with timeouts.
|
||||
|
||||
The same modules are reused by detailed Settings pages. Wi-Fi credentials pass to
|
||||
NetworkManager's native API, not subprocess arguments or shell preferences. BlueZ
|
||||
pairing uses the existing manager. No notification or pairing daemon is registered.
|
||||
|
||||
## Phase 8 telemetry
|
||||
|
||||
MetricsService owns a single demand-driven streaming Python collector. MetricsCard, bar MetricsModule and Settings share its snapshot; no UI component polls sensors. The collector owns monotonic CPU/network deltas and rate-limited GPU/storage reads. A bounded CPU history is kept by the service; missing and stale values remain explicit. See [Phase 8](phase-8.md).
|
||||
|
||||
## Phase 9 polish
|
||||
|
||||
Theme owns contrast selection and reduced-motion intensity. Shared glass components add inexpensive highlights and reversible motion without per-panel blur effects. ScreenService validates captured output references. MetricsService owns bounded restart backoff. The optional compositor example and read-only doctor keep host integration separate from UI state. See [Phase 9](phase-9.md).
|
||||
@@ -0,0 +1,87 @@
|
||||
# Compatibility and dependencies
|
||||
|
||||
Tested base: Quickshell 0.3.1 (Qt APIs verified from installed qmltypes),
|
||||
Hyprland 0.56.2, Linux x86_64, Wayland. See `dependencies.json` and `flake.lock`.
|
||||
|
||||
Supported target: Linux distributions able to supply compatible dependencies.
|
||||
The suite is Hyprland-specific; portability is across distributions, not compositors.
|
||||
Nix is optional. Home Manager and ZaneyOS are not runtime dependencies.
|
||||
|
||||
QtQuick software surfaces provide transparency, borders, highlights and shadows.
|
||||
Real background blur and refraction require compositor support. Without configured
|
||||
blur rules, Phase 1 is translucent glass without backdrop blur. This is intentional:
|
||||
the preview must not modify the compositor. HyprGlass is neither bundled nor enabled.
|
||||
Its binary must match the host compositor ABI; never copy a plugin between versions.
|
||||
|
||||
Matugen 4.2.0 is the verified generator. Its CLI supports scheme types and contrast
|
||||
-1..1. The current settings integration executes it asynchronously. System accent comes from Qt's SystemPalette and
|
||||
may be a Qt fallback on desktops without a configured palette provider.
|
||||
|
||||
Integrated providers include: PipeWire/WirePlumber, NetworkManager, BlueZ, MPRIS, SwayNC or a
|
||||
validated notification adapter, UPower/logind. Existing daemons remain owners;
|
||||
missing providers disable associated controls instead of starting duplicate services.
|
||||
External-display brightness is hardware-dependent (DDC/CI), not guaranteed by
|
||||
brightnessctl. Night Light requires a separately verified provider.
|
||||
|
||||
Nix pins the user-space package closure; it cannot pin another distro's kernel,
|
||||
graphics driver, active compositor or session services. Native package-manager installs
|
||||
are reproducible only to the extent their dependency versions are pinned externally.
|
||||
|
||||
## Quickshell 0.3.1 tray compatibility fix
|
||||
|
||||
The upstream watcher removes every object of an exiting service internally, but
|
||||
emits `StatusNotifierItemUnregistered` only for the last object. This leaves stale
|
||||
icons for applications exporting multiple SNI objects on one connection. Its prefix
|
||||
comparison can also match a different service name. The project-scoped patch emits
|
||||
one signal per removed object and requires the service/path separator when matching.
|
||||
|
||||
- Source: [Quickshell v0.3.1 watcher.cpp](https://github.com/quickshell-mirror/quickshell/blob/v0.3.1/src/services/status_notifier/watcher.cpp)
|
||||
- Patch: `packaging/patches/quickshell-0.3.1-sni-unregister.patch`
|
||||
- Nix applies it to the project Quickshell only, with an explicit 0.3.1 version guard.
|
||||
- Native distro builds can apply the same patch to Quickshell 0.3.1 source with
|
||||
`patch -p1 < /path/to/glassMxrph/packaging/patches/quickshell-0.3.1-sni-unregister.patch`,
|
||||
then use their normal Quickshell build/package workflow.
|
||||
- When another shell owns the session's StatusNotifierWatcher, that watcher's
|
||||
correctness also matters. Testing glassMxrph beside an unpatched watcher cannot
|
||||
repair that other process. The isolated regression test makes glassMxrph own
|
||||
its test watcher. Normal standalone operation uses the patched watcher.
|
||||
|
||||
No system package, compositor, daemon, notification owner or shell service is changed.
|
||||
AppIndicator implementations exporting SNI/DBusMenu work through the same APIs.
|
||||
XEmbed-only applications need an external bridge, which is not installed by this suite.
|
||||
An application exiting during a pending DBus call can still produce a transient
|
||||
upstream transport diagnostic; no action is retried and the UI must discard the item.
|
||||
|
||||
## Phase 5
|
||||
|
||||
Python 3 is required for wallpaper/palette helpers. Matugen 4.2.0 and the 4.2.x CLI contract are verified. Wallpaper adapters target Serpantinum 2.2.0 and awww 0.12.1, with a configurable argv fallback. See [Phase 5](phase-5.md) for provider testing limits. Nix packaging integration is deferred.
|
||||
|
||||
## Phase 6 MPRIS and Cava
|
||||
|
||||
MPRIS properties/methods and position-in-seconds semantics were checked against the
|
||||
installed Quickshell 0.3.1 qmltypes and source. The Margins value type is incompletely
|
||||
resolved by qmllint in that version; a narrow annotation covers the verified runtime
|
||||
grouped property. Cava 1.0.0 raw ASCII output was tested with the existing audio server.
|
||||
Cava input support depends on the distribution build. No audio daemon is installed.
|
||||
|
||||
## Phase 7
|
||||
|
||||
The installed 0.3.1 build includes `Quickshell.Networking`, `Quickshell.Bluetooth`
|
||||
and `Quickshell.Services.Pipewire`; native distribution builds must include them.
|
||||
Command-backed controls require their listed providers and degrade when unavailable.
|
||||
Power profiles use the verified `net.hadess.PowerProfiles` compatibility interface;
|
||||
Night Light uses the running `rs.wl-gammarelay` service. No compositor configuration
|
||||
is modified. The runner can derive an unset TZDIR from `/etc/localtime` to support
|
||||
nonstandard timezone database locations. See [Phase 7](phase-7.md) for exact limits.
|
||||
|
||||
## Phase 8 metrics
|
||||
|
||||
Linux procfs/sysfs and Python 3 provide baseline telemetry; optional nvidia-smi comes from the host driver. AMD DRM/hwmon is read directly. Driver-specific unavailable fields are explicit; privileged Intel tracing and CPU package power are not implemented. Use local storage paths only. No Nix packaging or system changes were made. See [Phase 8](phase-8.md).
|
||||
|
||||
## Phase 9
|
||||
|
||||
Artwork retention requires Qt 6.8+ (`Image.retainWhileLoading`), verified in the
|
||||
installed Qt QML metadata. The host's HyprGlass revision supports alpha-masked layers,
|
||||
but its layer effects are currently disabled. The example is unapplied; advanced
|
||||
effects and distribution portability need host validation. `scripts/glassmxrph doctor`
|
||||
provides read-only dependency/session diagnostics. See [Phase 9](phase-9.md).
|
||||
@@ -0,0 +1,54 @@
|
||||
# Desktop customization
|
||||
|
||||
All implementation lives in glassMxrph. Host Nix configuration, existing bindings and autostart are separate integration work.
|
||||
|
||||
## Bar editor
|
||||
|
||||
Open Settings → Bar. Drag a module by its grip to reorder it or move it between Left, Center and Right, including empty lanes. Changes persist on drop. Toggle cards to disable modules; use the available-module buttons to add them.
|
||||
|
||||
Keyboard alternative: focus a grip, use Ctrl+Up/Down to reorder or Alt+Left/Right to change lanes. Escape cancels a drag.
|
||||
|
||||
## Native wallpaper picker
|
||||
|
||||
Open Settings → Wallpaper → Open wallpaper picker, or run:
|
||||
|
||||
```sh
|
||||
./scripts/glassmxrph wallpaper
|
||||
```
|
||||
|
||||
The centered carousel follows the current Super+Shift+W picker's visual concept and runs entirely inside glassMxrph. Search local images, select an output, browse with arrow keys and apply with Enter or double-click. History records the last 50 selections. Escape or an outside click closes it.
|
||||
|
||||
Configure image directories in Wallpaper settings; the default search directory is ~/Pictures/Wallpapers. Select the Native backend when replacing Serpantinum. New configurations default to Native; existing explicit backend preferences are preserved.
|
||||
|
||||
Native wallpapers use one background layer per configured output and need no external wallpaper daemon. Images are decoded before committing the selection. The existing shared wallpaper/Matugen pipeline regenerates enabled automatic palettes and updates the theme live. Wallpapers last while glassMxrph runs. Existing wallpaper services are not stopped automatically; decommission them during host integration.
|
||||
|
||||
This picker currently supports local still images, search and history. Serpantinum's online downloads, video wallpapers and additional filters are not included. Existing Super+Shift+W remains untouched until host integration.
|
||||
|
||||
## Global HyprGlass controls
|
||||
|
||||
In Settings → Appearance, choose **Match Ghostty’s liquid glass**, then **Apply to desktop and apps**. The matching profile uses the inspected Ghostty liquid preset: blur 0.45, two iterations, refraction 3, chromatic aberration 0.45, Fresnel 0.5, specular 0.8, rim 0.065, lens distortion 0.25 and its dark color adjustments. Shell surface opacity becomes 0.3.
|
||||
|
||||
The global effect toggle and layer toggle control ordinary application windows and shell layers. Sliders save draft values; Apply changes the loaded plugin. Explicit app presets and existing layer mappings/exclusions retain priority, so those surfaces may override global values.
|
||||
|
||||
After Apply, ownership is saved and the chosen settings reapply on shell startup and Hyprland configuration reload. **Restore previous glass** restores captured values that have not subsequently been changed externally and disables automatic reapplication. Stopping the shell alone does not restore compositor preferences.
|
||||
|
||||
The implementation requires a loaded compatible HyprGlass plugin and hyprctl. It is verified against revision [77636c5711ed572ca199a84d06146ccac0951786](https://github.com/hyprnux/hyprglass/tree/77636c5711ed572ca199a84d06146ccac0951786). No plugin is installed or loaded by the shell. Without it, neutral QML glass remains usable.
|
||||
|
||||
This revision commits custom preset declarations and namespace mappings only on configuration reload. Live controls therefore use verified scalar options with the default fallback preset, preparing values before activating them. They do not pretend to update cached preset declarations. Blur resampling may wait for background changes. Avoid conflicting per-layer preset mappings from the older Phase 9 example when expecting global sliders to control those layers.
|
||||
|
||||
Apply checks option readback and rolls back failed writes. A session-scoped restore journal lives under XDG_STATE_HOME/glassMxrph. No Nix or Hyprland files are rewritten.
|
||||
|
||||
## Validation and changed areas
|
||||
|
||||
- Bar: settings/controls/BarEditor.qml, settings/pages/Bar.qml and services/SettingsLogic.js.
|
||||
- Wallpapers: wallpaper/WallpaperPicker.qml, wallpaper/WallpaperBackground.qml, WallpaperService, desktop helper, shell state/entry point, settings page and runner IPC.
|
||||
- Glass: helpers/glass.py, services/GlassService.qml, controls/GlassSettings.qml and Appearance.
|
||||
- Shared configuration defaults/validation, slider precision and test drivers were updated.
|
||||
|
||||
Run scripts/validate with installed Quickshell QML imports available. tests/customization_runtime.py exercises real drag input, picker search/apply/history and native background creation, plus global Apply/update/off/Restore against a recording compositor adapter. tests/settings_runtime.py checks settings and real Matugen generation. Both use disposable preferences and stop their preview.
|
||||
|
||||
A separate live check against the loaded HyprGlass plugin successfully applied the matching global profile, checked readback and restored every controlled option to its original value.
|
||||
|
||||
## Tray menu refraction
|
||||
|
||||
Tray hover/context menus and nested submenus use small overlay layer windows with the glassMxrph-tray namespace. This lets the installed HyprGlass layer renderer process them; ordinary xdg popup windows bypass that renderer. They inherit the global layer glass settings. If you maintain a namespace whitelist, include glassMxrph-tray and avoid a conflicting preset mapping. The supplied optional example includes it. Native application fallback menus (Shift+right-click) remain application-owned.
|
||||
@@ -0,0 +1,63 @@
|
||||
# Phase 2 — real system tray
|
||||
|
||||
Completed and validated on Linux x86_64 / Hyprland 0.56.2 with Quickshell 0.3.1
|
||||
plus the project-scoped SNI lifecycle fix. Other distributions remain untested.
|
||||
|
||||
## New files
|
||||
|
||||
- `.gitattributes` (preserve unified-patch context whitespace)
|
||||
|
||||
- `quickshell/services/TrayService.qml`
|
||||
- `quickshell/bar/modules/TrayModule.qml`
|
||||
- `quickshell/menus/TrayIcon.qml`
|
||||
- `quickshell/menus/TrayMenus.qml`
|
||||
- `quickshell/menus/TrayMenu.qml`
|
||||
- `quickshell/menus/TrayMenuItem.qml`
|
||||
- `quickshell/menus/TraySubMenu.qml`
|
||||
- `quickshell/settings/pages/Tray.qml`
|
||||
- `quickshell/testing/TrayDriver.qml` (opt-in test driver)
|
||||
- `tests/tray_fixture.py`
|
||||
- `tests/tray_runtime.py`
|
||||
- `packaging/nix/quickshell.nix`
|
||||
- `packaging/patches/quickshell-0.3.1-sni-unregister.patch`
|
||||
- `docs/phase-2.md`
|
||||
|
||||
## Updated files
|
||||
|
||||
- `quickshell/shell.qml`: menu composition and optional test driver.
|
||||
- `quickshell/core/ModuleRegistry.qml`: tray registration.
|
||||
- `quickshell/services/qmldir`: shared tray singleton.
|
||||
- `quickshell/services/ConfigLogic.js`, `quickshell/config/defaults.json`: schema 2 migration and validated tray preferences.
|
||||
- `quickshell/components/GlassMenu.qml`, `quickshell/components/GlassMenuItem.qml`: shared menu presentation and accessible state.
|
||||
- `quickshell/settings/Settings.qml`: normal navigation and tray deep link.
|
||||
- `tests/config.test.cjs`: preservation and migration regression tests.
|
||||
- `flake.nix`, `packaging/nix/package.nix`: patched runtime, test dependencies and version 0.2.0.
|
||||
- `README.md`, `dependencies.json`, `docs/architecture.md`, `docs/compatibility.md`, `docs/validation.md`: usage, dependencies and test evidence.
|
||||
|
||||
## Verification
|
||||
|
||||
Passed: configuration tests, QML lint, foundation runtime regression, isolated
|
||||
SNI/DBusMenu integration, per-monitor menu placement, and locked package build.
|
||||
The documented `nix develop` environment passed lint and the isolated tray tests
|
||||
without ad hoc dependency paths. Test menus include two nested submenu levels,
|
||||
checked/unchecked radio and checkbox states, disabled/hidden entries, icons,
|
||||
separators, and service exit while a menu is open.
|
||||
|
||||
Read-only testing against the live desktop discovered NetworkManager, Blueman
|
||||
and OpenDeck; NetworkManager's exported menu rendered correctly. No application
|
||||
actions were triggered against real providers. No system configuration, services
|
||||
or keybinds changed. Temporary shell instances were stopped after testing.
|
||||
|
||||
## Try it
|
||||
|
||||
From the project directory, use `nix run .` for the compatibility-patched package.
|
||||
Hover a tray icon for 400 ms, right-click for an immediate menu, and use the cog
|
||||
→ Bar / Tray to change preferences. Escape closes a menu. Shift + right-click
|
||||
requests the native menu fallback. Stop the preview with Ctrl+C.
|
||||
|
||||
For source development use `nix develop`, then `./scripts/glassmxrph run`.
|
||||
See validation.md for the exact automated commands and remaining manual checks.
|
||||
The preview can overlap the existing shell; it does not replace or stop it.
|
||||
|
||||
Remaining manual coverage includes physical outside-click routing, native fallback,
|
||||
hotplug/fractional scaling and other distributions. Phase 3 (dock) is not included.
|
||||
+126
@@ -0,0 +1,126 @@
|
||||
# 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.
|
||||
+166
@@ -0,0 +1,166 @@
|
||||
# Phase 4 — launcher and command palette
|
||||
|
||||
Implemented and tested from source on the existing Quickshell 0.3.1 runtime,
|
||||
Qt 6 and Hyprland 0.56.2. All changes are inside this project. Nix files,
|
||||
Hyprland configuration, installed packages and existing keybinds are unchanged.
|
||||
|
||||
## Try it
|
||||
|
||||
Start the shell from its project root:
|
||||
|
||||
```sh
|
||||
./scripts/glassmxrph run
|
||||
```
|
||||
|
||||
In another terminal, toggle the running launcher's IPC endpoint:
|
||||
|
||||
```sh
|
||||
./scripts/glassmxrph launcher
|
||||
```
|
||||
|
||||
Or use the endpoint directly:
|
||||
|
||||
```sh
|
||||
quickshell ipc --path ./quickshell call launcher toggle
|
||||
quickshell ipc --path ./quickshell call launcher open
|
||||
quickshell ipc --path ./quickshell call launcher close
|
||||
quickshell ipc --path ./quickshell call launcher status
|
||||
```
|
||||
|
||||
The launcher is centered within the active monitor. Search names, desktop IDs,
|
||||
generic names, keywords or descriptions. Exact/prefix matches rank above substring
|
||||
and fuzzy matches; accents and case are normalized. Multiple words must all match.
|
||||
Only launchable entries appear; NoDisplay entries are excluded. Hover highlights do not override keyboard selection. Results are a
|
||||
scrollable icon list, backed by the same application service as the dock.
|
||||
|
||||
Up/Down (or Tab/Shift+Tab) select; Enter launches; Escape closes. Left/Right remain
|
||||
text cursor keys, with Ctrl+Left/Right also navigating results. Clicking a result
|
||||
launches it; clicking outside dismisses the surface. Search resets when reopened.
|
||||
Terminal applications use the existing configured terminal argument array; a missing
|
||||
terminal configuration leaves the launcher open with a visible explanation.
|
||||
Search text is never executed as a shell command.
|
||||
|
||||
Opening expands a centered search pill horizontally, then grows the results area.
|
||||
Closing reverses the dimensions. Theme motion duration and reduced motion apply.
|
||||
Settings → Launcher controls width, result limit and descriptions. Settings is also
|
||||
reachable from `>launcher`. Recent files remain optional future work: this phase
|
||||
neither indexes nor displays a user's recent documents.
|
||||
|
||||
## Commands and Settings
|
||||
|
||||
Type `>` to list commands; fuzzy prefixes such as `>wall` are supported.
|
||||
|
||||
| Command | Settings destination | Current status |
|
||||
| --- | --- | --- |
|
||||
| `>appearance` | Appearance | Existing accent/glass/motion controls |
|
||||
| `>wallpaper` | Wallpaper | Labelled future page; Phase 5 picker |
|
||||
| `>bar` | Bar | Tray controls; full bar editor in Phase 5 |
|
||||
| `>tray` | Bar / Tray | Existing tray controls |
|
||||
| `>dock` | Dock | Complete Phase 3 controls |
|
||||
| `>media` | Media | Labelled future page; media work in Phases 5–6 |
|
||||
| `>controlcenter` | Control Center | Labelled future page; Phase 7 |
|
||||
| `>launcher` | Launcher | Search preferences |
|
||||
| `>display` | Displays | Labelled future page |
|
||||
| `>audio` | Audio | Labelled future page |
|
||||
| `>network` | Network | Labelled future page |
|
||||
| `>bluetooth` | Bluetooth | Labelled future page |
|
||||
| `>notifications` | Notifications | Labelled future page |
|
||||
| `>power` | Power | Labelled future page; no power action executes |
|
||||
| `>about` | About | Project information |
|
||||
|
||||
Every destination is available through the Settings page selector. Later-phase
|
||||
pages explicitly say their controls are not implemented. Commands do not fabricate
|
||||
system state or launch substitute external control applications.
|
||||
|
||||
`SettingsRegistry` supplies the shared route metadata. `CommandRegistry` can accept
|
||||
trusted QML extensions with a unique ID, title, description and `run` function via
|
||||
`registerCommand()`, and remove them with `unregisterCommand()`. Preferences and
|
||||
search input cannot inject QML or executable command text.
|
||||
|
||||
## Keybinds — documented, not installed
|
||||
|
||||
Review your existing Super+D and Super+Space bindings first. When ready to integrate,
|
||||
replace `/absolute/path/to/glassMxrph` below with the clone's real absolute path and
|
||||
add these through your existing Hyprland/ZaneyOS workflow:
|
||||
|
||||
```ini
|
||||
bind = SUPER, D, exec, quickshell ipc --path /absolute/path/to/glassMxrph/quickshell call launcher toggle
|
||||
bind = SUPER, SPACE, exec, quickshell ipc --path /absolute/path/to/glassMxrph/quickshell call launcher toggle
|
||||
```
|
||||
|
||||
Quote a path containing spaces. These commands only contact the running shell;
|
||||
they do not start another Quickshell instance. The source runner remains the launch
|
||||
entry point until Nix/autostart integration is handled later. No existing bind was
|
||||
removed or replaced in this phase. Super+X belongs to the later Control Center phase.
|
||||
|
||||
## Files
|
||||
|
||||
New:
|
||||
|
||||
- `quickshell/launcher/Launcher.qml`, `LauncherState.qml`, `AppSearch.qml`,
|
||||
`CommandSearch.qml`, `CommandRegistry.qml`, `SearchLogic.js`, `qmldir`
|
||||
- `quickshell/core/SettingsRegistry.qml`
|
||||
- `quickshell/settings/pages/Launcher.qml`
|
||||
- `quickshell/testing/LauncherDriver.qml` (opt-in QtTest input)
|
||||
- `tests/launcher.test.cjs`, `tests/launcher_runtime.py`
|
||||
- `docs/phase-4.md`
|
||||
|
||||
Updated:
|
||||
|
||||
- `quickshell/shell.qml`: composition, optional driver and routing diagnostics.
|
||||
- `quickshell/core/ShellState.qml`, `ScreenService.qml`, `qmldir`: active-output
|
||||
state, launcher/settings exclusivity and registered settings routes.
|
||||
- `quickshell/services/TrayService.qml`, `quickshell/dock/DockState.qml`: popup coordination.
|
||||
- `quickshell/config/defaults.json`, `quickshell/services/ConfigLogic.js`: additive,
|
||||
validated launcher defaults under schema 3; existing pins/options remain intact.
|
||||
- `quickshell/settings/Settings.qml`: page selector, launcher controls and future destinations.
|
||||
- `scripts/glassmxrph`, `scripts/validate`: IPC toggle and search tests.
|
||||
- `tests/config.test.cjs`, `tests/dock_runtime.py`, `tests/tray_runtime.py`: preservation
|
||||
and popup-coordination regressions.
|
||||
- `README.md`, `dependencies.json`, `docs/architecture.md`, `docs/validation.md`.
|
||||
|
||||
## API and monitor handling
|
||||
|
||||
The installed DesktopEntry metadata provides name, genericName, comment, keywords,
|
||||
noDisplay and native execution; the existing shared launch service owns execution.
|
||||
No second desktop-entry parser, application daemon or background subprocess was added.
|
||||
|
||||
`ScreenService` eagerly tracks active output state using Quickshell's native
|
||||
[Hyprland rawEvent API](https://quickshell.org/docs/v0.3.1/types/Quickshell.Hyprland/Hyprland/)
|
||||
and the documented [focusedmon/focusedmonv2 events](https://wiki.hypr.land/IPC/).
|
||||
This avoids stale cached focus during IPC monitor changes without a polling timer.
|
||||
The output is captured when opening, so typing does not move the launcher between
|
||||
monitors. Settings uses the same active-output resolver. No virtual-desktop centering.
|
||||
|
||||
## Validation and limits
|
||||
|
||||
Passed QML lint, search ranking and configuration tests, plus live launcher,
|
||||
foundation, dock and private-DBus tray suites. Runtime logs contained no QML warnings
|
||||
or DBus errors. The launcher was visually inspected from a rendered capture.
|
||||
|
||||
The launcher test verifies centering on both available outputs, real keyboard/text
|
||||
and pointer input, stationary-pointer keyboard selection during animation, fuzzy/keyword matching, hidden-entry exclusion, actual execution
|
||||
of temporary desktop entries, visible terminal errors, all 15 command destinations,
|
||||
extension registration/removal, Escape/outside dismissal, reduced motion and rapid
|
||||
toggles. Dock/tray suites verify the launcher dismisses their menus. Existing
|
||||
configuration persistence, palette reload and duplicate prevention still pass.
|
||||
|
||||
```sh
|
||||
./scripts/validate
|
||||
python3 tests/launcher_runtime.py
|
||||
python3 tests/dock_runtime.py
|
||||
dbus-run-session -- python3 tests/tray_runtime.py
|
||||
python3 tests/runtime.py
|
||||
```
|
||||
|
||||
Use matching installed QML imports and the existing patched runtime for the tray
|
||||
suite. QtTest is a development dependency only; the launcher driver loads solely
|
||||
with `GLASSMXRPH_LAUNCHER_TESTING=1`. Tests refuse to run against a source path already
|
||||
in use. Use a separate source copy if retaining a running preview. Run graphical
|
||||
suites sequentially. The launcher test temporarily focuses each output and restores
|
||||
the original output; it launches only temporary helper entries, not real apps.
|
||||
|
||||
Remaining manual acceptance: physical keybind routing once integrated, compositor
|
||||
pointer behaviour, fractional scaling, hotplug, input methods, app-specific desktop
|
||||
entry field-code limitations inherited from Quickshell, and other distributions.
|
||||
Nix builds/integration remain deferred. No recent-files provider is implemented.
|
||||
@@ -0,0 +1,94 @@
|
||||
# Phase 5 — Settings and theming
|
||||
|
||||
Implemented native settings pages for Appearance, Wallpaper, Bar, Dock and Media preferences. Shared themed inputs, an HSV/hex colour picker, neutral panel controls, reduced motion and animated accent updates replace the earlier minimal settings surface. Bar modules can be enabled, moved between lanes and reordered with buttons; clock format and workspace count are configurable. Dock retains its visual pinned-app editor.
|
||||
|
||||
## Try it
|
||||
|
||||
Run `./scripts/glassmxrph run`, then open the cog or `./scripts/glassmxrph settings`.
|
||||
|
||||
1. Appearance → Custom: pick a colour; adjust opacity, radius or animation settings.
|
||||
2. Appearance → Matugen: configure a Matugen 4.2.x executable if it is not on PATH, then check it. Choose a supported scheme and contrast.
|
||||
3. Wallpaper: choose an output, backend and directories, refresh the gallery, select an image and Apply. Choose which output supplies the global palette.
|
||||
4. Bar: move, reorder or disable modules. Dock: edit pins and presentation.
|
||||
5. Media: save preferences for the Phase 6 player/widget implementation.
|
||||
|
||||
Settings persist through ConfigService; additive defaults preserve unknown preferences and existing layout/pins. Generated colours are written atomically to `$XDG_STATE_HOME/glassMxrph/palette.json`. Errors retain the last good palette; stale asynchronous results are discarded. All UI consumes the shared Theme, while glass surfaces remain neutral.
|
||||
|
||||
## Providers and limits
|
||||
|
||||
Python 3 is a runtime dependency for one-shot JSON helpers. Matugen 4.2.x is the verified CLI/template contract; unsupported versions produce an explicit error. Generation uses a temporary dedicated configuration and generated JSON file, without reading user Matugen hooks. No persistent helper daemon is installed.
|
||||
|
||||
Wallpaper adapters support an existing Serpantinum instance, an existing awww daemon, or a custom argument array using `{path}` and `{monitor}` placeholders. Auto detection prefers Serpantinum. Custom commands are executed as argument arrays, never shell strings. No wallpaper daemon is started. Serpantinum receives a cached, safely named copy because its upstream implementation interpolates paths; Serpantinum may still execute its own wallpaper/theme hooks. Those external hooks are outside this shell's control.
|
||||
|
||||
Gallery scanning is nonrecursive, capped at 1,000 images, and supports PNG, JPEG, WebP and BMP. Images use asynchronous, bounded-size thumbnails. External wallpaper changes require Refresh or an integration hook:
|
||||
|
||||
```sh
|
||||
quickshell ipc --path ./quickshell call wallpaper changed OUTPUT /absolute/image.jpg
|
||||
quickshell ipc --path ./quickshell call theme regenerate
|
||||
quickshell ipc --path ./quickshell call theme status
|
||||
```
|
||||
|
||||
There is no continuous filesystem/provider polling. One selected output supplies the global palette. Media preferences are implemented; MPRIS playback, player discovery and Cava remain Phase 6. Bar reordering uses buttons, not drag-and-drop. Blur/refraction remain compositor-owned; this phase does not modify HyprGlass, Hyprland or Nix configuration. Packaging integration, including Python's runtime closure, is deferred.
|
||||
|
||||
## Validation
|
||||
|
||||
QML validation and configuration, dock, launcher and provider unit tests pass. Real Wayland tests cover foundation persistence/live palette reload/corrupt-file protection, launcher, dock and StatusNotifier/DBusMenu regressions. Settings tests exercise the colour picker, gallery selection, recording-backend apply, real Matugen generation, automatic/manual regeneration, failure recovery, stale in-flight results, bar editing and media preference persistence. Runtime logs are checked for warnings/errors.
|
||||
|
||||
The settings test uses disposable images and isolated XDG paths. It does not change the user's wallpaper. Actual Serpantinum apply and awww rendering were not exercised: Serpantinum discovery was checked read-only, and awww's CLI was inspected while no daemon was running. Matugen 4.2.0 was tested directly. One foundation startup timeout cleared on rerun; the passing run had clean logs.
|
||||
|
||||
```sh
|
||||
./scripts/validate
|
||||
# With tested Quickshell and Matugen on PATH; use an isolated clone if already running:
|
||||
python3 tests/settings_runtime.py
|
||||
```
|
||||
|
||||
QtTest is needed only for input-driving tests. See the Phase 2–4 documents for their fixture dependencies. No Nix build or system rebuild was performed.
|
||||
|
||||
## Changed files
|
||||
|
||||
- `README.md`
|
||||
- `dependencies.json`
|
||||
- `docs/architecture.md`
|
||||
- `docs/compatibility.md`
|
||||
- `docs/phase-5.md`
|
||||
- `docs/validation.md`
|
||||
- `quickshell/bar/modules/ClockModule.qml`
|
||||
- `quickshell/bar/modules/WorkspacesModule.qml`
|
||||
- `quickshell/components/GlassButton.qml`
|
||||
- `quickshell/components/GlassColorPicker.qml`
|
||||
- `quickshell/components/GlassComboBox.qml`
|
||||
- `quickshell/components/GlassPanel.qml`
|
||||
- `quickshell/components/GlassPopup.qml`
|
||||
- `quickshell/components/GlassTextArea.qml`
|
||||
- `quickshell/components/GlassTextField.qml`
|
||||
- `quickshell/config/defaults.json`
|
||||
- `quickshell/core/SettingsRegistry.qml`
|
||||
- `quickshell/core/ShellState.qml`
|
||||
- `quickshell/dock/DockItem.qml`
|
||||
- `quickshell/helpers/desktop.py`
|
||||
- `quickshell/services/ConfigLogic.js`
|
||||
- `quickshell/services/ConfigService.qml`
|
||||
- `quickshell/services/ProviderJob.qml`
|
||||
- `quickshell/services/SettingsLogic.js`
|
||||
- `quickshell/services/WallpaperService.qml`
|
||||
- `quickshell/services/qmldir`
|
||||
- `quickshell/settings/Settings.qml`
|
||||
- `quickshell/settings/controls/PreferenceChoice.qml`
|
||||
- `quickshell/settings/controls/PreferenceSlider.qml`
|
||||
- `quickshell/settings/controls/PreferenceToggle.qml`
|
||||
- `quickshell/settings/controls/SettingsPage.qml`
|
||||
- `quickshell/settings/pages/Appearance.qml`
|
||||
- `quickshell/settings/pages/Bar.qml`
|
||||
- `quickshell/settings/pages/Dock.qml`
|
||||
- `quickshell/settings/pages/Launcher.qml`
|
||||
- `quickshell/settings/pages/Media.qml`
|
||||
- `quickshell/settings/pages/Wallpaper.qml`
|
||||
- `quickshell/shell.qml`
|
||||
- `quickshell/testing/SettingsDriver.qml`
|
||||
- `quickshell/theme/MatugenService.qml`
|
||||
- `quickshell/theme/Theme.qml`
|
||||
- `quickshell/theme/ThemeManager.qml`
|
||||
- `scripts/validate`
|
||||
- `tests/config.test.cjs`
|
||||
- `tests/providers_test.py`
|
||||
- `tests/settings_runtime.py`
|
||||
@@ -0,0 +1,85 @@
|
||||
# Phase 6 — Media
|
||||
|
||||
## Implemented
|
||||
|
||||
- One shared native MPRIS service with dynamic discovery, metadata and capability-aware controls.
|
||||
- Large floating music widget: artwork, title, artist, album, seeking, elapsed/remaining time and player selector.
|
||||
- Optional `nowPlaying` bar module, added through Settings → Bar without changing saved module arrays.
|
||||
- Shared compact media card in Settings and a tested component for Phase 7 Control Center.
|
||||
- Media preferences now drive real views: visibility, artwork/progress/album, preferred player, monitor, corner, scale and optional Cava.
|
||||
- Restrained artwork fade and track-content motion honoring reduced motion.
|
||||
- One optional Cava process shared across views, stopped on pause or when no visible view needs it.
|
||||
|
||||
The global accent remains independent of song artwork. Glass uses the existing neutral Theme. No new compositor, media daemon, audio daemon, system keybind or Nix configuration is introduced.
|
||||
|
||||
## Try it
|
||||
|
||||
```sh
|
||||
./scripts/glassmxrph run
|
||||
quickshell ipc --path ./quickshell call shell openSettings media
|
||||
quickshell ipc --path ./quickshell call media status
|
||||
```
|
||||
|
||||
Play a track in an MPRIS-capable app. Click previous/play/next, scrub a seekable track and switch players when multiple are available. Change monitor, corner and scale in Media settings. Add `nowPlaying` through the Bar editor. Enable Cava to visualize existing system audio.
|
||||
|
||||
Selection order is explicit session selection, saved preferred DBus name or desktop-entry ID, a playing player, then the first available player. A disconnected player falls back immediately. Automatic ordering among several playing players follows the native model. Saved per-instance DBus names may change between app launches; a desktop-entry preference is more stable.
|
||||
|
||||
```sh
|
||||
quickshell ipc --path ./quickshell call media toggle
|
||||
quickshell ipc --path ./quickshell call media next
|
||||
quickshell ipc --path ./quickshell call media previous
|
||||
quickshell ipc --path ./quickshell call media seek 30
|
||||
quickshell ipc --path ./quickshell call media select org.mpris.MediaPlayer2.PLAYER
|
||||
quickshell ipc --path ./quickshell call media select ''
|
||||
quickshell ipc --path ./quickshell call cava status
|
||||
```
|
||||
|
||||
Commands act on the selected player. Unsupported actions return false. An empty selection restores preference/automatic selection. Durationless streams omit progress; absent artwork shows a music placeholder. Artwork is loaded asynchronously from the player-provided URL, which can require network access. Metadata quality and browser support depend on the application.
|
||||
|
||||
## Cava and layout limits
|
||||
|
||||
Cava is optional, off by default and visualizes system audio rather than isolating the selected player. Its compiled default input backend must work with the existing audio server. The supplied config uses [upstream raw ASCII output options](https://github.com/karlstav/cava/blob/master/example_files/config); installed version 1.0.0 was exercised. Failures produce an inline message; toggle Cava off/on after fixing the underlying problem. No automatic installation or repeated crash restart is attempted.
|
||||
|
||||
The music widget is a bottom-layer desktop surface: normal application windows can cover it. It uses the selected output's logical coordinates, falls back when that output is absent, and supports four corners. Margins currently leave room for the bar and bottom dock but do not perform general collision avoidance. Scaling is constrained by output size. Blur/refraction remains compositor-owned for Phase 9.
|
||||
|
||||
Control Center itself is Phase 7: this phase supplies and validates its shared media component, not a new Control Center window. No metrics widget is added yet. Nix packaging/build integration remains deferred as requested.
|
||||
|
||||
## Validation
|
||||
|
||||
QML and shared logic/provider tests pass. Private-DBus MPRIS fixtures cover two-player discovery, automatic/manual/preferred selection, removal/fallback, live metadata and artwork, capability guards, actual widget clicks, playback calls and seconds-to-microseconds seeking. Tests exercise unknown-duration streams, the bar and compact card, Cava frames, stop/resume/visibility behavior and failure/recovery, both connected outputs and missing-output fallback. Runtime logs are checked for warnings/errors. No real player's playback is changed.
|
||||
|
||||
```sh
|
||||
./scripts/validate
|
||||
# Private DBus; needs Python dbus-python/PyGObject, QtTest, Cava and a real Wayland session:
|
||||
dbus-run-session -- python3 tests/media_runtime.py
|
||||
```
|
||||
|
||||
Use an isolated project copy if an instance already uses this source path. Existing foundation/settings/launcher/dock/tray tests are also run before promotion. Screenshots and logs are ignored `.cache/` artifacts; they are not shipped or published.
|
||||
|
||||
## Changed files
|
||||
|
||||
- `README.md`
|
||||
- `dependencies.json`
|
||||
- `docs/architecture.md`
|
||||
- `docs/compatibility.md`
|
||||
- `docs/phase-6.md`
|
||||
- `docs/validation.md`
|
||||
- `quickshell/bar/modules/NowPlayingModule.qml`
|
||||
- `quickshell/config/cava.conf`
|
||||
- `quickshell/controlcenter/modules/Media.qml`
|
||||
- `quickshell/core/ModuleRegistry.qml`
|
||||
- `quickshell/core/ShellState.qml`
|
||||
- `quickshell/helpers/cava.py`
|
||||
- `quickshell/media/CavaView.qml`
|
||||
- `quickshell/media/MediaCard.qml`
|
||||
- `quickshell/services/CavaService.qml`
|
||||
- `quickshell/services/ConfigLogic.js`
|
||||
- `quickshell/services/MediaService.qml`
|
||||
- `quickshell/services/qmldir`
|
||||
- `quickshell/settings/pages/Media.qml`
|
||||
- `quickshell/shell.qml`
|
||||
- `quickshell/testing/MediaDriver.qml`
|
||||
- `quickshell/widgets/MusicWidget.qml`
|
||||
- `tests/config.test.cjs`
|
||||
- `tests/media_runtime.py`
|
||||
- `tests/mpris_fixture.py`
|
||||
+127
@@ -0,0 +1,127 @@
|
||||
# Phase 7 — Control Center
|
||||
|
||||
## Implemented
|
||||
|
||||
The right-hand system pill and running-shell IPC open Control Center at the active monitor's upper-right. The glass surface expands in width and height, reverses on closing and honors reduced motion. Escape/outside click dismiss it. Launcher, Settings, dock menus and tray menus coordinate visibility; tray activation never opens Control Center.
|
||||
|
||||
Modules are registered separately and can be enabled, disabled and reordered in Settings → Control Center. The current modules are connectivity, audio/microphone, brightness, Night Light, Do Not Disturb, power profiles, shared MPRIS media and power actions. Detailed Audio, Network, Bluetooth, Displays, Notifications and Power settings are now reachable through the sidebar and command palette.
|
||||
|
||||
- PipeWire: live default output/input, volume and mute; device selection under Audio.
|
||||
- NetworkManager: live Wi-Fi radio state and connections; saved/open/PSK network connection UI. PSKs pass directly to the native API, are cleared from the field and are never stored in shell preferences. NetworkManager may store credentials in its own profiles. Enterprise/hidden networks and VPN management use the existing network editor.
|
||||
- BlueZ: adapter selection, radio state and paired-device connect/disconnect. Pairing and PIN confirmation use the existing Bluetooth manager rather than registering a competing pairing agent.
|
||||
- Brightness: actual backlight devices via brightnessctl, with configurable status/set command adapters for other providers.
|
||||
- Night Light: the running wl-gammarelay DBus Temperature property, or a configured provider. No gamma daemon is started. Existing schedules may subsequently change temperature.
|
||||
- Notifications: live SwayNC DND state through non-activating DBus calls; no replacement notification daemon is registered.
|
||||
- Power: supported power profiles, detected lock command, Hyprland logout and logind suspend/reboot/shutdown. Logout, reboot and shutdown first present explicit confirmation. Escape cancels a pending confirmation before closing the panel.
|
||||
|
||||
Unknown or unavailable capabilities produce disabled controls and explanatory text. Requests do not optimistically fabricate provider state; command adapters refresh state after success. Native services report through their live models.
|
||||
|
||||
## Run and test manually
|
||||
|
||||
```sh
|
||||
./scripts/glassmxrph run
|
||||
# In another terminal:
|
||||
./scripts/glassmxrph controlcenter
|
||||
quickshell ipc --path ./quickshell call controlcenter status
|
||||
quickshell ipc --path ./quickshell call shell openSettings controlcenter
|
||||
```
|
||||
|
||||
Try opening/closing repeatedly, Escape/outside dismissal, both monitors, module order and reduced motion. Audio device selectors live under Settings → Audio. Check unavailable brightness/Night Light providers under Displays. Power confirmation can be tested safely by choosing Reboot and then Cancel.
|
||||
|
||||
The optional Hyprland binding is:
|
||||
|
||||
```ini
|
||||
bind = SUPER, X, exec, /absolute/path/to/glassMxrph/scripts/glassmxrph controlcenter
|
||||
```
|
||||
|
||||
This is documentation only. The existing Super+X Serpantinum binding and all Nix/Hyprland configuration remain unchanged. Replace conflicting bindings only during the later integration step. The command toggles an existing instance; it never launches duplicate Quickshell processes.
|
||||
|
||||
## Provider configuration
|
||||
|
||||
Preferences are under `system` in the existing XDG configuration:
|
||||
|
||||
```json
|
||||
{
|
||||
"brightness": {"device":"auto", "statusCommand":[], "setCommand":[]},
|
||||
"nightLight": {"temperature":4000, "statusCommand":[], "setCommand":[]},
|
||||
"power": {"lockCommand":[]}
|
||||
}
|
||||
```
|
||||
|
||||
These are also editable in Displays and Power settings. Commands are JSON argument arrays, never shell-evaluated strings. Both status and set commands are needed for a custom display provider. Brightness status returns `{"available":true,"value":50}` (percent); Night Light status returns `{"available":true,"enabled":false}`. Set arguments support `{value}` (brightness percent or Kelvin) and `{enabled}` (Night Light boolean). Do not return optimistic state before the provider has applied a change.
|
||||
|
||||
An empty lock command detects installed Serpantinum (`serpantinum lock`) first, then hyprlock. A configured argument array overrides that choice. Lock dispatch indicates the command was launched; locking/authentication remain the existing locker's responsibility. Power actions use existing logind/polkit policy and do not bypass inhibitors or authorization.
|
||||
|
||||
The CLI adapters use structured busctl JSON for profile/capability data and `/sys/class/backlight` for device enumeration. Native NetworkManager/BlueZ/PipeWire models are event-driven. One shared asynchronous job refreshes only relevant visible command-backed controls every five seconds; polling stops when those views close. Wi-Fi scanning is enabled only while the Network page is open. No duplicate daemons are installed or started.
|
||||
|
||||
`controlCenter.version: 1` marks a one-time migration of the unused Phase 1–6 empty module list. Nonempty layouts and unknown metadata survive; intentional empty layouts after migration stay empty. Malformed configuration remains blocked for correction. The runner derives `TZDIR` from an existing `/etc/localtime` zoneinfo symlink when unset, avoiding Qt timezone lookup warnings without hardcoded distribution paths.
|
||||
|
||||
## Validation and limits
|
||||
|
||||
Quickshell 0.3.1 native APIs were checked against installed qmltypes/source. Actual provider discovery was read-only: PipeWire/WirePlumber, NetworkManager, BlueZ, SwayNC, power-profiles-daemon and logind are present. This desktop has no backlight device and no running gamma relay; those controls remain unavailable until appropriate existing providers are configured. No DDC utility or gamma daemon was installed. Serpantinum's installed Night Light script supplied the verified wl-gammarelay DBus interface; its script is not invoked because it can start/manage daemons.
|
||||
|
||||
Control Center runtime tests inspect native state, then substitute test-only recording models/adapters before any write. They exercise real Qt input for volume/microphone, Wi-Fi/Bluetooth, brightness, DND, Night Light, power confirmation/cancel, visual module reorder/toggle, both monitors, outside/Escape, reduced motion, reopen behavior and Settings routes. Provider unit tests check argv boundaries, numeric/type validation, unavailable providers, JSON errors and rejection of destructive actions without confirmation. A private-bus regression caught SwayNC client auto-activation; the final adapter uses `busctl --auto-start=no` instead, with a test that no notification daemon appears. Physical volume/radio/display changes and actual power actions were deliberately not executed; real hardware acknowledgements, credentials, pairing and polkit remain integration checks.
|
||||
|
||||
```sh
|
||||
./scripts/validate
|
||||
# Real Hyprland session; QtTest required. Use an isolated project copy if already running:
|
||||
python3 tests/controlcenter_runtime.py
|
||||
```
|
||||
|
||||
Runtime logs are checked for QML warnings, errors and DBus failures. Earlier-phase regression scripts are also run, including media fixtures and tray/Control Center exclusivity on a private session bus. Screenshots/logs stay under ignored `.cache/`; nothing is published. Nix files are hash-checked unchanged and no package/system rebuild is performed.
|
||||
|
||||
Advanced compositor blur/refraction remains Phase 9. Display mode editing, a native pairing agent, additional notification backends, dark-mode synchronization and native VPN controls are not included in this phase. The existing external tools remain available for advanced network and Bluetooth management.
|
||||
|
||||
## Changed files
|
||||
|
||||
- `README.md`
|
||||
- `dependencies.json`
|
||||
- `docs/architecture.md`
|
||||
- `docs/compatibility.md`
|
||||
- `docs/phase-7.md`
|
||||
- `docs/validation.md`
|
||||
- `quickshell/bar/modules/SystemModule.qml`
|
||||
- `quickshell/config/defaults.json`
|
||||
- `quickshell/controlcenter/ControlCard.qml`
|
||||
- `quickshell/controlcenter/ControlCenter.qml`
|
||||
- `quickshell/controlcenter/ControlRegistry.qml`
|
||||
- `quickshell/controlcenter/SystemTile.qml`
|
||||
- `quickshell/controlcenter/modules/Audio.qml`
|
||||
- `quickshell/controlcenter/modules/Brightness.qml`
|
||||
- `quickshell/controlcenter/modules/Connectivity.qml`
|
||||
- `quickshell/controlcenter/modules/Dnd.qml`
|
||||
- `quickshell/controlcenter/modules/NightLight.qml`
|
||||
- `quickshell/controlcenter/modules/Power.qml`
|
||||
- `quickshell/controlcenter/modules/Profiles.qml`
|
||||
- `quickshell/controlcenter/qmldir`
|
||||
- `quickshell/core/SettingsRegistry.qml`
|
||||
- `quickshell/core/ShellState.qml`
|
||||
- `quickshell/dock/DockState.qml`
|
||||
- `quickshell/helpers/system.py`
|
||||
- `quickshell/services/AudioService.qml`
|
||||
- `quickshell/services/BluetoothService.qml`
|
||||
- `quickshell/services/ConfigLogic.js`
|
||||
- `quickshell/services/NetworkService.qml`
|
||||
- `quickshell/services/PowerService.qml`
|
||||
- `quickshell/services/ProviderJob.qml`
|
||||
- `quickshell/services/SystemService.qml`
|
||||
- `quickshell/services/TrayService.qml`
|
||||
- `quickshell/services/qmldir`
|
||||
- `quickshell/settings/Settings.qml`
|
||||
- `quickshell/settings/controls/CommandPreference.qml`
|
||||
- `quickshell/settings/pages/Audio.qml`
|
||||
- `quickshell/settings/pages/Bluetooth.qml`
|
||||
- `quickshell/settings/pages/ControlCenter.qml`
|
||||
- `quickshell/settings/pages/Displays.qml`
|
||||
- `quickshell/settings/pages/Network.qml`
|
||||
- `quickshell/settings/pages/Notifications.qml`
|
||||
- `quickshell/settings/pages/Power.qml`
|
||||
- `quickshell/shell.qml`
|
||||
- `quickshell/testing/ControlDriver.qml`
|
||||
- `quickshell/testing/recording_system.py`
|
||||
- `scripts/glassmxrph`
|
||||
- `scripts/validate`
|
||||
- `tests/config.test.cjs`
|
||||
- `tests/controlcenter_runtime.py`
|
||||
- `tests/system_providers_test.py`
|
||||
- `tests/tray_runtime.py`
|
||||
@@ -0,0 +1,81 @@
|
||||
# Phase 8 — System Metrics
|
||||
|
||||
One `MetricsService` feeds the desktop widget, seven optional bar pills, an optional Control Center card and Settings → System Metrics (`>metrics`). No Nix configuration, packages, keybinds or system services were changed.
|
||||
|
||||
## What is available
|
||||
|
||||
- CPU utilization, hottest supported CPU temperature, average reported frequency, and a bounded 60-sample CPU graph.
|
||||
- GPU selection, utilization, temperature, VRAM used/total, frequency and power where the driver exposes them.
|
||||
- RAM used/total/percentage, calculated from MemTotal minus MemAvailable.
|
||||
- Configurable local storage paths with used/free/total and usage bars.
|
||||
- Upload/download rates, interface selection and automatic physical-interface totals.
|
||||
- Neutral glass desktop widget with configurable monitor, corner and scale. The default is the primary monitor's upper-right; only Music and System Metrics are desktop widgets.
|
||||
|
||||
Settings → Bar offers `cpu`, `cpuTemperature`, `gpu`, `gpuTemperature`, `ram`, `storage` and `networkThroughput`. Click a pill to open metrics settings. The storage pill displays the first configured path. Settings → Control Center can add `metrics`. Existing bar/Control Center layouts remain intact; modules are not inserted into saved arrays.
|
||||
|
||||
## Collection and portability
|
||||
|
||||
A single Python standard-library streaming process owns the counters, elapsed-time calculations and sensor reads. It reads Linux `/proc` and `/sys` without sudo, writes no hardware state and installs no daemon. Views register with the singleton; the process stops when no metrics view exists. Multiple monitors and multiple bar pills do not add collectors. The desktop counts as a consumer while enabled, including when covered by an application.
|
||||
|
||||
The default interval is two seconds, configurable from 1–30 seconds. NVIDIA is queried with the installed `nvidia-smi` at most once per five seconds, with a two-second command timeout. AMD uses DRM/hwmon sysfs. Storage updates at most every 15 seconds. These are minimum cadences: a slower configured interval also slows GPU/storage sampling. Sampling uses monotonic time; new/reset network counters cannot produce negative rates, and the first CPU/network sample is unavailable until a delta exists.
|
||||
|
||||
GPU support depends on the driver: NVIDIA and AMD paths were checked on this machine; AMD units and missing values also have fixture coverage. Intel/other DRM devices are discovered but utilization is unavailable unless the driver exposes the supported sysfs counter. NVIDIA requires `nvidia-smi` on PATH; there is no fallback requiring privileged tracing. No CPU package-power backend is enabled. Missing values display `—`, never invented zero readings. GPU Auto picks the first discovered device (NVIDIA first); an explicitly selected missing GPU stays unavailable.
|
||||
|
||||
Auto network sums interfaces with a physical sysfs device, excluding loopback and virtual bridges/VPN interfaces to reduce double counting. Select a named virtual interface explicitly to measure it. No traffic is generated. Storage free includes filesystem-reserved blocks; the snapshot separately supplies user-available bytes. Use **local paths only**: a stuck remote mount can block statvfs. Old values are marked stale after the greater of 10 seconds or three sample intervals; stopped/crashed collectors restart while a consumer remains. Permissions, missing hardware and mount failures remain unavailable.
|
||||
|
||||
The collector follows the documented [Linux proc interfaces](https://docs.kernel.org/filesystems/proc.html) and [AMDGPU monitoring interfaces](https://docs.kernel.org/gpu/amdgpu/thermal.html). Quickshell Process/SplitParser and layer-window APIs reuse the installed 0.3.1 patterns already used by Cava and the Music widget.
|
||||
|
||||
## Try it
|
||||
|
||||
```sh
|
||||
./scripts/glassmxrph run
|
||||
# In another terminal:
|
||||
quickshell ipc --path ./quickshell call shell openSettings metrics
|
||||
quickshell ipc --path ./quickshell call metrics status
|
||||
```
|
||||
|
||||
Try a different monitor/corner, disable the desktop widget, and add metrics pills from Settings → Bar. Add System Metrics in Control Center. With every metrics view disabled/closed, IPC reports `running: false`. Preferences merge with existing configurations and preserve unknown settings.
|
||||
|
||||
## Validation
|
||||
|
||||
```sh
|
||||
./scripts/validate
|
||||
# Existing Hyprland session, no running instance of this project:
|
||||
python3 tests/metrics_runtime.py
|
||||
```
|
||||
|
||||
Validation covers CPU guest accounting and counter resets, cache-aware RAM, network elapsed time/reset/new-interface handling, NVIDIA unsupported fields, AMD unit conversion, unavailable sources and config preservation/rejection. Live Wayland tests cover both connected outputs, monitor/corner changes, shared bar/settings/Control Center consumers, idle process shutdown/restart, live source changes, unavailable paths/interfaces, persistence and clean QML/DBus logs. Screenshots and logs stay under ignored `.cache/`; no user screenshots are published. Real telemetry is read-only. Foundation and Control Center runtime regressions also passed; the full metrics card was visually inspected using an isolated QML capture.
|
||||
|
||||
Nix packaging remains deferred as requested. The source runner still requires the existing Python 3 dependency; NVIDIA telemetry additionally benefits from the host's own driver tool. Phase 9 remains compositor effects, animation/performance polish and final error handling.
|
||||
|
||||
## Changed files
|
||||
- `README.md`
|
||||
- `dependencies.json`
|
||||
- `docs/architecture.md`
|
||||
- `docs/compatibility.md`
|
||||
- `docs/phase-8.md`
|
||||
- `docs/validation.md`
|
||||
- `quickshell/bar/ModuleLoader.qml`
|
||||
- `quickshell/bar/modules/MetricsModule.qml`
|
||||
- `quickshell/config/defaults.json`
|
||||
- `quickshell/controlcenter/ControlRegistry.qml`
|
||||
- `quickshell/controlcenter/modules/Metrics.qml`
|
||||
- `quickshell/core/ModuleRegistry.qml`
|
||||
- `quickshell/core/SettingsRegistry.qml`
|
||||
- `quickshell/core/ShellState.qml`
|
||||
- `quickshell/helpers/metrics.py`
|
||||
- `quickshell/metrics/MetricGauge.qml`
|
||||
- `quickshell/metrics/MetricsCard.qml`
|
||||
- `quickshell/services/ConfigLogic.js`
|
||||
- `quickshell/services/MetricsService.qml`
|
||||
- `quickshell/services/qmldir`
|
||||
- `quickshell/settings/Settings.qml`
|
||||
- `quickshell/settings/pages/Bar.qml`
|
||||
- `quickshell/settings/pages/Metrics.qml`
|
||||
- `quickshell/shell.qml`
|
||||
- `quickshell/testing/MetricsDriver.qml`
|
||||
- `quickshell/widgets/SystemMetrics.qml`
|
||||
- `scripts/validate`
|
||||
- `tests/config.test.cjs`
|
||||
- `tests/metrics_runtime.py`
|
||||
- `tests/metrics_test.py`
|
||||
@@ -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`
|
||||
@@ -0,0 +1,154 @@
|
||||
# Validation
|
||||
|
||||
Run `scripts/validate` using matching Qt and Quickshell imports. `nix develop`
|
||||
provides these. For native packages, set `QML_IMPORT_PATH` to the distribution's
|
||||
Quickshell and Qt QML module locations.
|
||||
|
||||
Quickshell 0.3.1 marks PanelWindow uncreatable in static metadata because its
|
||||
implementation is selected at runtime. The validator suppresses this one diagnostic
|
||||
locally on PanelWindow declarations; all other warnings fail validation. Real Wayland execution
|
||||
is mandatory to validate those windows.
|
||||
|
||||
Manual Phase 1 checks:
|
||||
|
||||
1. Launch `scripts/glassmxrph run`, check bars on all monitors.
|
||||
2. Cog opens settings on the active monitor; close button, Escape and outside click dismiss it.
|
||||
3. Change custom accent/opacity/radius; reopen and restart to verify persistence.
|
||||
4. Toggle reduced motion and change workspace; inspect occupied/urgent states.
|
||||
5. Run the launcher command a second time; confirm no second instance starts.
|
||||
6. Write a valid palette JSON to the documented state path and select Matugen.
|
||||
7. Inspect `quickshell log --path ./quickshell` for QML/DBus errors.
|
||||
8. Restore/stop only this configuration; leave unrelated shell processes intact.
|
||||
|
||||
Automated configuration tests verify preservation of custom settings, unknown keys,
|
||||
pinned applications, validation failures, future versions and immutable updates.
|
||||
|
||||
## Verified Phase 1 results
|
||||
|
||||
On 2026-10-03, using the versions in compatibility.md:
|
||||
|
||||
- Configuration unit tests passed.
|
||||
- All project QML passed qmllint (with the two documented, line-scoped
|
||||
PanelWindow metadata exceptions).
|
||||
- `python3 tests/runtime.py` passed in a real Hyprland session: no QML warnings
|
||||
or DBus errors; duplicate prevention, atomic preference persistence, live
|
||||
palette updates, settings IPC, and corrupt-file preservation all passed.
|
||||
- Both landscape and portrait display bars were created at their own output
|
||||
coordinates. The settings panel was visually inspected.
|
||||
- The pinned x86_64-linux Nix package built successfully.
|
||||
|
||||
`tests/runtime.py` is an opt-in graphical test and requires Python 3. It briefly
|
||||
shows the preview, uses temporary XDG directories and terminates its own process.
|
||||
Do not run it over an already running glassMxrph instance.
|
||||
|
||||
Not yet verified: another distro, ARM hardware, monitor hotplug, fractional scale,
|
||||
manual keyboard/outside-click interaction coverage, or HyprGlass effects. They
|
||||
remain acceptance work for subsequent phases; successful lint is not proof of them.
|
||||
|
||||
## Phase 2 tray validation
|
||||
|
||||
Use the patched runtime supplied by the locked flake:
|
||||
|
||||
```sh
|
||||
nix develop
|
||||
./scripts/validate
|
||||
python3 tests/runtime.py
|
||||
dbus-run-session -- python3 tests/tray_runtime.py
|
||||
nix build --no-update-lock-file
|
||||
```
|
||||
|
||||
The tray fixture requires Python dbus-python/PyGObject and QtTest, supplied by the
|
||||
development shell. It registers two SNI objects on one DBus connection and exports
|
||||
an actual DBusMenu with normal/disabled/hidden items, separators, icons, checkboxes,
|
||||
radio items and two levels of submenus. QtTest injects input into this shell only;
|
||||
it does not move the physical mouse or activate another application's menu actions.
|
||||
Do not run the tests while another glassMxrph instance is running.
|
||||
|
||||
Covered by the isolated tray regression test:
|
||||
|
||||
- Discovery, no fabricated running-app icons, and removal of both tray objects.
|
||||
- Hover intent delay, leaving before the delay, and icon-to-menu handover.
|
||||
- Nested menu hover/activation, real DBus event delivery and application activation.
|
||||
- Disabled actions, hidden entries, separators, icons, checkbox/radio rendering and live updates.
|
||||
- Escape, disabled hover setting and immediate right-click despite disabled hover.
|
||||
- Items without exported menus, opening on each available monitor, and closing on service exit.
|
||||
- Clean QML/DBus logs once asynchronous menu loading has settled.
|
||||
|
||||
The real session separately verified discovery of NetworkManager, Blueman and
|
||||
OpenDeck, and read-only loading of NetworkManager's actual menu. No real application
|
||||
menu actions were triggered. The fixture glass menu was visually inspected.
|
||||
|
||||
Manual checks still useful: outside-click dismissal through the compositor, native
|
||||
Shift-right-click fallback, physical pointer traversal at screen edges, hotplug,
|
||||
fractional scaling and behavior on other distributions. QtTest input injection does
|
||||
not prove the compositor's physical pointer routing.
|
||||
|
||||
Static lint also has three line-scoped `missing-type` exceptions for the
|
||||
PopupAnchor flag properties: Quickshell 0.3.1 exposes the enums but omits their
|
||||
flags types in qmltypes. The properties and enum values are verified against its
|
||||
installed metadata and exercised in the real Wayland tests.
|
||||
|
||||
## Phase 3 dock validation
|
||||
|
||||
Use the standalone source runner and installed matching Quickshell/Qt modules.
|
||||
No Nix rebuild or packaging changes were made in this phase.
|
||||
|
||||
```sh
|
||||
./scripts/validate
|
||||
python3 tests/runtime.py
|
||||
python3 tests/dock_runtime.py
|
||||
dbus-run-session -- python3 tests/tray_runtime.py
|
||||
```
|
||||
|
||||
All four checks passed on 2026-10-03 with clean runtime logs. The existing patched
|
||||
Quickshell binary was reused for the tray regression. Run graphical tests
|
||||
sequentially, using a source path with no active instance. The dock test writes its
|
||||
log/capture under ignored `.cache/`, uses temporary XDG preferences/desktop entries,
|
||||
and closes only its own disposable fixture processes. It briefly creates/focuses
|
||||
fixture windows on your desktop. See [Phase 3](phase-3.md) for exact coverage and
|
||||
remaining physical-input, hotplug, scaling and portability acceptance checks.
|
||||
|
||||
## Phase 4 launcher validation
|
||||
|
||||
On 2026-10-03, QML lint, search/configuration tests, launcher runtime tests and the
|
||||
foundation/dock/tray regression suites passed with clean logs. Run
|
||||
`python3 tests/launcher_runtime.py` sequentially with the existing suites, from an
|
||||
unused source path. It requires Python 3, QtTest and a live Hyprland session, uses
|
||||
temporary desktop entries/preferences, and restores the originally focused output.
|
||||
The captured launcher was visually inspected. See [Phase 4](phase-4.md) for exact
|
||||
coverage, manual acceptance limits and opt-in keybind instructions. Nix integration
|
||||
remains untouched and no new package build is claimed.
|
||||
|
||||
The launcher keyboard regression also holds the pointer over a result during opening;
|
||||
hover/layout changes no longer override keyboard selection. The isolated suite passed
|
||||
after this fix, and the existing source preview was allowed to reload normally.
|
||||
|
||||
## Phase 5 settings
|
||||
|
||||
`python3 tests/providers_test.py` checks filesystem and command argument safety. `python3 tests/settings_runtime.py` uses real Matugen 4.2.x and a recording wallpaper backend, isolated XDG state and QtTest input. It checks live palette updates, stale job suppression, failure recovery and settings editing. Screenshots/logs are saved under ignored `.cache/`. See [Phase 5](phase-5.md).
|
||||
|
||||
## Phase 6 media
|
||||
|
||||
Run `dbus-run-session -- python3 tests/media_runtime.py` with dbus-python, PyGObject,
|
||||
QtTest and Cava available. It creates two synthetic MPRIS players on a private bus,
|
||||
uses isolated preferences and checks metadata, capability guards, player selection,
|
||||
DBus actions, seek units, widget clicks, Cava lifecycle, monitor switching and fallback.
|
||||
It also instantiates the compact Control Center component. Screenshots and logs live
|
||||
under ignored `.cache/`. Real applications receive no playback commands.
|
||||
|
||||
## Phase 7 Control Center
|
||||
|
||||
`tests/system_providers_test.py` checks command boundaries, provider failures,
|
||||
capabilities and confirmation before power commands. `tests/controlcenter_runtime.py`
|
||||
uses real Wayland and read-only native discovery before injecting recording models
|
||||
for writes. It verifies Qt input, module editing, both monitors, confirmation and
|
||||
reopen behavior. No actual power, radio, volume or display change is executed.
|
||||
The tray test also verifies Control Center/tray exclusivity. See [Phase 7](phase-7.md).
|
||||
|
||||
## Phase 8
|
||||
|
||||
`./scripts/validate` includes `tests/metrics_test.py`. Run `python3 tests/metrics_runtime.py` in Hyprland with no project instance active for read-only telemetry, two-output placement, consumer lifecycle, live configuration, unavailable sources and clean logs. Uses isolated XDG preferences and a test-only screenshot driver; no hardware writes. See [Phase 8](phase-8.md).
|
||||
|
||||
## Phase 9
|
||||
|
||||
`tests/polish.test.cjs` checks foreground contrast over a sampled RGB cube. `tests/polish_runtime.py` checks reduced motion, rapid routing, synthetic output fallback, palette error recovery and termination/restart of its own metrics collector. The existing launcher test includes the Phase 8 metrics command. Read-only environment checks are available through `scripts/glassmxrph doctor`. Full interaction regressions and limits are recorded in [Phase 9](phase-9.md).
|
||||
Reference in new issue
Block a user