Files
flake/modules/gnome/wallpaper.sh
2023-05-10 00:28:50 +09:00

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"