Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

What's the "fastest" way to take a screenshot of a specific window under Linux programatically?

Language doesn't matter, libraries either, I just need the fastest way specifying the window (title or handle).

like image 384
Mike Avatar asked Jul 21 '10 21:07

Mike


2 Answers

Try:

import // man import for options

To take a snapshot of my pidgin client.

import -screen -window Kompislista foo.jpg // Kompislista is in swedish.

You can specify a lot of options, such as frame or window id.

like image 118
Anders Avatar answered Oct 05 '22 05:10

Anders


see man xwd

xwd takes screen snapshots

like image 29
Joshua Avatar answered Oct 05 '22 04:10

Joshua