Expand description
Adapters for communicating with Desktop Environments, Window Managers, and Display Servers.
Structs§
- Awww
Backend - Backend implementing dynamic wallpaper transitions on Wayland via
awww. - Daemon
Config - Configuration for a background daemon to ensure consistent lifecycle management.
- Daemon
Manager - A generic coordinator to handle background daemon processes.
- Gnome
Backend - Hyprland
Backend - Backend implementing wallpaper orchestration for the Hyprland compositor via
hyprpaper. - Openbox
Backend - Swaybg
Backend - Backend implementing static wallpaper rendering on Wayland via
swaybg. - Xfce
Backend
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§
- Command
Ext - Extension trait for
std::process::Commandto unify command execution logic. - 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 with a retry loop.
- get_
active_ xrandr_ monitors - Get active X11 monitors via xrandr to filter out stale configurations.
- is_
process_ running - Checks if a process with the specified name is currently running.
- is_
process_ running_ shared - Checks if a process is running using an existing, shared
Systeminstance. - 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 - Pure parser for xrandr output.
- prune_
stale_ xfce_ configs - Prunes stale XFCE configurations that no longer correspond to active hardware.
- set_
wallpaper - Set desktop wallpaper based on the detected Desktop Environment.
- terminate_
processes_ by_ name - Terminates all processes that match the provided name.
- wait_
for_ process_ ready - Polls the system until the specified process is detected or the timeout is reached.