-
-
Save byronmansfield/d1fb27fe657c2c54c7d8 to your computer and use it in GitHub Desktop.
Capscr [awesome]
This file contains 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
-- capture screen area | |
awful.key({ modkey, "Control" }, "p", function() awful.util.spawn(".bin/capscr") end) |
This file contains 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
#!/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