Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

"Bad geometry" for use with slurp #127

Closed
twwn opened this issue Dec 8, 2020 · 5 comments
Closed

"Bad geometry" for use with slurp #127

twwn opened this issue Dec 8, 2020 · 5 comments

Comments

@twwn
Copy link

twwn commented Dec 8, 2020

Trying wf-recorder -g $(slurp) only leads to Bad geometry: 0,0, capturing whole output instead. with whatever region selected (the two numbers varying accordingly ofc), including the entire screen (a single QHD one).

edit: slurp on its own seems to return its ordinary format: 0,0 2560x1440, 520,482 948x451, etc.

edit2: Uhm, awkward. C&Ping slurp's output directly instead of via variable works as intended‽

[Arch, sway 1.5.1 / wlroots 0.12.0]

@twwn
Copy link
Author

twwn commented Dec 8, 2020

Stupid me, I missed quoting the variable. Sorry for the noise.

@twwn twwn closed this as completed Dec 8, 2020
@magdesign
Copy link

i have the feeling that when trying to set the geometry with a variable, which is executed prior with slurp, wf-recorder will not catch the geometry, even with added double quotes....

@o-alquimista
Copy link
Contributor

Stupid me, I missed quoting the variable. Sorry for the noise.

It's not your fault. The man page wf-recorder(1) has it unquoted in its examples:

EXAMPLES

To select a specific part of the screen you can either use --g geometry or use https://github.com/emersion/slurp for interactive selection of the screen area that will be recorded:

$ wf-recorder -g $(slurp)

@soreau
Copy link
Collaborator

soreau commented Dec 15, 2024

PR's welcome. 👍

@o-alquimista
Copy link
Contributor

Created PR #290

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants