LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Blogs > linux-related notes
User Name
Password

Notices


Just annotations of little "how to's", so I know I can find how to do something I've already done when I need to do it again, in case I don't remember anymore, which is not unlikely. Hopefully they can be useful to others, but I can't guarantee that it will work, or that it won't even make things worse.
Rate this Entry

Somewhat better config for "mousekeys," in my opinion

Posted 06-26-2020 at 01:38 PM by the dsc
Updated 10-11-2020 at 04:55 PM by the dsc

EDIT: no longer works/works erratically, I have no idea how it works.

I find it a bit cumbersome to have to change the default button and then click "every time," and at the same time, I barely ever use the diagonals, so I thought it could be a good idea to have keypad keys 7, 5, and 9 set to the mouse buttons 2, 1, and 3 respectively (middle, left, and right, respectively). It partly deviates from the positioning on the mouse itself, but it feels more natural to have "5" as the left click.

That's done by changing the "mousekeys" file to have the following entries like this (there are other entries between them on the actual file, skipped here):

Code:
 interpret KP_7 {
        action = PointerButton(button=2);
    };

    interpret KP_9 {
        action =  PointerButton(button=3);
    };

    interpret KP_5 {
        action =  PointerButton(button=1);
    };
I have actually edited the system file at nano /usr/share/X11/xkb/compat/mousekeys, I don't know how to have a file at the home folder for that. In order to reload the thing, you'd issue at the terminal: setxkbmap -option -- with no option whatsoever, at least given that you already had issued setxkbmap -option keypad:pointerkeys or maybe set it via xorg.conf or something else.
Posted in Uncategorized
Views 1348 Comments 0
« Prev     Main     Next »
Total Comments 0

Comments

 

  



All times are GMT -5. The time now is 01:51 PM.

Main Menu
Advertisement
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration