Updating boop and scrot
This commit is contained in:
parent
7cecc7db74
commit
0fbac556b8
|
@ -1,9 +1,9 @@
|
|||
#!/bin/sh
|
||||
|
||||
remote="https://boop.icu"
|
||||
sound="${HOME}/src/local-bin/sounds/success.ogg"
|
||||
sound="$HOME/Projects/local-bin/sounds/success.ogg"
|
||||
|
||||
url=$(curl -F"file=@$1" $remote)
|
||||
echo "$url" | xsel -ib
|
||||
echo "$url" | tr -d '\n' | xsel -ib > /dev/null 2>&1 || echo "please install xsel"
|
||||
|
||||
mpv $sound
|
||||
|
|
|
@ -18,8 +18,8 @@
|
|||
# TODO: Autodetect mpv and boop.sh to make them optional
|
||||
# TODO: Figure out how to capture a specific monitor, not just main
|
||||
|
||||
screendir="/data/nextcloud/Screenshots/"
|
||||
sound="${HOME}/src/local-bin/sounds/shutter.ogg"
|
||||
screendir="$HOME/Screenshots/"
|
||||
sound="$HOME/Projects/local-bin/sounds/shutter.ogg"
|
||||
filename="$(date +'%Y%m%d_%H%M%S').png"
|
||||
resolution="1920x1080"
|
||||
args="-m 9 -u"
|
||||
|
@ -31,7 +31,8 @@ if [[ ${1} == "--main" ]]; then
|
|||
else
|
||||
args="${args} ${1}"
|
||||
fi
|
||||
maim -B $args $filename
|
||||
|
||||
maim -B $args $filename > /dev/null 2>&1 || echo "please install maim"
|
||||
|
||||
mpv $sound
|
||||
$HOME/.local/bin/boop.sh "$screendir$filename"
|
||||
|
|
Loading…
Reference in New Issue