Repository navigation
Releases
CardPaper v0.1.0-rc.1
CardPaper
CardPaper is a keyboard-oriented wallpaper picker for Hyprland. It opens a horizontal carousel of animated wallpaper cards and uses awww to apply and restore wallpapers.
Demo
CardPaper-Demo.mp4
Features
- Live previews, confirmation and Escape to restore the starting wallpaper.
- Keyboard navigation, mouse wheel and clickable cards.
- Optional looping and recursive discovery of JPG, JPEG, PNG and WebP images.
- Asynchronous, size-limited thumbnails for the visible cards and their immediate neighbors.
- A Hyprland-style configuration file with live reload for appearance and navigation.
- Per-user installation and a
cardpapercommand that works from any directory.
Dependencies
The initial targets are Arch Linux and CachyOS, running Hyprland under Wayland. Use Quickshell with the Wayland layer-shell backend and a Qt version that matches its build. The launcher looks for qs, quickshell and noctalia-qs. Set CARDPAPER_QS to an executable path or command name to select a specific installation. CLI detection checks the program identity and launch options. Qt compatibility still depends on the local installation.
Install awww 0.12.1 or newer, the Qt image format plugins for WebP (qt6-imageformats on Arch), GNU findutils, GNU coreutils and a POSIX shell. Use the Quickshell package appropriate to your system and keep any existing noctalia-qs installation that provides a compatible CLI.
Installation
From a checkout or an extracted release archive, run the installer as your regular user.
./scripts/install.sh
cardpaper --version
Application files go to ${XDG_DATA_HOME:-$HOME/.local/share}/cardpaper and the command link goes to $HOME/.local/bin/cardpaper. Add $HOME/.local/bin to your session PATH or invoke that absolute path. The installer seeds missing settings at ${XDG_CONFIG_HOME:-$HOME/.config}/cardpaper/cardpaper.conf. Running it again updates application files and preserves your settings. Relative XDG paths are ignored.
To run from source without installing, use qs --no-duplicate --path /absolute/path/to/CardPaper/shell.qml. The proposed Arch package recipe is in packaging/PKGBUILD. Its release-source checksum must be filled in before AUR submission.
Usage
Start awww-daemon in your Hyprland session if it is not already running. Check that awww query --json returns the current state for your monitor. Set general.wallpaper_path to your image directory, then launch cardpaper.
| Input | Action |
|---|---|
| Left or Right arrow | Navigate the carousel |
| Mouse wheel or touchpad scroll | Navigate the carousel |
| Click a card | Select and optionally preview it |
| Enter | Keep the selected wallpaper and close |
| Escape | Cancel, restore the initial wallpaper if a change was attempted, and close |
If restoration fails, CardPaper reports the error in the terminal and closes. If it cannot read a restorable awww state on startup, it allows browsing and Escape while leaving the wallpaper untouched. Confirmation becomes available once the selected thumbnail decodes.
Configuration
Start with the bundled configuration. The XDG user file takes priority. When it is absent or unreadable, CardPaper uses the bundled file. Invalid active fields revert to code defaults. Use one key = value entry per line within section { ... }, and start comment lines with #.
| Section | Setting | Bundled value and behavior |
|---|---|---|
general |
wallpaper_path |
~/Pictures/Wallpaper. Relative paths resolve from your home directory. |
general |
recursive_scan |
true. Include subdirectories. |
general |
live_preview |
true. Apply selections while browsing. |
general |
loop |
false. At the ends, the carousel leaves empty space on the side with no more cards. Set to true to wrap. |
appearance |
overlay_height |
60. Percentage of monitor height, from 1 to 100. |
cards |
width, height, spacing, border_radius |
240, 360, 60, 16 logical pixels. |
cards |
rotation, selected_scale |
8 degrees and 1.2 scale factor. |
cards |
visible_count |
5. Valid from 1 to 31. An even count allows one extra card on the right. |
animations |
enabled, duration |
true, 350 ms. |
controls |
scroll_delay |
350 ms between wheel actions. |
backend |
namespace |
Empty for the default awww daemon. Set the same namespace on CardPaper and awww-daemon, then reopen CardPaper. |
backend |
transition_type, transition_duration |
fade, 350 ms. See awww img --help for valid transition names. |
CardPaper 0.1.0-rc.1 ignores the legacy keys appearance.background_opacity, appearance.blur_enabled, appearance.blur_size, appearance.blur_fade, and backend.provider. Existing configs can keep them. To configure blur through Hyprland, use the cardpaper layer namespace.
Hyprland integration
Choose the example that matches your Hyprland configuration. The daemon startup line is needed only if your session has no existing awww daemon. Avoid having two wallpaper managers update the same output concurrently.
Traditional hyprland.conf
exec-once = awww-daemon
bind = SUPER, W, exec, cardpaper
Lua hyprland.lua
hl.on("hyprland.start", function()
hl.exec_cmd("awww-daemon")
end)
hl.bind("SUPER + SHIFT + W", hl.dsp.exec_cmd("cardpaper"))
If the keybind environment lacks ~/.local/bin, replace "cardpaper" with os.getenv("HOME") .. "/.local/bin/cardpaper". For a separate daemon namespace, use e.g. awww-daemon --namespace wallpapers, set backend.namespace = wallpapers inside the backend section and diagnose it with awww query --json --namespace wallpapers. See the Hyprland documentation for autostart and binds.
Troubleshooting
- Missing dependencies or CLI errors Run
cardpaper --check-dependenciesandqs --version. If Quickshell reports a Qt build mismatch, use a compatible Quickshell build selected throughCARDPAPER_QS. - Wayland socket unavailable Launch from inside the Hyprland session so
WAYLAND_DISPLAYandXDG_RUNTIME_DIRrefer to that session. - awww unavailable Run
awww query --jsonwith the configured namespace. Confirm the daemon is running in the same session and that the output appears in the response. - Empty carousel Verify the directory, read access, filename extensions and
recursive_scansetting. A corrupt or unsupported thumbnail shows an error when selected and cannot be applied. - Restore error Check the terminal for the awww error and verify the original image is still readable. If the daemon stopped, restart it and apply your image manually when it is available again.
Known limitations
Each session targets the output on which CardPaper opens, selected as Quickshell’s first listed screen. Other outputs are left alone. Changing the target monitor in the app is outside this prerelease. A forced process kill, compositor crash, or daemon that becomes unavailable can prevent restoration. Preview and confirmation require a recognized initial state from awww. Blur depends on your Hyprland configuration. Manual QA covered a single 1920×1080 monitor at 165 Hz and scale 1.0 on CachyOS with Hyprland 0.57.2 and awww 0.12.1. The tested noctalia-qs build used Qt 6.11.2 at build time and Qt 6.12.1 at runtime.
Manual coverage is pending for physical multi-monitor setups, mixed resolutions and refresh rates, fractional scaling, 1440p and 4K, other distributions, a matching Qt/Quickshell runtime, long-duration memory behavior, GPU and VRAM usage, upgrades between releases, and interactive restoration from a solid color or with a custom awww namespace. See PROJECT_STATUS.md for verification details and release blockers.
Uninstallation
From the source checkout or release archive, run ./scripts/uninstall.sh with the same XDG environment used for installation. It removes the user-installed application and launcher and preserves the user config. When testing a locally built package, use sudo pacman -R cardpaper to remove the package.
Contributing
See CONTRIBUTING.md for test commands and review guidelines. CardPaper uses the MIT License.