feat: kill swaybg at launch

This commit is contained in:
hesam-init 2024-02-14 20:46:05 +03:30
parent 5590011d75
commit 510d8b43aa

View file

@ -6,6 +6,10 @@ PICS=($(ls ${DIR}))
RANDOMPICS=${PICS[$RANDOM % ${#PICS[@]}]}
if [[ $(pidof swaybg) ]]; then
pkill swaybg
fi
swww query || swww init
swww img ${DIR}/${RANDOMPICS} --transition-fps $FPS --transition-type any --transition-duration 3