Wraith: A Hyprland Desktop That Themes Itself
Wraith is a Hyprland desktop for Arch that themes itself from your wallpaper. Pick a wallpaper and Wraith sets it with an animated transition, builds a color palette from it, writes that palette into Hyprland, Waybar, Ghostty, Rofi, SwayNC, and GTK4, and tells each app to reload. One keypress recolors the whole desktop.
I started it in February as a pile of dotfiles and came back to it hard in November. Most of the project’s history landed in those two months.
Here it is switching wallpapers from the TUI. Waybar, the window borders, and the TUI itself all pick up each wallpaper’s palette.
Wallpapers: Green nebula with stars in deep space by Dihumichi and Wavy orange and dark purple abstract background by Simple Wallpapers, both from Unsplash.
What’s in it
Wraith comes in two pieces.
The first is a set of dotfiles for Hyprland and the apps around it: Waybar, Ghostty, Rofi, SwayNC, wlogout, hyprlock, and hypridle. They’re installed with GNU Stow, one symlink per file, so they stay under version control and your own files in those directories stay out of the repo. Your personal changes go in user.lua and a couple of other files that Wraith never touches, so updating doesn’t wipe them out.
The second is the wraith binary, a Rust CLI and TUI. Press Super+R to open it. It has tabs for browsing and applying wallpapers, toggling light and dark mode, reloading individual apps, and editing settings. Cursor themes change live with no relogin. Set a random interval and a systemd timer rotates your wallpaper every few minutes. The same actions are on the command line for keybindings and scripts:
wraith --apply ~/Pictures/wallpapers/nebula.jpg
wraith --next-wallpaper # Super+Alt+Right
wraith --random
There’s also a set of small wr-* scripts for volume, brightness, screenshots, an emoji picker, and system updates, wired into the keybindings, Waybar, and the SwayNC panel.
How theming works
wallpaper ─▶ wail ─▶ awww ─▶ ~/.cache/wail/colors-* ─▶ app configs ─▶ reload
Wraith builds the palette first, so a wallpaper that can’t be decoded never gets set. Then awww plays the transition, Wraith renders a template for each app, copies the results into place, and signals the running apps. Waybar and Ghostty reload on SIGUSR2, Hyprland on hyprctl reload, and Rofi and GTK4 pick up the new colors on their next launch.
The palette came from pywal at first. Wraith later switched to wail, a palette generator I wrote in Rust that keeps every color readable against the background. Wraith uses it as a crate, which also dropped Python from the install.
Install
You need an Arch-based distro, Hyprland 0.57 or newer, and paru or yay for the AUR packages.
git clone https://github.com/voidrender/wraith.git
cd wraith
./install.sh
The installer pulls in the packages, backs up any configs it would replace, links the dotfiles, and builds the binary. Running it again is safe. External monitor brightness over DDC/CI touches system files, so it’s opt-in. ./install.sh --uninstall takes it all back out and points you at your backup.
The README covers the installer’s options, what it backs up, and how to uninstall.
# EOF