diff --git a/linux/screenrec.sh b/linux/screenrec.sh index 60d5d9b..9901bd8 100755 --- a/linux/screenrec.sh +++ b/linux/screenrec.sh @@ -12,10 +12,11 @@ else # If you hit cancel the slurp, we need to handle that. if ! screen_region=$(slurp -b '#00000090'); then notify-send -a 'Screen Recording' 'Cancelled!' + paplay $(dirname "$(realpath $0)")/sounds/ErrorSound.wav --volume 98302 exit 0 fi # Now that we've shown the area, play the screenrec sound as a trigger - paplay $(dirname "$(realpath $0)")/screenrec.wav --volume 655350 + paplay $(dirname "$(realpath $0)")/sounds/CaptureSound.wav --volume 98302 # Finally start recording wf-recorder -g "$screen_region" -f "$filename.mkv" # Convert to MP4 - mp4 breaks if you kill-9 it, but mkv doesn't. Keep benefits of both @@ -24,6 +25,8 @@ else wl-copy file://"$filename.mp4" -t text/uri-list # Now we can say the recording is done - replace the existing notif notify-send -a 'Screen Recording' 'Saved + Copied to Clipboard' + # Play a little sound to go with it :) + paplay $(dirname "$(realpath $0)")/sounds/TaskCompletedSound.wav --volume 98302 fi diff --git a/linux/screenrec.wav b/linux/screenrec.wav deleted file mode 100644 index 907ad77..0000000 Binary files a/linux/screenrec.wav and /dev/null differ diff --git a/linux/sounds/ActionCompletedSound.wav b/linux/sounds/ActionCompletedSound.wav new file mode 100644 index 0000000..6ecda7c Binary files /dev/null and b/linux/sounds/ActionCompletedSound.wav differ diff --git a/linux/sounds/CaptureSound.wav b/linux/sounds/CaptureSound.wav new file mode 100644 index 0000000..20191c9 Binary files /dev/null and b/linux/sounds/CaptureSound.wav differ diff --git a/linux/sounds/ErrorSound.wav b/linux/sounds/ErrorSound.wav new file mode 100644 index 0000000..3877d07 Binary files /dev/null and b/linux/sounds/ErrorSound.wav differ diff --git a/linux/sounds/TaskCompletedSound.wav b/linux/sounds/TaskCompletedSound.wav new file mode 100644 index 0000000..e19a75e Binary files /dev/null and b/linux/sounds/TaskCompletedSound.wav differ diff --git a/linux/upload b/linux/upload index c1e3fad..b14c094 100755 --- a/linux/upload +++ b/linux/upload @@ -6,7 +6,7 @@ USERNAME="$COPY_PARTY_USERNAME" PASSWORD="$COPY_PARTY_PASSWORD" -ROOT="https://stuff.forgeserv.cloud/Jose's%20Junk" +ROOT="https://stuff.forgeserv.cloud/Jose's%20Stuff" FILE="" while test $# -gt 0; do @@ -80,3 +80,4 @@ fileurl=$(jq -r '.fileurl' <<<"$output") echo "$fileurl" | wl-copy notify-send -a 'Uploaded to Copyparty' 'Link Copied to Clipboard!' +paplay $(dirname "$(realpath $0)")/sounds/TaskCompletedSound.wav --volume 98302