Skip to content

evanjs/rrbg

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

88 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

rrbg - Random Background/Wallpaper Selector

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

Note for barebones Linux desktop envrionments (e.g. xmonad)

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.

NixOS

  • Install (or launch a nix-shell(?) with) xdg-user-dirs and run xdg-user-dirs-update, or create user-dirs.dirs manually
    • I plan on automating this step with home-manager if it's not automated elsewhere

About

Random background switcher written in Rust

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published