From a151dda103af298fb4af3ed381217e35b8cc97c9 Mon Sep 17 00:00:00 2001 From: Don Williams Date: Fri, 21 Nov 2025 22:28:45 -0500 Subject: Repeated gamemode cycling gets multiple waybars MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit You have to hammer on it, to get it to occr Added addtional sleep timer to allow pkill to keep up Resolves: https://github.com/JaKooLit/Hyprland-Dots/issues/870 On branch development Your branch is up to date with 'origin/development'. Changes to be committed: modified: CHANGES-v2.3.18.md modified: config/hypr/scripts/GameMode.sh modified: config/hypr/scripts/Refresh.sh --- config/hypr/scripts/Refresh.sh | 6 +++++- 1 file changed, 5 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 2e772aa9..1dd59752 100755 --- a/config/hypr/scripts/Refresh.sh +++ b/config/hypr/scripts/Refresh.sh @@ -24,6 +24,9 @@ done # added since wallust sometimes not applying killall -SIGUSR2 waybar +# Added sleep for GameMode causing multiple waybar +sleep 0.1 + # quit ags & relaunch ags #ags -q && ags & @@ -34,6 +37,7 @@ killall -SIGUSR2 waybar # some process to kill for pid in $(pidof waybar rofi swaync ags swaybg); do kill -SIGUSR1 "$pid" + sleep 0.3 done #Restart waybar @@ -52,4 +56,4 @@ if file_exists "${UserScripts}/RainbowBorders.sh"; then ${UserScripts}/RainbowBorders.sh & fi -exit 0 \ No newline at end of file +exit 0 -- cgit v1.2.3