diff options
| author | installer <installer@gmail.com> | 2025-02-11 00:49:27 +0900 |
|---|---|---|
| committer | installer <installer@gmail.com> | 2025-02-11 00:49:27 +0900 |
| commit | 40abfe9cbc5d35fe7118bb8ff7e7974bfeb13e1a (patch) | |
| tree | 39279d69e67a8f40e8f89b1af27348b9a421e21e /config/hypr/scripts/DarkLight.sh | |
| parent | 309314e5727bcb4f369c34489a1ee2c550bce20e (diff) | |
updated DarkLight and swaync css
Diffstat (limited to 'config/hypr/scripts/DarkLight.sh')
| -rwxr-xr-x | config/hypr/scripts/DarkLight.sh | 18 |
1 files changed, 11 insertions, 7 deletions
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" |
