Last active
December 24, 2015 02:59
-
-
Save salemgolemugoo/6734593 to your computer and use it in GitHub Desktop.
Bring window to foreground through ssh and make screenshot
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#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