fix(hypr): ensure wallpapers get set on start
This commit is contained in:
parent
9055141e0a
commit
df8350d549
@ -23,7 +23,7 @@ set-wallpapers() {
|
|||||||
done
|
done
|
||||||
if "${set_mon_wallpaper}"; then
|
if "${set_mon_wallpaper}"; then
|
||||||
log "Set default wallpaper for monitor: '${monitor}'"
|
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
|
fi
|
||||||
done < <(hyprctl monitors -j | jq -r '.[].name')
|
done < <(hyprctl monitors -j | jq -r '.[].name')
|
||||||
|
|
||||||
@ -32,7 +32,7 @@ set-wallpapers() {
|
|||||||
}
|
}
|
||||||
|
|
||||||
main() {
|
main() {
|
||||||
swww init
|
swww kill; swww init && log "Initialized swww daemon"
|
||||||
set-wallpapers
|
set-wallpapers
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user