GuLinux / ScreenRotator

Automatic screen rotation daemon for X11
GNU General Public License v3.0
57 stars 18 forks source link

Add sensitivity/debounce option #4

Open tyzoid opened 6 years ago

tyzoid commented 6 years ago

From the AUR:

tkh23 commented on 2018-03-13 23:07 Wondering if there is a way to add a delay to this. Sometimes I move my notebook around and it annoyingly switches to 90* rotation and back.

Often, when setting the device down on a slightly tilted surface, or if carrying and rotate slightly past the trigger point, the screen will rotate to a different position. When carrying the device, this often leads to rapidly changing screen orientation, as it may not be perfectly steady.

I'm proposing a sensitivity option that will change the threshold at which a rotation occurs. If the sensitivity is 100%, the functionality will be the same as it currently is. If the sensitivity is reduced to 50%, for example, the device will need to be rotated beyond the half-way boundary between orientations for a rotation to register.

At very low sensitivities, the device will need to be rotated almost perfectly to it's orientation in order to trigger a rotation.

Let me know if this is unclear or confusing, as I probably didn't explain it very well.