What is the “fastest” way to take a screenshot of a particular window under Linux programmatically?

The language does not matter, the libraries either, I just need the fastest way to specify the window (name or descriptor).

+5
source share
3 answers

Try:

import // man import for options

Take a snapshot of my pidgin client.

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

You can specify many parameters, such as a frame or window identifier.

+6
source

see man xwd

xwd takes screenshots

+2
source

gnome-screenshot.

   gnome-screenshot --help

-w.

0

All Articles