Created
October 20, 2022 21:23
-
-
Save mmguero/95f62f32b44083913708e0d7929ad134 to your computer and use it in GitHub Desktop.
take a screenshot using
This file contains hidden or 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
#!/usr/bin/env bash | |
# takes a screenshot of the currently active window | |
# https://gist.github.com/mmguero/95f62f32b44083913708e0d7929ad134 | |
import -window "$(xdotool getwindowfocus getactivewindow)" ./screenshot-"$(date +%Y%m%d_%H%M%S)".png |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment