1
1
Fork 0

launch.sh: lower delay and fix flags

Signed-off-by: Myned <dev@bjork.tech>
This commit is contained in:
Myned 2024-11-12 14:26:48 -06:00
parent 9d894c53fd
commit 00b473bfcc
Signed by: myned
GPG key ID: C7224454F7881A34

View file

@ -27,7 +27,7 @@ eval "$(argc --argc-eval "$0" "$@")"
if [[ "${argc_empty:-}" ]]; then if [[ "${argc_empty:-}" ]]; then
# Delay to mitigate on-created-empty window race condition # Delay to mitigate on-created-empty window race condition
sleep 1 sleep 0.5
# Silently exit if window exists on specified workspace # Silently exit if window exists on specified workspace
if hyprctl -j clients | jq -r .[].workspace.name | grep "${argc_workspace:-}"; then if hyprctl -j clients | jq -r .[].workspace.name | grep "${argc_workspace:-}"; then
@ -39,7 +39,7 @@ fi
count="$(hyprctl -j clients | jq length)" count="$(hyprctl -j clients | jq length)"
# Launch application # Launch application
hyprctl dispatch exec "${argc_commands[@]:-}" hyprctl dispatch exec -- "${argc_commands[@]:-}"
# Poll for next window # Poll for next window
c=0 c=0