Files
glassMxrph/docs/compatibility.md
T
mx f9c4c925ed Remove agent phase reports from the repository
Phase progress reports, optimization notes and profiling output stay
local and are now ignored. Drop the links that pointed to them.
2026-10-09 18:19:23 +02:00

88 lines
5.4 KiB
Markdown

# 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. 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.
## 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.
## 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.