Skip to content

Instantly share code, notes, and snippets.

@akrabat
Created June 8, 2016 11:39
Show Gist options
  • Save akrabat/e30e8a2682e7e4f8600faa48e564c707 to your computer and use it in GitHub Desktop.
Save akrabat/e30e8a2682e7e4f8600faa48e564c707 to your computer and use it in GitHub Desktop.
#!/bin/bash
# Capture currently focussed window using https://github.com/vorgos/QuickGrab
#
# Run screenshot.sh, then cmd+tab to window you want to capture within 2 seconds.
# Screenshot file is then stored on your desktop
sleep 2; quickgrab -file ~/Desktop/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