How do I take in-qube screenshots?

Here’s a generic script for dom0 that will identify the focused qube.

#!/bin/bash
ID=`xdotool getwindowfocus`
QUBE=`xprop _QUBES_VMNAME -id $ID|cut -f2 -d\" `
if [[ "$QUBE" == "_QUBES_VMNAME:  not found." ]]; then
  exit
else
# Do something with $QUBE
fi

In Debian, install the x11-apps package.
Then you can run :
xwd| xwdtopnnm| pnmtopng > screenshot.png
This will make the pointer in to a cross hair so you can select the window
you want.

So combine these two, link the script to a keyboard shortcut, and that
will do exactly what you want.
You’ll need to make the file name for the screenshot variable, of
course.

I never presume to speak for the Qubes team.
When I comment in the Forum or in the mailing lists I speak for myself.
2 Likes