Disable mouse move without disabling click and scroll?

Is it possible to disable mouse move without disabling click and scroll? I want to make mouse pointer freeze at a point but click and scroll using wheel should work.

0

2 Answers

There is a xinput command that manipulates X devices, whose list can be obtained with

 xinput --list

Henceforth id=10 for the mouse assumed, that is seemingly true for modern Xorg releases.

Solution (using property names):

xinput set-prop 10 'Device Accel Constant Deceleration' 65535

Return to normality:

xinput set-prop 10 'Device Accel Constant Deceleration' 1

Solution (using property numbers):

 xinput list-props 10

Find
Device Accel Constant Deceleration (p):
in the output listing, where p is a decimal number. Now substitute it into:
xinput set-prop 10p65535

Return to normality:

xinput set-prop 10p1

Very late to the game, but the low-tech solution here is to put a bit of tape over your mouse light. That will "disable" the pointer but keep the buttons active, and doesnt mess around with the xinput settings.

Your Answer

Sign up or log in

Sign up using Google Sign up using Facebook Sign up using Email and Password

Post as a guest

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

You Might Also Like