Skip to content

SLURP_ARGS doesn't function when more than one argument is specified #120

@mirrorcult

Description

@mirrorcult

Program

grimblast

Maintainers of the program

@fufexan

Bug or Regression?

Bug

Description

simply put, the code for passing custom cli args to slurp does not work:

GEOM=$(echo "$WINDOWS" | jq -r '.[] | "\(.at[0]),\(.at[1]) \(.size[0])x\(.size[1])"' | slurp $SLURP_ARGS)

fairly confident this never worked as bash just doesn't let you do this -- any argument after the first gets dropped when you try to pass it like this

image

as you can see here, only the first argument -d (show dimensions) is working, all of the others are nonfunctional.

How to reproduce

  1. set SLURP_ARGS with more than one argument separated by spaces
  2. see that any arguments after the first do not apply

Hyprland crash reports, program logs, images, videos

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions