Files
flake/environments/gnome/wallpaper.sh

10 lines
256 B
Bash
Executable File

#!/usr/bin/env bash
WALLPAPERS=~/wallpapers/
WP=$(find $WALLPAPERS -type f | shuf -n 1)
ln -fs $WP ~/.cache/current-wallpaper
gsettings set org.gnome.desktop.background picture-uri "$WP"
gsettings set org.gnome.desktop.background picture-uri-dark "$WP"