X11 screen grabber from cmd line

Polytropon freebsd at edvax.de
Fri May 10 06:09:42 UTC 2013


On Thu, 9 May 2013 20:41:45 +0200, Matthias Apitz wrote:
> Do we have something in the ports which could do a screen shoot of $DISPLAY, but
> from the cmd line of an alpha console, and save it as PNG or JPEG?

	% xwd -out screen.xwd
	% convert screen.xwd screen.png
		-or-
	% convert screen.xwd screen.jpg

But if you've got installed ImageMagic (the "convert" command)
anyway, you can also use

	% import screen.jpg
		-or-
	% import screen.png

For a whole screen capture, "xwd -root" or "import -screen" can
be used.


-- 
Polytropon
Magdeburg, Germany
Happy FreeBSD user since 4.0
Andra moi ennepe, Mousa, ...


More information about the freebsd-questions mailing list