From 00b473bfcca754b24911d7befd7c12fef53ff132 Mon Sep 17 00:00:00 2001 From: Myned Date: Tue, 12 Nov 2024 14:26:48 -0600 Subject: [PATCH] launch.sh: lower delay and fix flags Signed-off-by: Myned --- options/custom/scripts/launch.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/options/custom/scripts/launch.sh b/options/custom/scripts/launch.sh index 19c2f42..139d86a 100644 --- a/options/custom/scripts/launch.sh +++ b/options/custom/scripts/launch.sh @@ -27,7 +27,7 @@ eval "$(argc --argc-eval "$0" "$@")" if [[ "${argc_empty:-}" ]]; then # Delay to mitigate on-created-empty window race condition - sleep 1 + sleep 0.5 # Silently exit if window exists on specified workspace if hyprctl -j clients | jq -r .[].workspace.name | grep "${argc_workspace:-}"; then @@ -39,7 +39,7 @@ fi count="$(hyprctl -j clients | jq length)" # Launch application -hyprctl dispatch exec "${argc_commands[@]:-}" +hyprctl dispatch exec -- "${argc_commands[@]:-}" # Poll for next window c=0