From f7cbf36c18f0fde1b6c4619fa7d469547be4ea65 Mon Sep 17 00:00:00 2001 From: c0dev0id Date: Sun, 16 Apr 2023 19:12:26 +0200 Subject: [PATCH] Update 2023-04-16 19:12 OpenBSD/amd64-mini --- .bin/sshot | 3 +++ 1 file changed, 3 insertions(+) diff --git a/.bin/sshot b/.bin/sshot index dfa0663..05dd09f 100755 --- a/.bin/sshot +++ b/.bin/sshot @@ -11,6 +11,8 @@ _filename="$(date "+%Y-%m-%d_%H-%M-%S")-sshot.png" _file_tmp="/tmp/${_filename}" _file_out="${HOME}/.screenshots/${_filename}" +mkdir -p "${HOME}/.screenshots" + flameshot gui -p "${_file_tmp}" test -f "${_file_tmp}" || exit 1 @@ -22,5 +24,6 @@ mv "${_file_tmp}" "${_file_out}" scp "${_file_out}" "sdk@codevoid.de:/home/www/htdocs/gopher/p/${_filename}" printf '%s' "https://codevoid.de/I/p/${_filename}" | xclip +echo "$_file_out" notify-send "https://codevoid.de/I/p/${_filename}"