.s/scripts/theme/hooks/background.sh
2024-05-26 13:49:31 -07:00

13 lines
218 B
Bash
Executable File

#!/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