Created
June 2, 2017 15:52
-
-
Save Meshiest/db4fcbb8c53d28a3186e557350a946ee to your computer and use it in GitHub Desktop.
Screenshot Area on KDE/arch
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 | |
# Requires spectacle and xclip, stores last screenshot at /tmp/screenshot.png | |
# Screenshots a specified area and copies the content to clipboard | |
# Author: Meshiest | |
rm /tmp/screenshot.png | |
spectacle -rbnwo /tmp/screenshot.png | |
[[ -f /tmp/screenshot.png ]] && xclip -selection c -t image/png -i /tmp/screenshot.png |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment