It is not a rectangle AROUND the point I touch but the point of touch is one of the rectangle's points. The side lengths of the rectangle differs from one touch to the other and there is no clear conclusion about why, for example, the rotation point of the rectangle is not located in the middle of the screen.
Originally Posted by Ayuthia
The external script looks like this:
What is the external rotation script rotating? If you need an additional rotation script, it might be better to remove the xrandr out of that script and add it the the Advanced Setup in Magick-Rotation. That way the xrandr is only called once and the two scripts are not competing against each other.
I use this to rotate the screen when I do not need the inverted mode (have it on one of the buttons at the screen). This can also be the case when the screen is already rotated to inverted mode by magick. A possible workaround would be to and after executing the script to call magick again.
rotation="$(xrandr -q --verbose | grep 'connected' | egrep -o '\) (normal|left|inverted|right) \(' | egrep -o '(normal|left|inverted|right)')"
case "$rotation" in
# -rotate to the left
xrandr -o left
xinput set-prop "N-Trig MultiTouch" "Coordinate Transformation Matrix" 0, -1, 1, 1, 0, 0, 0, 0, 1
xinput set-prop "N-Trig Pen stylus" "Coordinate Transformation Matrix" 0, -1, 1, 1, 0, 0, 0, 0, 1