efernau / rot8

screen rotation daemon
MIT License
111 stars 27 forks source link

Add oneshot mode #24

Closed mirrexagon closed 2 years ago

mirrexagon commented 2 years ago

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.

efernau commented 2 years ago

@mirrexagon thanks for implementing --oneshot, seems to work.