blob: 66d9c5ca89fbb827dcff9d1c7d24691bef6a68fe (
plain)
1
2
3
4
5
6
7
8
9
10
11
|
#!/bin/sh
# Screenshot via ImageMagick
# Passes all args down to import command
SCREENSHOTS_DIR=$HOME/Pictures/Screenshots
FILENAME=$SCREENSHOTS_DIR/$(date +%F_%H-%M-%S).png
echo "$@"
mkdir -p $SCREENSHOTS_DIR
import $@ $FILENAME && xclip -selection clipboard -target image/png -i < $FILENAME
|