Skip to content

Instantly share code, notes, and snippets.

@drGrove
Created March 29, 2014 00:57
Show Gist options
  • Select an option

  • Save drGrove/9846276 to your computer and use it in GitHub Desktop.

Select an option

Save drGrove/9846276 to your computer and use it in GitHub Desktop.
Capscr
#!/bin/bash
timestamp="$(date +%y%m%d%H%M%S)"
targetbase="$HOME/capscr"
mkdir -p $targetbase
[ -d $targetbase ] || exit 1
import $targetbase/$timestamp.png
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment