This forum has been archived. All content is frozen. Please use KDE Discuss instead.

How to get "touchpad" button to work if it doesn't.

1

Votes
1
0
Tags: None
(comma "," separated)
erkexzcx
Registered Member
Posts
6
Karma
0
OS
If you installed Kubuntu or whatever it is, and you can't get touchpad button work, that should enable/disable touchpad for you.
I only tried it on Ubuntu/Debian based OS. For me it works 100%.

We will store our file in ~/.customFiles/
The script we are going to create is ~/.customFiles/touchpad.sh
So copy paste commands.

Code: Select all
#Open terminal
mkdir .customFiles #if prompts to create, accept.
cd .customFiles
touch touchpad.sh
kate touchpad.sh


Now you should see kate text editor window. copy and paste text below.
Code: Select all
#!/bin/bash
/usr/bin/synclient TouchpadOff=$(if [[ $(expr `synclient -l | grep TouchpadOff | cut -f2 -d =`) == 0 ]]; then echo 1; else echo 0; fi)

And save this file. Now you have touchpad.sh file

after you saved file and closed kate text editor, go back to your terminal:
Code: Select all
chmod +x touchpad.sh


Done, close the terminal.

Now lets bind it

Go to System settings --> Shortcuts and gestures --> Custom shortcuts (you are there as default) --> edit --> new --> Global shortcut --> Command/URL.

After creating, click on Action tab, then copy paste this command:
Code: Select all
~/.customFiles/./touchpad.sh


Then click on Trigger tab, and select keyboard shortcut. You should try your luck and try to bind same button/buttons as default on your keyboard to control touchpad.
If you have no luck, you should use what I use (or your custom shortcut): ALT+M


Bookmarks



Who is online

Registered users: Baidu [Spider], Bing [Bot], Google [Bot]