From 4c29f9e78d4d1e7a46e44045aa894408641189ed Mon Sep 17 00:00:00 2001 From: Sipping <82241081+Sipper1236@users.noreply.github.com> Date: Tue, 16 Apr 2024 01:20:11 +0000 Subject: [PATCH] Update GameMode.sh --- config/hypr/scripts/GameMode.sh | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) diff --git a/config/hypr/scripts/GameMode.sh b/config/hypr/scripts/GameMode.sh index 7405140..9604f1d 100755 --- a/config/hypr/scripts/GameMode.sh +++ b/config/hypr/scripts/GameMode.sh @@ -16,7 +16,14 @@ if [ "$HYPRGAMEMODE" = 1 ] ; then keyword general:gaps_out 0;\ keyword general:border_size 1;\ keyword decoration:rounding 0" - swww kill + swww kill + + _ps=(waybar rofi swaync cava) +for _prs in "${_ps[@]}"; do + if pidof "${_prs}" >/dev/null; then + pkill "${_prs}" + fi +done notify-send -e -u low -i "$notif" "gamemode enabled. All animations off" exit else @@ -24,7 +31,7 @@ else sleep 0.1 ${SCRIPTSDIR}/PywalSwww.sh sleep 0.5 - ${SCRIPTSDIR}/Refresh.sh + ${SCRIPTSDIR}/Refresh.sh notify-send -e -u normal -i "$notif" "gamemode disabled. All animations normal" exit fi