--
This commit is contained in:
parent
c4b83aae54
commit
ef200ae5bb
7 changed files with 6 additions and 2 deletions
|
|
@ -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
|
||||
|
||||
|
||||
|
|
|
|||
Binary file not shown.
BIN
linux/sounds/ActionCompletedSound.wav
Normal file
BIN
linux/sounds/ActionCompletedSound.wav
Normal file
Binary file not shown.
BIN
linux/sounds/CaptureSound.wav
Normal file
BIN
linux/sounds/CaptureSound.wav
Normal file
Binary file not shown.
BIN
linux/sounds/ErrorSound.wav
Normal file
BIN
linux/sounds/ErrorSound.wav
Normal file
Binary file not shown.
BIN
linux/sounds/TaskCompletedSound.wav
Normal file
BIN
linux/sounds/TaskCompletedSound.wav
Normal file
Binary file not shown.
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Reference in a new issue