.s/scripts/theme/hooks/background.sh

13 lines
218 B
Bash
Raw Normal View History

2024-05-26 16:23:12 -04:00
#!/bin/bash
NEW_THEME=$2
function wallpaper() {
osascript -e "tell application \"Finder\" to set desktop picture to POSIX file \"$1\""
}
wp=$(find $HOME/Wallpapers/$NEW_THEME/* | shuf -n1)
wallpaper $wp
echo $wp