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 +++++++++++------- config/hypr/scripts/Refresh.sh | 6 ++++-- 2 files changed, 15 insertions(+), 9 deletions(-) (limited to 'config/hypr/scripts') 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" diff --git a/config/hypr/scripts/Refresh.sh b/config/hypr/scripts/Refresh.sh index 5cb69af4..b041b19b 100755 --- a/config/hypr/scripts/Refresh.sh +++ b/config/hypr/scripts/Refresh.sh @@ -22,10 +22,12 @@ for _prs in "${_ps[@]}"; do fi done -killall -SIGUSR2 waybar # added since wallust sometimes not applying +# added since wallust sometimes not applying +killall -SIGUSR2 waybar +killall -SIGUSR2 swaync # quit ags & relaunch ags -#ags -q && ags & +ags -q && ags & # some process to kill for pid in $(pidof waybar rofi swaync ags swaybg); do -- cgit v1.2.3