From df8350d549f8b81a53bdadeb813c14473bcf8664 Mon Sep 17 00:00:00 2001 From: Price Hiller Date: Wed, 9 Aug 2023 10:57:50 -0500 Subject: [PATCH] fix(hypr): ensure wallpapers get set on start --- dots/.config/hypr/scripts/init-wallpapers.bash | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/dots/.config/hypr/scripts/init-wallpapers.bash b/dots/.config/hypr/scripts/init-wallpapers.bash index 255786f5..ab54a41c 100755 --- a/dots/.config/hypr/scripts/init-wallpapers.bash +++ b/dots/.config/hypr/scripts/init-wallpapers.bash @@ -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 }