Skip to content

Commit

Permalink
fix maim arguments for active monitor
Browse files Browse the repository at this point in the history
  • Loading branch information
carnager committed Mar 7, 2017
1 parent 66e26cf commit 8d0fc79
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions teiler
Original file line number Diff line number Diff line change
Expand Up @@ -333,12 +333,12 @@ maimCmd () {

if [[ $1 == "delay" ]]; then
if [[ $2 == "area" ]]; then maim $cursor "${rect_border}" "${rect_color}" -s -d ${delay} "${img_path}/${3}";
elif [[ $2 == "fullscreen" ]]; then maim $cursor -g $(xininfo -mon-width)$(xininfo -mon-x)$(xininfo -mon-height)$(xininfo -mon-y) -d ${delay} "${img_path}/${3}";
elif [[ $2 == "fullscreen" ]]; then maim $cursor -g $(xininfo -mon-width)x$(xininfo -mon-height)+$(xininfo -mon-x)+$(xininfo -mon-y) -d ${delay} "${img_path}/${3}";
elif [[ $2 == "fullscreenAll" ]]; then maim $cursor -d ${delay} "${img_path}/${3}"; fi
elif [[ $1 == "nodelay" ]]; then
if [[ $2 == "area" ]]; then maim $cursor "${rect_border}" "${rect_color}" -s "${img_path}/${3}";
elif [[ $2 == "active" ]]; then maim -i $(xdotool getactivewindow) "${img_path}/${3}";
elif [[ $2 == "fullscreen" ]]; then maim $cursor -g $(xininfo -mon-width)$(xininfo -mon-x)$(xininfo -mon-height)$(xininfo -mon-y) "${img_path}/${3}";
elif [[ $2 == "fullscreen" ]]; then maim $cursor -g $(xininfo -mon-width)x$(xininfo -mon-height)+$(xininfo -mon-x)+$(xininfo -mon-y) "${img_path}/${3}";
elif [[ $2 == "fullscreenAll" ]]; then maim $cursor "${img_path}/${3}"; fi
fi
}
Expand Down

0 comments on commit 8d0fc79

Please sign in to comment.