chezmoi/dot_config/i3/executable_screenshot.sh
2020-07-13 14:31:48 +02:00

10 lines
466 B
Bash

#!/bin/bash
# the screenshot will be saved here
TARGETDIR=/home/jnieland/pictures/screenshots
# make a screenshot filename
TARGETFILE=screenshot.$(date '+%Y.%m.%d.%H.%M.%S').png
# start the process
notify-send ' Screenshot' 'Select area...' -u normal
scrot -s $TARGETDIR/$TARGETFILE -d 1 -e 'notify-send -i '$TARGETDIR/$TARGETFILE' "Screenshot" "Created file: "'$TARGETDIR/$TARGETFILE' && xclip -selection clipboard -target image/png -i '$TARGETDIR/$TARGETFILE