diff options
Diffstat (limited to 'scripts/.local/bin/screenshot.sh')
-rwxr-xr-x | scripts/.local/bin/screenshot.sh | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/scripts/.local/bin/screenshot.sh b/scripts/.local/bin/screenshot.sh new file mode 100755 index 0000000..66d9c5c --- /dev/null +++ b/scripts/.local/bin/screenshot.sh @@ -0,0 +1,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 |