Keyboard shortcut to toggle touchpad

Keyboard shortcut to toggle touchpad

Postby Janlam » Mon Jun 10, 2019 5:01 pm

Greetings!
After distro hopping for the last few months, I have settled for Zorin 15 Ultimate.
With Win10, in the mouse settings, there is the option to deactivate the touchpad when the mouse is connected. Very convenient.
Maybe this could be added to future updates.
In the meantime, I would like to toggle on/off the touchpad with a keyboard shortcut.
What would be the command line to associate with the shortcut?
Thanks in advance for any ideas.
Zorin OS 15 Ultimate / Dual boot Win 10 pro
HP Envy 17t Laptop
Processor: Intel® Core™ i7-8550U CPU @ 1.80GHz × 8
Graphics: GeForce MX150/PCIe/SSE2
Memory: 16 GiB
User avatar
Janlam
 
Posts: 14
Joined: Tue Mar 19, 2019 3:07 am
Location: Québec Canada

Re: Keyboard shortcut to toggle touchpad

Postby Swarfendor437 » Mon Jun 10, 2019 5:10 pm

Firstly, open a Terminal window (Ctrl+ Alt+ T or Menu | Utilities | Terminal and install 'gnome-tweaks':

Code: Select all
sudo apt-get install gnome-tweaks


This will place 'Tweaks' in Menu | System Tools.

Next, open up Firefox web browser and go to:

https://extensions.gnome.org/ - you will be prompted to add the extensions add-in.

Now open up Software and install this extension:

ToggleTouchpad.jpg
https://vimeo.com/user15592214
https://trisquel.info/
https://www.opendesktop.org/member/257685/

Machine: ASUS X470-PRO, AMD Ryzen 7 1700X 8 Core, 16 Gb RAM, ZOTAC Geforce GT1030 (2 Gb)
User avatar
Swarfendor437
 
Posts: 10176
Joined: Wed Sep 18, 2013 5:51 pm

Re: Keyboard shortcut to toggle touchpad

Postby Janlam » Mon Jun 10, 2019 6:21 pm

Thank you! I did as suggested. But the option to deactivate the touchpad was already available in the settings panels.
However, I would really like to associate this with a keyboard shortcut, if possible.
Zorin OS 15 Ultimate / Dual boot Win 10 pro
HP Envy 17t Laptop
Processor: Intel® Core™ i7-8550U CPU @ 1.80GHz × 8
Graphics: GeForce MX150/PCIe/SSE2
Memory: 16 GiB
User avatar
Janlam
 
Posts: 14
Joined: Tue Mar 19, 2019 3:07 am
Location: Québec Canada

Re: Keyboard shortcut to toggle touchpad

Postby Swarfendor437 » Mon Jun 10, 2019 7:53 pm

Not sure if this will work in Zorin but you are welcome to try:

https://askubuntu.com/questions/863746/ ... pad/863747

;) :D
https://vimeo.com/user15592214
https://trisquel.info/
https://www.opendesktop.org/member/257685/

Machine: ASUS X470-PRO, AMD Ryzen 7 1700X 8 Core, 16 Gb RAM, ZOTAC Geforce GT1030 (2 Gb)
User avatar
Swarfendor437
 
Posts: 10176
Joined: Wed Sep 18, 2013 5:51 pm

Re: Keyboard shortcut to toggle touchpad

Postby Finston Pickle » Mon Jun 10, 2019 8:26 pm

Swarf,

Should this shell extension work also in Zorin12?


If so what shell version should I use.


Not being able to toggle the touchpad off has been the biggest frustration with Z12 on a laptop.
User avatar
Finston Pickle
 
Posts: 506
Joined: Sun Nov 27, 2016 7:49 pm

Re: Keyboard shortcut to toggle touchpad

Postby Janlam » Mon Jun 10, 2019 8:50 pm

Swarfendor437 wrote:Not sure if this will work in Zorin but you are welcome to try:

https://askubuntu.com/questions/863746/ ... pad/863747

