From dc5a01f27d462fe446618ada4b2e9d840b363a2c Mon Sep 17 00:00:00 2001 From: Erin Kinsley Date: Fri, 28 Jul 2017 03:08:10 +0100 Subject: [PATCH] Prioritise maim(1) over scrot(1). If a user has maim(1) installed as well as scrot(1), they likely wish to use the former instead of the latter, as it is less commonly installed (and is even described as "supposed to be an improved scrot"). --- neofetch | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/neofetch b/neofetch index a455c0b5..de136738 100755 --- a/neofetch +++ b/neofetch @@ -2702,12 +2702,12 @@ scrot_program() { if [[ "$scrot_cmd" != "auto" ]] && type -p "$scrot_cmd" >/dev/null; then scrot_program=("$scrot_cmd") - elif type -p scrot >/dev/null; then - scrot_program=(scrot) - elif type -p maim >/dev/null; then scrot_program=(maim) + elif type -p scrot >/dev/null; then + scrot_program=(scrot) + elif type -p import >/dev/null && [[ "$os" != "Mac OS X" ]]; then scrot_program=(import -window root)