diff --git a/scripts/screenshot.sh b/scripts/screenshot.sh index 24ec4cc..8d23f98 100755 --- a/scripts/screenshot.sh +++ b/scripts/screenshot.sh @@ -2,6 +2,8 @@ FILE="$HOME/Pictures/screenshot-$(date +%s).png" +mkdir -p "$HOME/Pictures" + # Exit silently if the user cancels region selection if ! grim -g "$(slurp)" "$FILE"; then exit 0 @@ -13,7 +15,7 @@ action=$(notify-send "Screenshot captured" \ "Saved ยท Copied to clipboard" \ --hint="string:image-path:$FILE" \ --expire-time=10000 \ - --action="actions=Actions") + --action="actions:Actions") [[ "$action" != "actions" ]] && exit 0