Updating boop and scrot

This commit is contained in:
Siina Mashek 2020-12-20 20:30:34 +02:00 committed by Siina Maček
parent 7cecc7db74
commit 0fbac556b8
2 changed files with 6 additions and 5 deletions

View File

@ -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

View File

@ -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"