chezmoi/dot_config/i3/executable_screenshot.sh
2022-06-23 22:10:10 +02:00

10 lines
457 B
Bash

#!/bin/bash
# the screenshot will be saved here
TARGETDIR=$HOME/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