This document explains how wallpaper storage, selection, synchronization, and reload daemons are organized.
[ User presses Super + Shift + W ] [ User presses Super + Alt + W ]
│ │
▼ ▼
[ wallpaper-theme.sh ] [ wallpaper-only.sh ]
(Wallpaper + Waybar Theme) (Wallpaper Only)
│ │
┌────────┴────────┬──────────────┐ ┌────────┴────────┐
▼ ▼ ▼ ▼ ▼
[hyprpaper.conf] [hyprlock.conf] [style.css] [hyprpaper.conf] [hyprlock.conf]
│ │ │ │ │
▼ ▼ ▼ ▼ ▼
hyprctl hyprlock killall hyprctl hyprlock
hyprpaper lock -SIGUSR2 hyprpaper lock
reload screen waybar reload screen
The system provides two dedicated shuffle scripts located in ~/.config/hypr/scripts/:
-
wallpaper-theme.sh(Super + Shift + W):- Randomly picks a wallpaper from
~/.config/hypr/hyprpaper/. - Randomly picks a matching Waybar theme from
~/.config/waybar/themes/. - Updates
hyprpaper.conf,hyprlock.conf, and~/.config/waybar/style.css. - Live reloads Hyprpaper and sends
SIGUSR2to Waybar for an instantaneous, flicker-free stylesheet transition. - Dispatches a desktop notification with thumbnail and theme name.
- Randomly picks a wallpaper from
-
wallpaper-only.sh(Super + Alt + W):- Randomly picks and applies a wallpaper from
~/.config/hypr/hyprpaper/. - Updates
hyprpaper.confandhyprlock.conffor persistent desktop and lockscreen sync. - Leaves Waybar theme and CSS completely untouched.
- Ideal for users who found their preferred Waybar theme and only want to randomize backgrounds.
- Randomly picks and applies a wallpaper from
-
wallpaper.sh(CLI Dispatcher):- Unified entrypoint:
wallpaper.sh --only # Shuffle wallpaper only wallpaper.sh --theme # Shuffle both wallpaper and Waybar theme wallpaper.sh /path/to/img.png # Set specific wallpaper
- Unified entrypoint:
- All wallpaper assets live in
~/.config/hypr/hyprpaper/. - Supported image formats include
.png,.jpg,.jpeg, and.webp. - Wallpapers are rendered using
fit_mode = coverso aspect ratios fill display outputs cleanly.
A common issue in Wayland desktop environments is visual desynchronization between the desktop wallpaper and the lockscreen wallpaper. Both shuffler scripts resolve this by updating both configuration files simultaneously:
- Selects an image from
~/.config/hypr/hyprpaper/. - Updates
hypr/hyprpaper.conf:sed -i -E "s|path = .*|path = $WALLPAPER|g" "$HYPRPAPER_CONF"
- Updates
hypr/hyprlock.conf:sed -i -E "s|path = .*|path = $WALLPAPER|g" "$HYPRLOCK_CONF"
- Reloads
hyprpaperdynamically via Wayland IPC:hyprctl hyprpaper wallpaper ",$WALLPAPER"
Because hyprlock.conf now references the same image path, activating the screen lock (Super + L) displays the exact same wallpaper with Gaussian blur applied.
To add your own wallpapers to the rotation:
- Copy image files into
~/.config/hypr/hyprpaper/. - Press
Super + Alt + W(wallpaper only) orSuper + Shift + W(wallpaper + theme).