This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# Mouse Speed Fix by Nick Andren, January 2021 | |
# How fast we want the pointer to move | |
mouseSpeed=8.0 | |
# One of the problems that I've had with many Linux window managers is that they | |
# don't allow adjustments to *only* the mouse speed without mouse acceleration. | |
# This solution might not work for all types of mice, but in my case, it works | |
# with my Microsoft IntelliMouse. Even if you don't have one of these, this |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
WITH RECURSIVE rsqrt AS ( | |
SELECT 27 AS x, | |
1 AS step, | |
1 AS g | |
UNION ALL | |
SELECT x AS x, | |
step+1 AS step, | |
CASE WHEN g = ((x/g + g) /2.0) THEN x ELSE ((x/g + g) /2.0) END AS g |