emersion / slurp

Select a region in a Wayland compositor
https://wayland.emersion.fr/slurp
MIT License
956 stars 57 forks source link

[Feature] Capture whole screen by keypress #108

Open Froloket64 opened 2 years ago

Froloket64 commented 2 years ago

It would be nice to have a feature to capture the whole screen by pressing a specific key (let's say f or Return) when the selection pops up.

I'm almost done with a solution, but I have trouble finding user's display resolution through API.

matejdro commented 1 week ago

Maybe just clicking on the display would select the whole screen by default? Currently it cancels selection which seems a bit counter intuitive

tmccombs commented 1 week ago

Maybe just clicking on the display would select the whole screen

That's what the "-o" option does

matejdro commented 1 week ago

But -o option then always selects whole display. It does not give me an option to either select a region or to select whole display.

tmccombs commented 1 week ago

But -o option then always selects whole display. It does not give me an option to either select a region or to select whole display.

No, by default if you use the the -o option, then dragging a region will select the region, not the whole output. The behavior you are describing would require the -r option as well.

matejdro commented 1 week ago

Doh, thank you, it appears I have mixed the flags.