Rotate touchpad in Plasma + Wayland

Hi,
I believe I have read pretty much all available resources (which are not numerous) about this topic, but couldn’t find an answer. I am looking for some way to rotate my laptop’s touchpad input device (by 90 degrees anticlockwise, specifically). Every now and then I need to use my laptop as though it was a book (with the screen on the left and the keyboard on the right), and I’d like the touchpad to behave naturally in this scenario (i.e. when the laptop is rotated and I move my finger to the top of the touchpad, which corresponds to the right edge of the touchpad in “normal” orientation, I’d like the mouse pointer to move towards the top of the screen, i.e. its right edge in “normal” orientation). Is there any way I can achieve this? Ideally, I’d like to do this with a terminal command, so that I can apply and revert this modification easily, without having to edit config files and reboot.
Libinput shows, for my touchpad, the following info. Rotation shows up as not available…

Device:           ASUE120B:00 04F3:31C0 Touchpad
Kernel:           /dev/input/event3
Group:            4
Seat:             seat0, default
Size:             125x72mm
Capabilities:     pointer gesture
Tap-to-click:     disabled
Tap-and-drag:     enabled
Tap drag lock:    disabled
Left-handed:      disabled
Nat.scrolling:    disabled
Middle emulation: disabled
Calibration:      n/a
Scroll methods:   *two-finger edge 
Click methods:    *button-areas clickfinger 
Disable-w-typing: enabled
Disable-w-trackpointing: enabled
Accel profiles:   flat *adaptive custom
Rotation:         n/a

Thanks!

Even if it were possible, it is up to the Wayland compositor (i.e. in this case KWin) to actually implement it, espicially dynamic switching. You can set LIBINPUT_CALIBRATION_MATRIX device property via udev rules, but that will be static.

Do you have reasons to use Wayland? Under X11 it should be easier as you can use external program to change driver properties and a lot of such programs exist.

@arvidjaar I’d prefer to do it in Wayland because that’s what I use daily and ideally I’d like to be able to rotate the touchpad on the fly, without having to log out of Plasma…