Skip to content

benzntech/disable-touchpad-ubuntu

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 

Repository files navigation

toggle-touchpad-ubuntu

To toggle the touchpad and mouse in Ubuntu Put the following code in a file, such as touchpad_toggle.sh:

#!/bin/bash

STATUS=gsettings get org.gnome.desktop.peripherals.touchpad send-events

if [ "$STATUS" = "'enabled'" ]

then

gsettings set org.gnome.desktop.peripherals.touchpad send-events 'disabled'

else

gsettings set org.gnome.desktop.peripherals.touchpad send-events 'enabled'

fi

Grant the file executable permission:

chmod +x touchpad_toggle.sh Add a keyboard shortcut to the file from Settings → Devices → Keyboard.

DISCLAIMER:- USE AT OWN RISK :-)

About

To toggle the touchpad in Ubuntu

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages