Created
February 25, 2019 01:11
-
-
Save brightcloudy/eff479ed7a543a10c49def8e0e4d9c88 to your computer and use it in GitHub Desktop.
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 | |
if [[ $# -eq 0 ]]; then | |
MAIM_ARGS="" | |
elif [[ $# -eq 1 ]]; then | |
MAIM_ARGS=$1 | |
fi | |
FILENAME=`date '+%F-%H%M%S_maim.png'` | |
maim $MAIM_ARGS $FILENAME | |
xclip -selection clipboard -t image/png $FILENAME |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment