Adding sounds to version control, added missing sound to scrot.sh
This commit is contained in:
parent
cdd023166d
commit
d4b0c29917
|
@ -1,4 +1,6 @@
|
||||||
# ~/.local/bin
|
# ~/.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
|
#!/bin/sh
|
||||||
|
|
||||||
remote="https://boop.icu"
|
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)
|
url=$(curl -F"file=@$1" $remote)
|
||||||
echo "$url" | xsel -ib
|
echo "$url" | xsel -ib
|
||||||
|
|
|
@ -20,8 +20,8 @@
|
||||||
# TODO: Autodetect mpv and boop.sh to make them optional
|
# TODO: Autodetect mpv and boop.sh to make them optional
|
||||||
# TODO: Figure out how to capture a specific monitor, not just main
|
# TODO: Figure out how to capture a specific monitor, not just main
|
||||||
|
|
||||||
screendir="$HOME/Screenshots/"
|
screendir="$HOME/Nextcloud/Screenshots/"
|
||||||
sound="$HOME/.local/share/sounds/shutter.ogg"
|
sound="${HOME}/src/local-bin/sounds/shutter.ogg"
|
||||||
filename="$(date +'%Y%m%d_%H%M%S').png"
|
filename="$(date +'%Y%m%d_%H%M%S').png"
|
||||||
resolution="1920x1080"
|
resolution="1920x1080"
|
||||||
|
|
||||||
|
@ -34,5 +34,6 @@ if [[ ${1} == "-a" ]]; then
|
||||||
else
|
else
|
||||||
scrot $1 $filename
|
scrot $1 $filename
|
||||||
fi
|
fi
|
||||||
|
mpv $sound
|
||||||
$HOME/.local/bin/boop.sh "$screendir$filename"
|
$HOME/.local/bin/boop.sh "$screendir$filename"
|
||||||
|
|
||||||
|
|
Binary file not shown.
Binary file not shown.
Loading…
Reference in New Issue