~anjan/public-inbox

Fixed the fullscreen screenshot on sway/wayland, now it asks for the resolution and makes the shot v1 PROPOSED

magdesign: 1
 Fixed the fullscreen screenshot on sway/wayland, now it asks for the resolution and makes the shot

 1 files changed, 2 insertions(+), 2 deletions(-)
Export patchset (mbox)
How do I use this?

Copy & paste the following snippet into your terminal to import this patchset into git:

curl -s https://lists.sr.ht/~anjan/public-inbox/patches/49227/mbox | git am -3
Learn more about email & git

[PATCH] Fixed the fullscreen screenshot on sway/wayland, now it asks for the resolution and makes the shot Export this patch

---
 scripts/appscripts/sxmo_screenshot.sh | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/scripts/appscripts/sxmo_screenshot.sh b/scripts/appscripts/sxmo_screenshot.sh
index 8b41453..64a08f0 100755
--- a/scripts/appscripts/sxmo_screenshot.sh
+++ b/scripts/appscripts/sxmo_screenshot.sh
@@ -21,8 +21,8 @@ sway_screenshot() {
	check_command grim || exit_msg "grim command must be available to take a screenshot."
	check_command slurp || exit_msg "slurp command must be available to make a selection."

	area="$(slurp -o)"
	grim -g "$area" "$1"
	area="$(swaymsg -t get_outputs | jq -r '.[0].rect | "\(.width)x\(.height)"')"
	grim -g "0,0 $area" "$1"
}

xorg_screenshot() {
-- 
2.43.0
Please send this to the sxmo-devel mailing list:

https://lists.sr.ht/~mil/sxmo-devel

Thank you!
Anja