Created
November 25, 2021 00:02
-
-
Save threeiem/a09394e235d03f4c20444f02c5221479 to your computer and use it in GitHub Desktop.
Clipboard to image/png (X powered)
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
#!/usr/bin/env bash | |
set -euo pipefail | |
TARGET=${1:-"${HOME}/clipage.$(date -I).${RANDOM}.png"} | |
xclip -selection clipboard -t image/png -o > ${TARGET} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment