video=HDMI-A-1:1024x800M@60,margin_right=0,margin_left=0,margin_top=0,margin_bottom=0,rotate=180
Add the TransformationMatrix
option.
Section "InputClass"
Identifier "libinput touchscreen catchall"
MatchIsTouchscreen "on"
Option "TransformationMatrix" "-1 0 1 0 -1 1 0 0 1"
MatchDevicePath "/dev/input/event*"
Driver "libinput"
EndSection
sudo -H pip3 install --upgrade pip