From f33d720cb67c3b7c35f57475bc7370af3b223b77 Mon Sep 17 00:00:00 2001 From: JaKooLit Date: Wed, 8 Jan 2025 22:31:54 +0900 Subject: fix waybar-wallust colors not applying battery not charging waybar animation changes to reduce cpu usage as per wiki --- config/hypr/scripts/Refresh.sh | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'config/hypr/scripts/Refresh.sh') diff --git a/config/hypr/scripts/Refresh.sh b/config/hypr/scripts/Refresh.sh index f5f91c34..1aa63378 100755 --- a/config/hypr/scripts/Refresh.sh +++ b/config/hypr/scripts/Refresh.sh @@ -27,7 +27,7 @@ ags -q sleep 1 #Restart waybar -waybar & +waybar && killall -SIGUSR2 waybar # added since wallust sometimes not applying # relaunch swaync sleep 0.5 @@ -43,4 +43,5 @@ if file_exists "${UserScripts}/RainbowBorders.sh"; then fi + exit 0 \ No newline at end of file -- cgit v1.2.3 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