dotfiles/scripts/bin/flameshot-bb

14 lines
443 B
Bash
Executable file

#!/bin/bash
TEMP="/tmp/flameshot_$(date +%s).png"
flameshot gui -p "$TEMP"
if [[ -f "$TEMP" ]]; then
convert "$TEMP" \
-bordercolor '#DC143C' -border 3 \
-bordercolor white -border 12 \
-bordercolor '#333333' -border 1 \
\( +clone -background black -shadow 80x5+8+8 \) \
+swap -background white -layers merge +repage \
~/Pictures/Screenshots/bb_$(date +%Y%m%d_%H%M%S).png
rm "$TEMP"
fi