Adding sounds to version control, added missing sound to scrot.sh
This commit is contained in:
parent
cdd023166d
commit
d4b0c29917
5 changed files with 7 additions and 4 deletions
|
@ -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)
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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"
|
||||
|
||||
|
|
BIN
sounds/shutter.ogg
Normal file
BIN
sounds/shutter.ogg
Normal file
Binary file not shown.
BIN
sounds/success.ogg
Normal file
BIN
sounds/success.ogg
Normal file
Binary file not shown.
Loading…
Reference in a new issue