aboutsummaryrefslogtreecommitdiffstats
path: root/scripts/bin
diff options
context:
space:
mode:
authorjason2023-10-07 10:15:29 -0600
committerjason2023-10-07 10:15:29 -0600
commit067dc98e377610ceb9fac84222dd2051a7973d75 (patch)
tree0542fae609bf750f77e71fbc6d82081f34882aa3 /scripts/bin
parent53f807186d90b98645d684dfc681f166e9326ae0 (diff)
downloaddotfiles-067dc98e377610ceb9fac84222dd2051a7973d75.tar.gz
dotfiles-067dc98e377610ceb9fac84222dd2051a7973d75.zip
add dunst; enable notification when uploading screenshots
Diffstat (limited to 'scripts/bin')
-rwxr-xr-xscripts/bin/linode-uploader2
1 files changed, 2 insertions, 0 deletions
diff --git a/scripts/bin/linode-uploader b/scripts/bin/linode-uploader
index 5ae751e..5cfe2d1 100755
--- a/scripts/bin/linode-uploader
+++ b/scripts/bin/linode-uploader
@@ -23,6 +23,7 @@ SIGNATURE=$(echo -en ${STRING_TO_SIGN} | openssl sha1 -hmac ${SECRET_KEY} -binar
23 23
24HOST="eu-central-1.linodeobjects.com" 24HOST="eu-central-1.linodeobjects.com"
25 25
26notify-send -u low -t 2000 -a Flameshot Uploading... "Uploading screenshot"
26curl -X PUT -T "${file}" \ 27curl -X PUT -T "${file}" \
27 -H "Date: ${DATE}" \ 28 -H "Date: ${DATE}" \
28 -H "Content-Type: ${CONTENT_TYPE}" \ 29 -H "Content-Type: ${CONTENT_TYPE}" \
@@ -30,4 +31,5 @@ curl -X PUT -T "${file}" \
30 -H "Authorization: AWS ${ACCESS_KEY}:${SIGNATURE}" \ 31 -H "Authorization: AWS ${ACCESS_KEY}:${SIGNATURE}" \
31 https://${HOST}${RESOURCE} 32 https://${HOST}${RESOURCE}
32echo "${VANITY_URL}/${filename}" | tr -d '\n' | xsel -b 33echo "${VANITY_URL}/${filename}" | tr -d '\n' | xsel -b
34notify-send -u low -t 2000 -a Flameshot Uploaded... "Successfully uploaded screenshot"
33 35