I like my mouse to have high sensitivity so that it can move fast across the screen, but sometimes this makes it hard to perform a high-precision click
I found a nice solution which is to use a keyboard shortcut that, when pressed, lowers the mouse sensitivity. Then, when I need to perform a high-precision move, I hold the key, and let go when I'm done
This has been working pretty well, and is fairly easy to implement using sway:
input type:pointer {
accel_profile "flat"
pointer_accel 1.0
}
bindsym XF86HomePage exec swaymsg input type:pointer pointer_accel -- -0.6
bindsym --release XF86HomePage exec swaymsg input type:pointer pointer_accel -- 1
I use WWW Home, which is otherwise a useless key, configured on the left-hand side of my keyboard (XF86HomePage in the Sway config above).
