diff options
| author | jason | 2023-10-07 10:15:29 -0600 |
|---|---|---|
| committer | jason | 2023-10-07 10:15:29 -0600 |
| commit | 067dc98e377610ceb9fac84222dd2051a7973d75 (patch) | |
| tree | 0542fae609bf750f77e71fbc6d82081f34882aa3 /scripts/bin | |
| parent | 53f807186d90b98645d684dfc681f166e9326ae0 (diff) | |
| download | dotfiles-067dc98e377610ceb9fac84222dd2051a7973d75.tar.gz dotfiles-067dc98e377610ceb9fac84222dd2051a7973d75.zip | |
add dunst; enable notification when uploading screenshots
Diffstat (limited to 'scripts/bin')
| -rwxr-xr-x | scripts/bin/linode-uploader | 2 |
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 | ||
| 24 | HOST="eu-central-1.linodeobjects.com" | 24 | HOST="eu-central-1.linodeobjects.com" |
| 25 | 25 | ||
| 26 | notify-send -u low -t 2000 -a Flameshot Uploading... "Uploading screenshot" | ||
| 26 | curl -X PUT -T "${file}" \ | 27 | curl -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} |
| 32 | echo "${VANITY_URL}/${filename}" | tr -d '\n' | xsel -b | 33 | echo "${VANITY_URL}/${filename}" | tr -d '\n' | xsel -b |
| 34 | notify-send -u low -t 2000 -a Flameshot Uploaded... "Successfully uploaded screenshot" | ||
| 33 | 35 | ||