From d923cfb5cfcb4c04fae68dd76010335b0e814283 Mon Sep 17 00:00:00 2001 From: funman300 Date: Tue, 28 Apr 2026 11:28:50 -0700 Subject: [PATCH] screenshot: fix action separator and add Pictures dir guard --- scripts/screenshot.sh | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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