LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Slackware (http://www.linuxquestions.org/questions/slackware-14/)
-   -   How to define keyboard keys as mouse clicks? (http://www.linuxquestions.org/questions/slackware-14/how-to-define-keyboard-keys-as-mouse-clicks-843378/)

gunzzz5930 11-10-2010 12:31 AM

How to define keyboard keys as mouse clicks?
 
Sounds lazy but think its okay...

For example I'm setting key F1 & F2 keys mouse 1 and mouse 2 click in keyboard..



MORE POWER LNXQ!!!

T3slider 11-10-2010 01:47 AM

Quote:

Originally Posted by gunzzz5930 (Post 4154404)
Sounds lazy but think its okay...

For example I'm setting key F1 & F2 keys mouse 1 and mouse 2 click in keyboard..

I'm not sure how to add that keybinding (it would depend on your window manager/desktop environment), but I will say that this functionality already exists. Press Shift+Num Lock and you should be able to move the cursor with 8/2/4/6 (up/down/left/right) as well as diagonally (7/9/1/3), and click with 5 (change the mouse button being used to click with / = left, * = middle, - = right). This of course assumes you have a number pad available on your keyboard.

gunzzz5930 11-10-2010 02:15 AM

Quote:

I'm not sure how to add that keybinding (it would depend on your window manager/desktop environment), but I will say that this functionality already exists. Press Shift+Num Lock and you should be able to move the cursor with 8/2/4/6 (up/down/left/right) as well as diagonally (7/9/1/3), and click with 5 (change the mouse button being used to click with / = left, * = middle, - = right). This of course assumes you have a number pad available on your keyboard.

I use slackware 13.1 xfce

Perceptor 11-10-2010 04:04 AM

Use xdotool in combination with xbindkeys.

jovanoti 11-10-2010 06:53 AM

Quote:

Originally Posted by gunzzz5930 (Post 4154467)
I use slackware 13.1 xfce

I use -current and xfce, but have checked KDE services to be started at XFCE start up, I'm saying this just in case you think it is something KDE-related. And Shift + Num is working fine here, if you want to disable it just hold left Shift for several seconds.


All times are GMT -5. The time now is 09:33 AM.