;) :D

This script works for me! Thank you very much. I appreciate your help.
Zorin OS 15 Ultimate / Dual boot Win 10 pro
HP Envy 17t Laptop
Processor: Intel® Core™ i7-8550U CPU @ 1.80GHz × 8
Graphics: GeForce MX150/PCIe/SSE2
Memory: 16 GiB
User avatar
Janlam
 
Posts: 14
Joined: Tue Mar 19, 2019 3:07 am
Location: Québec Canada

Re: Keyboard shortcut to toggle touchpad

Postby Swarfendor437 » Mon Jun 10, 2019 9:59 pm

Finston Pickle wrote:Swarf,

Should this shell extension work also in Zorin12?


If so what shell version should I use.


Not being able to toggle the touchpad off has been the biggest frustration with Z12 on a laptop.


Hi Finston,

Open Firefox (if you haven't got it then install it), go to the gnome extensions page I stated above and if not already added, click on the link to add the 'chrome' extension to Firefox - you can then search for the Toggle extension. Slide the slider to 'ON' and if it doesn't work you will see a red cross appear to the right of 'ON'. I noticed that this extension does not appear to give varying releases of the Gnome Shell like some other extensions - all I can suggest is try it. ;) :D
https://vimeo.com/user15592214
https://trisquel.info/
https://www.opendesktop.org/member/257685/

Machine: ASUS X470-PRO, AMD Ryzen 7 1700X 8 Core, 16 Gb RAM, ZOTAC Geforce GT1030 (2 Gb)
User avatar
Swarfendor437
 
Posts: 10176
Joined: Wed Sep 18, 2013 5:51 pm

Re: Keyboard shortcut to toggle touchpad

Postby Finston Pickle » Tue Jun 11, 2019 8:25 pm

Hi Swarf,

I went into Firefox and followed the link you posted. No sign of "you will be prompted to add the extensions add-in" unfortunately.

I got to "toggle touchpad" in extensions search - but find to download it a shell has to be selected (What particular shell they are referring to is not clear).

Also, I could not see a link to Chrome extensions in firefox.


P.S.I have set up Gnome shell extension - originally following your guide - but have always found them impenetrable.
User avatar
Finston Pickle
 
Posts: 506
Joined: Sun Nov 27, 2016 7:49 pm

Re: Keyboard shortcut to toggle touchpad

Postby Swarfendor437 » Tue Jun 11, 2019 9:14 pm

Hi Finston,

Do you not get the purple/violet box at the top of the page when you visit?

gnome shell integration.jpg


Firefox will come up with a warning, click on 'Allow' and then you get this:

Add gnome shell integration.jpg


and finally:

integration.jpg
https://vimeo.com/user15592214
https://trisquel.info/
https://www.opendesktop.org/member/257685/

Machine: ASUS X470-PRO, AMD Ryzen 7 1700X 8 Core, 16 Gb RAM, ZOTAC Geforce GT1030 (2 Gb)
User avatar
Swarfendor437
 
Posts: 10176
Joined: Wed Sep 18, 2013 5:51 pm

Re: Keyboard shortcut to toggle touchpad

Postby Janlam » Wed Jun 12, 2019 1:01 am

Wow! I just noticed the icon on the task bar in Zorin 15, where you can easily toggle the touchpad. Really convenient.
Am loving Zorin 15 more and more as I discover. A beautiful and very clever distro. Thanks to the hard work of the Zorin brothers. :D
Zorin OS 15 Ultimate / Dual boot Win 10 pro
HP Envy 17t Laptop
Processor: Intel® Core™ i7-8550U CPU @ 1.80GHz × 8
Graphics: GeForce MX150/PCIe/SSE2
Memory: 16 GiB
User avatar
Janlam
 
Posts: 14
Joined: Tue Mar 19, 2019 3:07 am
Location: Québec Canada
Next

Return to Help and Support

Who is online

Users browsing this forum: No registered users and 3 guests