The screen previews the selected wallpaper with the real transition (TransitionStage, now shared with the desktop background) under a frosted sheet with a 16:9 thumbnail grid. Click or arrows preview, double-click or Enter applies and switches the picker's output directly, Space peeks, typing searches. Thumbnails mark outline wallpapers (wallfx status). Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
55 lines
5.5 KiB
Markdown
55 lines
5.5 KiB
Markdown
# 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 picker covers the screen with a live preview of the selected wallpaper and a grid of thumbnails on a frosted sheet. Selecting a wallpaper (click or arrow keys) plays the real transition to it in the preview; Enter or double-click applies it, and the desktop under the preview switches directly while other outputs play the transition. Space hides the sheet to look at the preview alone, typing searches, and Escape closes without changing anything. ✦ marks wallpapers whose subject outline is drawn first. History records the last 50 selections.
|
||
|
||
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.
|