This commit is contained in:
committer
2024-05-19 20:19:37 -05:00
parent 62337f93ff
commit 6c5135b291

View File

@@ -7,7 +7,7 @@ if [ $# -lt 1 ]; then
echo "usage: '$this_file_name [path_to_output_image]'" echo "usage: '$this_file_name [path_to_output_image]'"
exit 1 exit 1
fi fi
output=$1 output_file=$1
MONITORS=$(xrandr | grep -o '[0-9]*x[0-9]*[+-][0-9]*[+-][0-9]*') 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} )); then
if (( ${YMOUSE} <= ${MONY}+${MONH} )); then if (( ${YMOUSE} <= ${MONY}+${MONH} )); then
# We have found our monitor! # We have found our monitor!
maim -g "${MONW}x${MONH}+${MONX}+${MONY}" output maim -g "${MONW}x${MONH}+${MONX}+${MONY}" ${output_file}
exit 0 exit 0
fi fi
fi fi