mirror of
https://github.com/dylanaraps/neofetch.git
synced 2025-10-04 17:09:21 +00:00
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").
This commit is contained in:
6
neofetch
6
neofetch
@@ -2702,12 +2702,12 @@ scrot_program() {
|
|||||||
if [[ "$scrot_cmd" != "auto" ]] && type -p "$scrot_cmd" >/dev/null; then
|
if [[ "$scrot_cmd" != "auto" ]] && type -p "$scrot_cmd" >/dev/null; then
|
||||||
scrot_program=("$scrot_cmd")
|
scrot_program=("$scrot_cmd")
|
||||||
|
|
||||||
elif type -p scrot >/dev/null; then
|
|
||||||
scrot_program=(scrot)
|
|
||||||
|
|
||||||
elif type -p maim >/dev/null; then
|
elif type -p maim >/dev/null; then
|
||||||
scrot_program=(maim)
|
scrot_program=(maim)
|
||||||
|
|
||||||
|
elif type -p scrot >/dev/null; then
|
||||||
|
scrot_program=(scrot)
|
||||||
|
|
||||||
elif type -p import >/dev/null && [[ "$os" != "Mac OS X" ]]; then
|
elif type -p import >/dev/null && [[ "$os" != "Mac OS X" ]]; then
|
||||||
scrot_program=(import -window root)
|
scrot_program=(import -window root)
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user