This enables controlling mouse cursor from keyboard numpad keys in linux

To add mouse functionality to numpad keys add this line to ~/.xprofile or remaps script from ~/.local/bin/ setxkbmap -option keypad:pointerkeys &

	 and

this line to /etc/X11/xorg.conf.d/00-keyboard.conf add Option "XkbOptions" "keypad:pointerkeys"

	 and

press Ctrl+Shift+Numlock to activate it.

and Use from numpad Here keybind

KeyMovement
8Straight Up
2Straight Down
4Left
6Right
7Left Up
9Right Up
1Left bottom
3Right bottom
5Right Click
KeysDirection
7 8 9Up Direction
4 6Left and Right Keys
1 2 3Down Direction

Special Movement

KeyClicks
5Left Click
+Double click
0press and hold for selected mouse button
.to release the currently selected mouse button
KeyMovement
/Left click
*Middle click
-Right click

Reference:

  1. https://wiki.gentoo.org/wiki/Xorg/Using_the_numeric_keyboard_keys_as_mouse