fix(hypr): ensure wallpapers get set on start

This commit is contained in:
Price Hiller 2023-08-09 10:57:50 -05:00
parent 9055141e0a
commit df8350d549
Signed by: Price
SSH Key Fingerprint: SHA256:Y4S9ZzYphRn1W1kbJerJFO6GGsfu9O70VaBSxJO7dF8

View File

@ -23,7 +23,7 @@ set-wallpapers() {
done
if "${set_mon_wallpaper}"; then
log "Set default wallpaper for monitor: '${monitor}'"
swww img -t none "${XDG_DATA_HOME}/wallpapers/Nebula.jpg" -o "${monitor}" &
swww img -t none "${XDG_DATA_HOME}/wallpapers/Nebula.jpg" -o "${monitor}"
fi
done < <(hyprctl monitors -j | jq -r '.[].name')
@ -32,7 +32,7 @@ set-wallpapers() {
}
main() {
swww init
swww kill; swww init && log "Initialized swww daemon"
set-wallpapers
}