Scheduled Maintenance: We are aware of an issue with Google, AOL, and Yahoo services as email providers which are blocking new registrations. We are trying to fix the issue and we have several internal and external support tickets in process to resolve the issue. Please see: viewtopic.php?t=158230

 

 

 

Howto: Map Touchpad buttons On Keyboard

Share your HowTo, Documentation, Tips and Tricks. Not for support questions!.
Post Reply
Message
Author
User avatar
bester69
Posts: 2072
Joined: 2015-04-02 13:15
Has thanked: 24 times
Been thanked: 14 times

Howto: Map Touchpad buttons On Keyboard

#1 Post by bester69 »

If you don't have an external mouse and you dont want to destroy your touhpad buttons, and also you feel are destroying your fingers by pressing so hard the touchpad button... Why don't map this buttons on the keyboard?


Ive done a script to map click buttons on keyboard, its very confortable to use, and i've not used touchpad buttons anymore since then.


Image
share image

Mapping Windows Key funciton as left touchpad button
Mapping Contextual Key function as right touchpad button

1- mousebind.sh (script to map keyboard to touchpad buttons functions)
#!/bin/bash
sleep 15
# set XKB layout
setxkbmap -layout es
# turn on mousekeys
xkbset m
# stop mousekeys expiring after a timeout
xkbset exp =m
# map keysym to other keysym
sleep 1
xmodmap -e "keycode 133 = Pointer_Button1"
xmodmap -e "keycode 135 = Pointer_Button3"
2- normalmousebind.sh (script to restore default mapping keyboard)
#!/bin/bash
#restuara teclado
xkbset -m

So you add script 1 to startup, and enjoy :wink:

i'd recommend using middle finger, left hand for Windows Key, middle finger right hand for Contextual Key
Last edited by bester69 on 2015-07-07 00:59, edited 1 time in total.
bester69 wrote:STOP 2030 globalists demons, keep the fight for humanity freedom against NWO...

gerry
Posts: 325
Joined: 2007-09-13 07:23
Location: England

Re: Howto: Map Touchpad buttons On Keyboard

#2 Post by gerry »

Just what I'm looking for- I have an early Acer Aspire One, and find the touchpad keys very difficult.

Two questions: what does the contextual key look like? And should

setxkbmap -layout es

be something else if I'm not a Spaniard? -layout uk, for instance? (or gb?).

gerry
gerry
Age 80- and still learning!

User avatar
bester69
Posts: 2072
Joined: 2015-04-02 13:15
Has thanked: 24 times
Been thanked: 14 times

Re: Howto: Map Touchpad buttons On Keyboard

#3 Post by bester69 »

gerry wrote:Just what I'm looking for- I have an early Acer Aspire One, and find the touchpad keys very difficult.

Two questions: what does the contextual key look like? And should

setxkbmap -layout es

be something else if I'm not a Spaniard? -layout uk, for instance? (or gb?).

gerry
Gerry, iadded a pic so you see the keys, i think -layout must be uk or en for english
bester69 wrote:STOP 2030 globalists demons, keep the fight for humanity freedom against NWO...

gerry
Posts: 325
Joined: 2007-09-13 07:23
Location: England

Re: Howto: Map Touchpad buttons On Keyboard

#4 Post by gerry »

Thanks.
gerry
Age 80- and still learning!

gerry
Posts: 325
Joined: 2007-09-13 07:23
Location: England

Re: Howto: Map Touchpad buttons On Keyboard

#5 Post by gerry »

Can't get it to work.
Error reported: xkbset command not found.

EDIT: found the answer- apt-get install xkbset
(Actually I used Synaptic.)
EDIT2: For me , choice of country for layout is gb, not uk.
and EDIT3, could you please tell me exactly where the script goes to work automaticly? At the present I'm running it manually.

gerry
gerry
Age 80- and still learning!

User avatar
bester69
Posts: 2072
Joined: 2015-04-02 13:15
Has thanked: 24 times
Been thanked: 14 times

Re: Howto: Map Touchpad buttons On Keyboard

#6 Post by bester69 »

gerry wrote:Can't get it to work.
Error reported: xkbset command not found.

EDIT: found the answer- apt-get install xkbset
(Actually I used Synaptic.)
EDIT2: For me , choice of country for layout is gb, not uk.
and EDIT3, could you please tell me exactly where the script goes to work automaticly? At the present I'm running it manually.

gerry
jejej, i suppose it goes in the startup,i use kde, i put it there, i hope you enjoi it, cos ive been using it from 2 years, and i've not need it a mouse since then.

seriously i love it like this, sometimes easiest thing are most usefull. :wink: Someone should tell to everybody
bester69 wrote:STOP 2030 globalists demons, keep the fight for humanity freedom against NWO...

User avatar
bester69
Posts: 2072
Joined: 2015-04-02 13:15
Has thanked: 24 times
Been thanked: 14 times

Re: Howto: Map Touchpad buttons On Keyboard

#7 Post by bester69 »

This, deserve rebind ,


Still using it,
this is my best invention , I think I should patent it :) :)
bester69 wrote:STOP 2030 globalists demons, keep the fight for humanity freedom against NWO...

Post Reply