From 565f20ac7513792bd4b0bd3c78eac9de90fbb6a0 Mon Sep 17 00:00:00 2001 From: JaKooLit Date: Fri, 10 Jan 2025 18:13:29 +0900 Subject: tweaked refresh.sh cause wallust color does not apply to waybar sometimes --- config/hypr/scripts/Refresh.sh | 16 ++++++++++++---- 1 file changed, 12 insertions(+), 4 deletions(-) (limited to 'config/hypr/scripts/Refresh.sh') diff --git a/config/hypr/scripts/Refresh.sh b/config/hypr/scripts/Refresh.sh index 1aa63378..78f76702 100755 --- a/config/hypr/scripts/Refresh.sh +++ b/config/hypr/scripts/Refresh.sh @@ -22,13 +22,11 @@ for _prs in "${_ps[@]}"; do fi done +killall -SIGUSR2 waybar # added since wallust sometimes not applying + # quit ags ags -q -sleep 1 -#Restart waybar -waybar && killall -SIGUSR2 waybar # added since wallust sometimes not applying - # relaunch swaync sleep 0.5 swaync > /dev/null 2>&1 & @@ -36,6 +34,16 @@ swaync > /dev/null 2>&1 & # relaunch ags ags & +# Kill waybar (yet again) # added since wallust sometimes not applying +if pidof waybar >/dev/null; then + pkill waybar +fi + + +sleep 1 +#Restart waybar +waybar & + # Relaunching rainbow borders if the script exists sleep 1 if file_exists "${UserScripts}/RainbowBorders.sh"; then -- cgit v1.2.3