Commit af09dc29 authored by Dylan Araps's avatar Dylan Araps Committed by GitHub

Merge pull request #790 from ybden/master

Prioritise maim(1) over scrot(1).
parents b6cde781 dc5a01f2
...@@ -2702,12 +2702,12 @@ scrot_program() { ...@@ -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)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment