All notable changes to paperforge are documented here. The format
is based on Keep a Changelog,
and this project adheres to Semantic Versioning.
paperforge-trayper-monitor Previous + global Previous all. The SNI tray menu now exposes a "Previous wallpaper" entry under each monitor submenu and a "← Previous all" entry next to "Rotate all now →", so the operator can retreat through the playlist from the panel without touching the terminal. Both retreat variants shell out topaperforge-rotate.sh --previouswith the same skip-blacklist + skip-orientation-mismatch logic as the forward direction, just walked backward ((idx - 1 + n) % nwith wrap-around for small playlists).paperforge-trayOpen GUI menu entry. The SNI tray now exposes an "Open GUI" item next to "Open TUI" that spawns thepaperforge-guiGPUI Wayland window on activation. Spawn is fire-and-forget with detached stdin/stdout/stderr so a slow window boot (Wayland surface allocation, font load) does not block the ksni D-Bus loop; ifpaperforge-guiis not on$PATH, the activation logs an error tojournalctl --user -u paperforge-tray.serviceand falls through silently (SNI does not support modal notifications).- Header rows in the tray menu now show
← prev | current | next →(instead of justcurrent → next) so the labels match what each action will actually apply.MonitorStategained apreviousfield computed inread_playlistsfrom the same state file ($XDG_RUNTIME_DIR/paperforge-rotate-state.json) used by the bash orchestrator. Directionenum +as_flaghelper inpaperforge-tray::main, withDirection::Forwardmapping to the empty string (no flag, backward compatible) andDirection::Previousmapping to--previous. 6 new unit tests cover the wrap-around math at both boundaries (idx=0andidx=n-1) and the flag composition for all 4 spawn-arg combinations (forward/previous × monitor/no-monitor).- Portrait auto-skip heuristic: orientation-aware skip in the
per-playlist rotation loop. Wallpapers whose physical orientation
(portrait vs landscape) contradicts the monitor's orientation are
skipped automatically, so a 9:16 Workshop scene never lands on a
16:9 monitor again. Detection works on
scene.pkg(orthogonalprojectionblock for Workshop scenes),ffprobeshell-out with 5s timeout for video workshops, and inline PNG IHDR / JPEG SOF0 header parsing for image workshops. Web workshops (index.html) returnUnknownand pass through by default. paperforge orientation <PATH>CLI subcommand with--jsonoutput (paperforge-core::orientation::detect).- New
monitor_orientationandorientation_fallbackfields on the playlist JSON schema, both optional with safe defaults (landscape+allow). Existing playlists pick up portrait filtering automatically — no opt-in required. paperforge-core::orientation::orientation_compatible(monitor, scene, fallback)pure decision function with a truth table covering 12 monitor/scene/fallback combinations (rustdoc).crates/paperforge-core/tests/orientation-skip-smoke.sh— 12 integration assertions covering synthetic + live Steam-library workshops (portrait 1080x1920, 1080x2400, 2395x3500; landscape 1920x1080; square 1080x1080), CLI--jsonshape, and bash-helper cache hit.crates/paperforge-cli/tests/cli.rs— 6 integration tests usingCARGO_BIN_EXE_paperforge(no extra deps).- Real SIGSTOP/SIGCONT round-trip test using a
sleepchild +/proc/<pid>/statusstate inspection. Inventoryedge-case tests: video-typed projects, unknown type, corruptproject.jsonmid-scan, empty inventory.Configtests: extra_sources roundtrip, backend construction, source_roots inclusion.AudioCommandserialization test (kebab-case lowercase).
- Operator bash helper
paperforge-orientation-detect.shcaches results in$XDG_CONFIG_HOME/paperforge/orientation-cache.jsonkeyed by workshop ID + scene.pkg mtime. Cache hit cost is a singlejqlookup (~ms); cache miss runs the CLI parser (~50–300ms fork+exec). list_pidsno longer spawnspgrepsubprocess — direct/procread is ~30x faster on a ~1000 PID system.
LweBackend::list_pidsnow walks/proc/<pid>/cmdlinedirectly instead ofpgrep -f linux-wallpaperengine. Robust to/proc/<pid>/commbeing truncated to 15 chars (TASK_COMM_LEN), eliminates false positives when cwd contains the pattern substring, faster (no subprocess fork), and testable via a sync helper.BackendKind::process_basenamerenamed toprocess_patternto better reflect that it's a substring match. Deprecated alias kept for backward compatibility until 0.2.0.- Removed dead
unused_to_silence_warningsfn fromcli/src/main.rs.
list_pidsno longer spawnspgrepsubprocess — direct/procread is ~30x faster on a ~1000 PID system.
0.1.0 — 2026-07-28
- Initial release of
paperforge(Fase 6A). - Workspace with 3 crates:
paperforge-core— lib (inventory, paths, backend, audio, playlist, config, error)paperforge-cli—paperforgebinary with 8 subcommandspaperforge-tui— placeholder for Fase 6B
WallpaperBackendtrait +LweBackendimpl (POSIX signals: SIGSTOP/SIGCONT for pause/resume, SIGUSR1/SIGUSR2 for audio).LweAudioController(toggle/mute/unmute via SIGUSR1/SIGUSR2/SIGCONT).Playlist+PlaylistStore(JSON files in$XDG_CONFIG_HOME/paperforge/playlists/).Inventoryscanner (walkdir + mtime, detects Workshop scenes + loose images + loose videos).default_pathsauto-detect (native Steam + Flatpak +~/Wallpapers).Config+ConfigPaths(TOML atconfig.toml).- 24 unit tests covering all public APIs.
- Designed to focus on what's missing in generic Wayland wallpaper switchers (per-monitor playlists, audio control via signals, etc).
- License: MIT.
- Backend:
louzt/linux-wallpaperengine(GPL-3.0) via IPC.