diff --git a/dots/bin/monitorshot.sh b/dots/bin/monitorshot.sh index 5f14de6..30a5273 100644 --- a/dots/bin/monitorshot.sh +++ b/dots/bin/monitorshot.sh @@ -7,7 +7,7 @@ if [ $# -lt 1 ]; then echo "usage: '$this_file_name [path_to_output_image]'" exit 1 fi -output=$1 +output_file=$1 MONITORS=$(xrandr | grep -o '[0-9]*x[0-9]*[+-][0-9]*[+-][0-9]*') @@ -27,7 +27,7 @@ for mon in ${MONITORS}; do if (( ${YMOUSE} >= ${MONY} )); then if (( ${YMOUSE} <= ${MONY}+${MONH} )); then # We have found our monitor! - maim -g "${MONW}x${MONH}+${MONX}+${MONY}" output + maim -g "${MONW}x${MONH}+${MONX}+${MONY}" ${output_file} exit 0 fi fi