project-repo / cagebreak

Cagebreak: A Wayland Tiling Compositor Inspired by Ratpoison
MIT License
286 stars 19 forks source link

How To Take a Selection Screenshot (without layer-shell) #56

Closed VehementHam closed 1 year ago

VehementHam commented 1 year ago

Is this possible?If so, what tool or workaround is requiresd?

project-repo commented 1 year ago

Please take a look at grim. The archwiki page (https://wiki.archlinux.org/title/Screen_capture#Wayland) has some relevant information too.

VehementHam commented 1 year ago

grim requires slurp. slurp requires Layer-Shell. maim --select works, but maim is being run through Xwayland, and I prefer to avoid running Xorg applications when I can. In this case it may not make a difference, though.

project-repo commented 1 year ago

AFAIK, grim doesn't require the layer-shell protocol? According to the man page, it is based on the screencopy protocol... In any case, I can use grim in cagebreak to take screenshots even though we have not implemented the layer-shell protocol. Can you reproduce this?

VehementHam commented 1 year ago

What commands do you use?

project-repo commented 1 year ago

So for example: grim -g "200,200 100x100".

project-repo commented 1 year ago

Hi VehemntHam

Since this is an issue regarding usage and not primarily a bug in Cagebreak, we are closing it for now, seeing as it hasn't seen any activity for several days. Feel free to reopen if your issue persists.

cheers project-repo