You are not logged in.

#21 Today 04:24:14

johnraff
nullglob
From: Nagoya, Japan
Registered: 2015-09-09
Posts: 13,377
Website

Re: bunsen-configs-wayland-plugin available for testing

hhh wrote:
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 window

https://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 )

Introduction to the Bunsenlabs Boron Desktop

Offline

#22 Today 04:31:09

hhh
Miss Grace Jones
From: Jamaica/Paris/NY
Registered: 2015-09-17
Posts: 17,346
Website

Re: bunsen-configs-wayland-plugin available for testing

^ 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

Board footer

Powered by FluxBB