Skip to content

Instantly share code, notes, and snippets.

@drGrove
Created March 13, 2014 16:37
Show Gist options
  • Save drGrove/9531957 to your computer and use it in GitHub Desktop.
Save drGrove/9531957 to your computer and use it in GitHub Desktop.
Capscr [awesome]
-- capture screen area
awful.key({ modkey, "Control" }, "p", function() awful.util.spawn(".bin/capscr") end)
#!/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