aboutsummaryrefslogtreecommitdiffstats
path: root/config/hypr/scripts
diff options
context:
space:
mode:
authorDon Williams <don.e.williams@gmail.com>2025-11-14 12:10:46 -0500
committerDon Williams <don.e.williams@gmail.com>2025-11-14 12:10:46 -0500
commitf9e882782d23b2869cd272841af12f7e0ce2ad37 (patch)
treec6f98317801c3c21b423f58a27c446a2149bf6c9 /config/hypr/scripts
parent872b09fa88825ec5631ba3cdc21e0e717ec241ee (diff)
hyprctl dispatch returned success w/o QS installed
On branch development Your branch is up to date with 'origin/development'. Changes to be committed: modified: config/hypr/scripts/OverviewToggle.sh
Diffstat (limited to 'config/hypr/scripts')
-rwxr-xr-xconfig/hypr/scripts/OverviewToggle.sh10
1 files changed, 7 insertions, 3 deletions
diff --git a/config/hypr/scripts/OverviewToggle.sh b/config/hypr/scripts/OverviewToggle.sh
index 21c2da34..2737234c 100755
--- a/config/hypr/scripts/OverviewToggle.sh
+++ b/config/hypr/scripts/OverviewToggle.sh
@@ -5,11 +5,15 @@
set -euo pipefail
# 1) Try Quickshell via Hyprland global dispatch (works if QS is running and listening)
-if hyprctl dispatch global quickshell:overviewToggle >/dev/null 2>&1; then
- exit 0
+# Only attempt this if a Quickshell process is running; otherwise Hyprland will
+# still return success for the dispatch and we'll never fall back to AGS.
+if pgrep -x quickshell >/dev/null 2>&1; then
+ if hyprctl dispatch global quickshell:overviewToggle >/dev/null 2>&1; then
+ exit 0
+ fi
fi
-# If QS isn't running, try starting it and retry once
+# If QS isn't running, but the CLI exists, try starting it and retry once
if command -v qs >/dev/null 2>&1; then
qs >/dev/null 2>&1 &
sleep 0.6
send patches to the email below
yukais@pinapelz.com
include the subject [PATCH repo_name]
pinapelz.com
homepage