diff --git a/README.md b/README.md index 0d09bb3..2aa8c74 100644 --- a/README.md +++ b/README.md @@ -1,4 +1,6 @@ # ~/.local/bin +## Credits -* `scrot.sh`: wrapper for `scrot` to move screenshots to a custom folder +* [success.ogg](https://freesound.org/people/GabrielAraujo/sounds/242501/): CC0 Gabriel Araujo (FreeSound) +* [shutter.ogg](https://freesound.org/people/uEffects/sounds/207865/): CC0 uEffects (FreeSound) diff --git a/bin/boop.sh b/bin/boop.sh index adb0454..f97d41f 100755 --- a/bin/boop.sh +++ b/bin/boop.sh @@ -1,7 +1,7 @@ #!/bin/sh remote="https://boop.icu" -sound="${HOME}/.local/share/sounds/success.ogg" +sound="${HOME}/src/local-bin/sounds/success.ogg" url=$(curl -F"file=@$1" $remote) echo "$url" | xsel -ib diff --git a/bin/scrot.sh b/bin/scrot.sh index 8058603..95230ea 100755 --- a/bin/scrot.sh +++ b/bin/scrot.sh @@ -20,8 +20,8 @@ # TODO: Autodetect mpv and boop.sh to make them optional # TODO: Figure out how to capture a specific monitor, not just main -screendir="$HOME/Screenshots/" -sound="$HOME/.local/share/sounds/shutter.ogg" +screendir="$HOME/Nextcloud/Screenshots/" +sound="${HOME}/src/local-bin/sounds/shutter.ogg" filename="$(date +'%Y%m%d_%H%M%S').png" resolution="1920x1080" @@ -34,5 +34,6 @@ if [[ ${1} == "-a" ]]; then else scrot $1 $filename fi +mpv $sound $HOME/.local/bin/boop.sh "$screendir$filename" diff --git a/sounds/shutter.ogg b/sounds/shutter.ogg new file mode 100644 index 0000000..301ca9b Binary files /dev/null and b/sounds/shutter.ogg differ diff --git a/sounds/success.ogg b/sounds/success.ogg new file mode 100644 index 0000000..74896ce Binary files /dev/null and b/sounds/success.ogg differ