Created
November 28, 2015 16:42
-
-
Save jeremija/aea9b8793751fab69a95 to your computer and use it in GitHub Desktop.
Create a screenshot to clipboard
This file contains hidden or 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 | |
| # takes a screenshot of a window or region and copy to clipboard as png | |
| # | |
| # prerequisites: | |
| # - maim | |
| # - slop | |
| # - xclip with -target support (available in AUR) | |
| # | |
| # @author https://github.com/jeremija | |
| maim --format=png --color=0.4,0.2,0.2,0.3 --highlight --nodecorations --select \ | |
| /dev/stdout | xclip -selection clipboard -target image/png |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment