You are not logged in.
johnraff wrote:But there doesn't seem to be a way on Wayland to do a screenshot of the "active window". I use that a lot, but it seems to be very difficult to do on Wayland.
grimshot, a helper for grim and slurp...
https://packages.debian.org/unstable/grimshot
EXAMPLES
An example usage pattern is to add these bindings to your sway config:
# Screenshots:
# Super+P: Current window
# Super+Shift+p: Select area
# Super+Alt+p Current output
# Super+Ctrl+p Select a window
bindsym Mod4+p exec grimshot save active
bindsym Mod4+Shift+p exec grimshot save area
bindsym Mod4+Mod1+p exec grimshot save output
bindsym Mod4+Ctrl+p exec grimshot save windowhttps://manpages.debian.org/testing/gri … .1.en.html
It has a dependency on sway, but I think that's fine if it works with labwc and the other wlroots compositors. The sway package is pretty light (977 kB), that's a bit bigger than labwc, I think. Make it an optional package if it's an issue of size? I haven't tested this yet, but it looks promising.
I just installed grimshot and while it takes wholescreen and "select area" screenshots OK, the "active" and "window" targets don't seem to work. I guess you need to be running sway not labwc.
Maybe as XFCE said, it can't currently be done with wlroots?
I had a look at the code - it's a shell script - and it calls swaymsg to get the active window, so I guess that means sway has to be running.
Last edited by johnraff (Today 04:29:51)
...elevator in the Brain Hotel, broken down but just as well...
( a boring Japan blog (currently paused), now on Bluesky, there's also some GitStuff )
Offline
^ Bummer. I found this and it's response, it's a quick read...
https://github.com/labwc/labwc/discussions/3299
We can ask for some info from @malm. I now summon @malm. Appear!
I am very superficial, I hate everything official.
Offline