launch.sh: lower delay and fix flags
Signed-off-by: Myned <dev@bjork.tech>
This commit is contained in:
parent
9d894c53fd
commit
00b473bfcc
1 changed files with 2 additions and 2 deletions
|
@ -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
|
||||||
|
|
Loading…
Reference in a new issue