From 0b9692e2125eb6517b162e93287b4cad97b6c4d6 Mon Sep 17 00:00:00 2001 From: JaKooLit Date: Mon, 10 Feb 2025 15:42:58 +0900 Subject: minor dark light and refresh update --- config/hypr/scripts/DarkLight.sh | 17 +++++++---------- 1 file changed, 7 insertions(+), 10 deletions(-) (limited to 'config/hypr/scripts/DarkLight.sh') diff --git a/config/hypr/scripts/DarkLight.sh b/config/hypr/scripts/DarkLight.sh index 0ad5e0dc..01b05b1c 100755 --- a/config/hypr/scripts/DarkLight.sh +++ b/config/hypr/scripts/DarkLight.sh @@ -110,9 +110,9 @@ else sed -i '/^cursor /s/^cursor .*/cursor #000000/' "${kitty_conf}" fi -for pid in $(pidof kitty); do - kill -SIGUSR1 "$pid" -done +#for pid in $(pidof kitty); do +# kill -SIGUSR1 "$pid" +#done # Set Dynamic Wallpaper for Dark or Light Mode @@ -234,19 +234,16 @@ update_theme_mode ${SCRIPTSDIR}/WallustSwww.sh && # some process to kill -_ps=(waybar rofi swaync ags swaybg) -for _prs in "${_ps[@]}"; do - if pidof "${_prs}" >/dev/null; then - pkill "${_prs}" - fi +for pid in $(pidof kitty waybar rofi swaync ags swaybg); do + kill -SIGUSR1 "$pid" done sleep 2 ${SCRIPTSDIR}/Refresh.sh -sleep 0.3 +sleep 1 # Display notifications for theme and icon changes -notify-send -u normal -i "$notif" " Themes switched to:" " $next_mode Mode" +notify-send -u low -i "$notif" " Themes switched to:" " $next_mode Mode" exit 0 -- cgit v1.2.3