Expand description
Adapters for communicating with Desktop Environments, Window Managers, and Display Servers.
Structs§
Enums§
- Desktop
- Represents the supported Desktop Environments (DE) or Window Managers (WM). We use an Enum instead of a String to ensure type safety and prevent logic errors.
Traits§
- Wallpaper
Backend - Core trait defining the wallpaper application logic. Follows the “Functional Core, Imperative Shell” pattern.
Functions§
- compile_
wallpapers_ for_ monitors - Pre-processes and compiles separate multi-picture composite backgrounds in parallel for each monitor.
- detect_
monitors - Detects active outputs (monitors) using a robust fallback chain. Returns a WallSwitchResult wrapping a Vector of monitor property strings.
- exec_
cmd - get_
active_ xrandr_ monitors - Get active X11 monitors via xrandr to filter out stale configurations.
- parse_
hyprland - Pure parser for Hyprland output
- parse_
niri - Pure parser for Niri output
- parse_
wlr_ randr - Pure parser for wlr-randr output
- parse_
xfce - XFCE Logic: Matches active hardware (xrandr) with XFCE properties. If a monitor is active but has no XFCE property yet, we synthesize one.
- parse_
xrandr - prune_
stale_ xfce_ configs - set_
wallpaper - Set desktop wallpaper based on the detected Desktop Environment.