Skip to content

Instantly share code, notes, and snippets.

@salemgolemugoo
Last active December 24, 2015 02:59
Show Gist options
  • Save salemgolemugoo/6734593 to your computer and use it in GitHub Desktop.
Save salemgolemugoo/6734593 to your computer and use it in GitHub Desktop.
Bring window to foreground through ssh and make screenshot
#Get list of windows ids
wmctrl -l
#Save screenshot
DISPLAY=:0.0 import -window "WINDOW_ID" /tmp/shot.png
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment