The purpose of this application is to determine the resolution of all connected screens, and randomly select a wallpaper for each screen with a matching resolution
The default path checks for the XDG picture directory (i.e. $XDG_PICTURES_DIR) See this page for more information.
Alternatively, you can simply create the user-dirs.dirs
file in your $XDG_CONFIG
folder
e.g.
echo 'XDG_DESKTOP_DIR="$HOME/Desktop"
XDG_DOCUMENTS_DIR="$HOME/Documents"
XDG_DOWNLOAD_DIR="$HOME/Downloads"
XDG_MUSIC_DIR="$HOME/Music"
XDG_PICTURES_DIR="$HOME/Pictures"
XDG_PUBLICSHARE_DIR="$HOME/Public"
XDG_TEMPLATES_DIR="$HOME/Templates"
XDG_VIDEOS_DIR="$HOME/Videos"' > $XDG_CONFIG/user-dirs.dirs
The long term goal is to fail if this directory is not found, check ENV, CLI options, and a config file, etc. For now, simply initialize the XDG user dirs (macOS and Windows users shoudl already be set) and use ~/Pictures/Wallpapers.
- Install (or launch a
nix-shell
(?) with) xdg-user-dirs and runxdg-user-dirs-update
, or createuser-dirs.dirs manually
- I plan on automating this step with home-manager if it's not automated elsewhere