Adds the --oneshot/-O flag which updates the screen rotation just once
instead of continuously. The use case for this is having a button that
allows the user to apply screen rotation manually, instead of having it
running automatically all the time.
I find this better for me on my Surface Go 2 when I'm holding it like a clipboard - I tend to accidentally tilt it a lot and trigger rotation, and I don't want it to rotate automatically in that use case anyway. With this change, I can assign one of the physical volume keys on the device to run rot8 --oneshot and then I have manual control over screen rotation.
Adds the
--oneshot
/-O
flag which updates the screen rotation just once instead of continuously. The use case for this is having a button that allows the user to apply screen rotation manually, instead of having it running automatically all the time.I find this better for me on my Surface Go 2 when I'm holding it like a clipboard - I tend to accidentally tilt it a lot and trigger rotation, and I don't want it to rotate automatically in that use case anyway. With this change, I can assign one of the physical volume keys on the device to run
rot8 --oneshot
and then I have manual control over screen rotation.