From ef2a5cf5a7a7c35c75d938d896e11f6f62ef651b Mon Sep 17 00:00:00 2001 From: Fierelier Date: Thu, 25 Aug 2022 11:06:24 +0200 Subject: [PATCH] Make sure the output directory exists --- mods/graphical-general/data/usr/local/bin/wdvn-screenshot | 1 + 1 file changed, 1 insertion(+) diff --git a/mods/graphical-general/data/usr/local/bin/wdvn-screenshot b/mods/graphical-general/data/usr/local/bin/wdvn-screenshot index 0b1c70c..99f7d8f 100755 --- a/mods/graphical-general/data/usr/local/bin/wdvn-screenshot +++ b/mods/graphical-general/data/usr/local/bin/wdvn-screenshot @@ -2,6 +2,7 @@ set -e DIR="$HOME/Pictures/Screenshots" FILE="$(date --utc "+%Y.%m.%d-%H.%M.%S").png" +mkdir -p "$DIR" scrot --freeze --select "$DIR/$FILE" xclip -selection clipboard -t image/png -i "$DIR/$FILE" notify-send "wdvn-screenshot" "Saved. Copied image to clipboard." -t 2000 --icon="insert-image"