Command line to change mouse speed in X

Here’s a quick tip, to change the mouse speed using command-line under X, use the "xset" command.

For example:

xset mouse 38/10 2		# I use this setting on my 1920x1200 LCD.

You can of course get more information by the usual "man xset" command.

And yes, xset does more – things like turning the display off, setting the keyboard LEDs, keyboard autorepeat settings etc… – check the manual out!

Here’s what I use to turn my screen off – assign that to a hotkey / command and voila, you now have a virtual "off" button for your LCD!:

xset -display :0 dpms force off
Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

%d bloggers like this: