Merge pull request 'Don't capture cursor in screenshot.' (#55) from mara/rushlink:master into master

This commit is contained in:
Daan Sprenkels 2020-05-21 20:02:41 +02:00
commit 5a5a0dc5ec
1 changed files with 4 additions and 4 deletions

View File

@ -44,12 +44,12 @@ del() {
}
screenshot() {
if command -v maim >/dev/null 2>&1; then
CMD="maim -ks"
elif command -v import >/dev/null 2>&1; then
if command -v import >/dev/null 2>&1; then
CMD="import png:-"
elif command -v maim >/dev/null 2>&1; then
CMD="maim -uks"
else
echo "Neither maim nor import were found. One of these is needed to make screenshots." >&2
echo "Neither import (imagemagick) nor maim were found. One of these is needed to make screenshots." >&2
exit 1
fi
FILE=$(mktemp)