Skip to content

Instantly share code, notes, and snippets.

@byronmansfield
Forked from drGrove/awesomeConfig
Created October 31, 2015 02:42
Show Gist options
  • Save byronmansfield/d1fb27fe657c2c54c7d8 to your computer and use it in GitHub Desktop.
Save byronmansfield/d1fb27fe657c2c54c7d8 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