From 40abfe9cbc5d35fe7118bb8ff7e7974bfeb13e1a Mon Sep 17 00:00:00 2001 From: installer Date: Tue, 11 Feb 2025 00:49:27 +0900 Subject: updated DarkLight and swaync css --- config/hypr/scripts/DarkLight.sh | 18 +++++++++++------- 1 file changed, 11 insertions(+), 7 deletions(-) (limited to 'config/hypr/scripts/DarkLight.sh') diff --git a/config/hypr/scripts/DarkLight.sh b/config/hypr/scripts/DarkLight.sh index f5b9389b..783fa31a 100755 --- a/config/hypr/scripts/DarkLight.sh +++ b/config/hypr/scripts/DarkLight.sh @@ -20,8 +20,11 @@ wallust_config="$HOME/.config/wallust/wallust.toml" pallete_dark="dark16" pallete_light="light16" -# kill swaybg if running -pkill swaybg +# intial kill process +for pid in kitty waybar rofi swaync ags swaybg; do + killall -SIGUSR1 "$pid" +done + # Initialize swww if needed swww query || swww-daemon --format xrgb @@ -230,15 +233,16 @@ update_theme_mode ${SCRIPTSDIR}/WallustSwww.sh && -# some process to kill -for pid in $(pidof kitty waybar rofi swaync ags swaybg); do - kill -SIGUSR1 "$pid" +sleep 2 +# kill process +for pid1 in kitty waybar rofi swaync ags swaybg; do + killall "$pid1" done -sleep 2 +sleep 1 ${SCRIPTSDIR}/Refresh.sh -sleep 1 +sleep 0.5 # Display notifications for theme and icon changes notify-send -u low -i "$notif" " Themes switched to:" " $next_mode Mode" -- cgit v1.2.3