Skip to content

Instantly share code, notes, and snippets.

@balajeerc
Last active March 7, 2024 11:05
Show Gist options
  • Save balajeerc/18b298d184088fff44e67e04dc7999c2 to your computer and use it in GitHub Desktop.
Save balajeerc/18b298d184088fff44e67e04dc7999c2 to your computer and use it in GitHub Desktop.
Enabling Mousekeys on Linux: To Move Mouse with Numpad

Linux Mouse and Keyboard Tweaks

Enabling Mousekeys on Linux: To Move Mouse with Numpad

Why

You have a nice keyboard. And using the mouse hinders your workflow.

Installation

sudo aptitude install xkbset

Enable mousekeys

setxkbmap -optifon keypad:pointerkeys

Configure sensitivity

xkbset ma 60 10 10 5 2

Finally

Hit Cntrl+L-Shift+NumLock. You should now be able to move the mouse quite nicely with the numpad.

Tweaking/Setting Input Devices via Commandline

First list input devices

xinput list

List properties of an input device

xinput list-props 12

Change a specific input param

xinput set-prop 12 277 1
@devilish2o
Copy link

Left click is + button at the right of numpad.

Copy link

ghost commented Sep 5, 2020

I want to ask how to disable it.
I am using i3.
Nobody can tell me how to disable mousekey.
Shift+Numlock just dont work.

PS: setxkbmap -optifon keypad:pointerkeys
the option is typo

@pathammer
Copy link

Thanks this is useful

best description of what key does what on LinuxReviews.org

also found the xkbset-gui is a nice tool to tune the acceleration values.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment