diff options
| author | Don Williams <don.e.williams@gmail.com> | 2025-11-14 12:10:46 -0500 |
|---|---|---|
| committer | Don Williams <don.e.williams@gmail.com> | 2025-11-14 12:10:46 -0500 |
| commit | f9e882782d23b2869cd272841af12f7e0ce2ad37 (patch) | |
| tree | c6f98317801c3c21b423f58a27c446a2149bf6c9 | |
| parent | 872b09fa88825ec5631ba3cdc21e0e717ec241ee (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
| -rwxr-xr-x | config/hypr/scripts/OverviewToggle.sh | 10 |
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 |
