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.
This commit is contained in:
1 parent
47f481c5ab
commit
f9c4c925ed
14 files changed
+24
-861
No files matched your search
@@ -127,8 +127,8 @@ pairing uses the existing manager. No notification or pairing daemon is register
|
||||
|
||||
## 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).
|
||||
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.
|
||||
|
||||
## 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).
|
||||
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.
|
||||
@@ -54,7 +54,7 @@ upstream transport diagnostic; no action is retried and the UI must discard the
|
||||
|
||||
## 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.
|
||||
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
|
||||
|
||||
@@ -72,11 +72,11 @@ Command-backed controls require their listed providers and degrade when unavaila
|
||||
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.
|
||||
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. See [Phase 8](phase-8.md).
|
||||
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
|
||||
|
||||
@@ -84,4 +84,4 @@ 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).
|
||||
provides read-only dependency/session diagnostics.
|
||||
@@ -1,63 +0,0 @@
|
||||
# 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
@@ -1,126 +0,0 @@
|
||||
# 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
@@ -1,166 +0,0 @@
|
||||
# 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.
|
||||
@@ -1,94 +0,0 @@
|
||||
# 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`
|
||||
@@ -1,85 +0,0 @@
|
||||
# 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
@@ -1,127 +0,0 @@
|
||||
# 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`
|
||||
@@ -1,81 +0,0 @@
|
||||
# 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`
|
||||
@@ -1,87 +0,0 @@
|
||||
# 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`
|
||||
+6
-8
@@ -105,8 +105,7 @@ 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.
|
||||
fixture windows on your desktop.
|
||||
|
||||
## Phase 4 launcher validation
|
||||
|
||||
@@ -115,8 +114,7 @@ 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
|
||||
The captured launcher was visually inspected. Nix integration
|
||||
remains untouched and no new package build is claimed.
|
||||
|
||||
The launcher keyboard regression also holds the pointer over a result during opening;
|
||||
@@ -125,7 +123,7 @@ 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).
|
||||
`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/`.
|
||||
|
||||
## Phase 6 media
|
||||
|
||||
@@ -143,12 +141,12 @@ capabilities and confirmation before power commands. `tests/controlcenter_runtim
|
||||
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).
|
||||
The tray test also verifies Control Center/tray exclusivity.
|
||||
|
||||
## 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).
|
||||
`./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.
|
||||
|
||||
## 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).
|
||||
`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`.
|
||||
Reference in new issue
Block a user