Wallpaper Integration
This project integrates the Juna theming system for seamless management of wallpaper collections. Juna automatically couples various wallpaper sets with the active color scheme, providing a cohesive visual experience where wallpapers consistently complement the chosen system theme.
Dynamic Wallpaper Switching (wallrandom)
The wallrandom script dynamically selects and applies wallpapers based on the current Juna-managed theme, utilizing swww for smooth, animated transitions during wallpaper changes.
The script, located at home-manager/modules/cli/scripts/wallrandom.nix, works as follows:
- Detects the current
colorschemeas defined inflake.nix. - Accesses wallpapers automatically set up by Juna in
~/.config/wallpapers/<current-theme>. - Picks a random wallpaper from the theme-matched folder.
- Applies it with a smooth
swwwtransition.
Usage
Once wallrandom is in your $PATH, just run:
wallrandom
To instantly change the wallpaper, bind this script to a keyboard shortcut in your window manager. Additionally, running this script after a theme change will apply a new wallpaper that matches the updated aesthetic.