10 lines
466 B
Bash
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
|
|
|