From 510d8b43aac66e0a4b78fd206163710c78385f12 Mon Sep 17 00:00:00 2001 From: hesam-init Date: Wed, 14 Feb 2024 20:46:05 +0330 Subject: [PATCH] feat: kill swaybg at launch --- hyprland/.config/hypr/scripts/swww-launch.sh | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/hyprland/.config/hypr/scripts/swww-launch.sh b/hyprland/.config/hypr/scripts/swww-launch.sh index bd37126..6c39241 100644 --- a/hyprland/.config/hypr/scripts/swww-launch.sh +++ b/hyprland/.config/hypr/scripts/swww-launch.sh @@ -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