https://github.com/benzntech/disable-touchpad-ubuntu
To toggle the touchpad in Ubuntu
https://github.com/benzntech/disable-touchpad-ubuntu
ubuntu ubuntu-touch
Last synced: about 1 month ago
JSON representation
To toggle the touchpad in Ubuntu
- Host: GitHub
- URL: https://github.com/benzntech/disable-touchpad-ubuntu
- Owner: benzntech
- Created: 2018-01-25T05:51:36.000Z (over 8 years ago)
- Default Branch: master
- Last Pushed: 2018-01-25T05:59:53.000Z (over 8 years ago)
- Last Synced: 2025-12-29T08:12:08.255Z (6 months ago)
- Topics: ubuntu, ubuntu-touch
- Language: Shell
- Homepage:
- Size: 3.91 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# 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 :-)