aboutsummaryrefslogtreecommitdiff
path: root/env/.local/bin/screenshot.sh
blob: a3a6b1b59c234ab550dc7214c9e8509254f5f9cd (plain)
1
2
3
4
5
6
7
8
9
10
#!/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

mkdir -p $SCREENSHOTS_DIR

import $@ $FILENAME && xclip -selection clipboard -target image/png -i < $FILENAME