diff options
| author | Don Williams <Don.e.williams@gmail.com> | 2025-11-21 22:28:45 -0500 |
|---|---|---|
| committer | Don Williams <Don.e.williams@gmail.com> | 2025-11-21 22:28:45 -0500 |
| commit | a151dda103af298fb4af3ed381217e35b8cc97c9 (patch) | |
| tree | aac1998b2510bc1d88b9231d7efc0f9e83dc8e73 /config/hypr/scripts/Refresh.sh | |
| parent | f69b75530ff70492efd8ce8fd6b5fd5df488dd40 (diff) | |
Repeated gamemode cycling gets multiple waybars
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
Diffstat (limited to 'config/hypr/scripts/Refresh.sh')
| -rwxr-xr-x | config/hypr/scripts/Refresh.sh | 6 |
1 files changed, 5 insertions, 1 deletions
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 |
