Swww does not work properly and crashes hyprland

i am using swww 0.9.1 to set wallpapers on hyprland-0.38.0-1.1.x86_64 and it does not work properly, it set the wallpaper as grey and the ratio is wrong and after some time it crashes hyprland and i have to login back into hypeland using sddm i am using the following script for changing wallpaper

#!/bin/bash
DIR=$HOME/Pictures/wallpapers/
PICS=($(ls ${DIR}))
RANDOMPICS=${PICS[ $RANDOM % ${#PICS[@]} ]}
swww-daemon || swww query
#change-wallpaper using swww
swww img ${DIR}/${RANDOMPICS} --transition-fps 60 --transition-type any --transition-duration 3

even if i just use swww-daemon and manually change it still is wrong and after some time crashes hyprland.

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.