nixcfg/homeManagerModules/services/randomWallpaper
Aly Raffauf 7aa16a4005
Some checks are pending
nix-build / default-build (push) Waiting to run
nix-build / fallarbor-build (push) Waiting to run
nix-build / lavaridge-build (push) Waiting to run
nix-build / mauville-build (push) Waiting to run
nix-build / petalburg-build (push) Waiting to run
nix-build / rustboro-build (push) Waiting to run
nix-build / slateport-build (push) Waiting to run
nix-check / fmt-check (push) Waiting to run
nix-check / eval-check (push) Waiting to run
Merge branch 'master' into add-river
2024-09-18 12:33:18 -04:00
..
default.nix Merge branch 'master' into add-river 2024-09-18 12:33:18 -04:00
README.md randomWallpaperD: add README.md 2024-09-02 10:19:42 -04:00
script.rb randomWallpaper: set timer to 30mins 2024-09-02 10:19:57 -04:00

randomWallpaperD

Dynamically sets per-monitor wallpapers and changes them on a 30 minute timer. Running as a daemon, this script supports monitor hotplugging by polling the window manager for active outputs, then intelligently assigns random wallpapers per-screen with swaybg.

Arguments

If called without arguments, it assumes wallpapers are in a directory ~/.local/share/backgrounds. The first argument can be used to set the directory:

./script.rb ~/path/to/my/wallpapers

Window Manager Support

Because this script polls the window manager directly by way of its CLI utility, it currently only supports Hyprland (with hyprctl) and Sway (with swaymsg).