From dbb6a954e125fde962dc77ddc961d23075dc1bb8 Mon Sep 17 00:00:00 2001 From: Mara Bos Date: Tue, 12 May 2020 22:17:42 +0200 Subject: [PATCH] Don't capture cursor in screenshot. Adds `-u` to maim to not capture the cursor. However, maim still captures the cursor sometimes even with -u, so this also switches the order to prefer `import` over `maim`, which does not do this. --- contrib/rushlink | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/contrib/rushlink b/contrib/rushlink index 895a575..886abeb 100755 --- a/contrib/rushlink +++ b/contrib/rushlink @@ -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)