diff --git a/screenshot b/screenshot index cb04e68..3438a57 100755 --- a/screenshot +++ b/screenshot @@ -4,9 +4,16 @@ set -E -o pipefail shopt -s failglob export LC_ALL=C.UTF8 +PICTURES="$HOME" + +source "/etc/xdg/user-dirs.defaults" +source "$XDG_CONFIG_HOME/user-dirs.dirs" + +mkdir -p "$PICTURES" + grim -g "$(slurp -o -r -c '#ff0000ff')" - \ | satty \ --filename - \ --fullscreen \ --initial-tool "crop" \ - --output-filename "$HOME/Media/Pictures/Screenshots/satty-$(date '+%Y%m%d-%H:%M:%S').png" + --output-filename "$PICTURES/Screenshots/satty-$(date '+%Y%m%d-%H:%M:%S').png"