X11 screen grabber from cmd line

illoai at gmail.com illoai at gmail.com
Thu May 9 21:39:04 UTC 2013


On 9 May 2013 17:33, illoai at gmail.com <illoai at gmail.com> wrote:

>
> On 9 May 2013 14:41, Matthias Apitz <guru at unixarea.de> wrote:
>
>>
>> Hello,
>>
>> 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?
>> Thx
>>
>>         matthias
>>
>
> I use a simple script:
> > cat scripts/screenshot
> #!/bin/sh
> xwd -root | xwdtopnm | pnmtopng > screenshot_${1}.png
>
> which uses x11/xwd & graphics/netpbm
>
> --
> --
>

I just realised you might mean the text console, in which case
ignore that.  Look at the -p & -P options to vidcontrol(1).

-- 
--


More information about the freebsd-questions mailing list