Skip to content

Instantly share code, notes, and snippets.

@matsest
Last active April 24, 2022 21:40
Show Gist options
  • Save matsest/a4cb634e7ef136805600a0b4b6444ad1 to your computer and use it in GitHub Desktop.
Save matsest/a4cb634e7ef136805600a0b4b6444ad1 to your computer and use it in GitHub Desktop.
disable-lenovo-x1-touchpad-on-startup
#!/bin/bash
ID=$(/usr/bin/xinput list --id-only "Wacom Pen and multitouch sensor Finger")
if [[ $ID ]]; then
/usr/bin/xinput --disable $ID
fi
[Desktop Entry]
Type=Application
Exec=/home/matsest/.config/touchscreen-off.sh
Hidden=false
NoDisplay=false
X-GNOME-Autostart-enabled=true
Name[en_US]=Touchscreen off
Name=Touchscreen finger off
Comment[en_US]=Disables touchscreen finger input
Comment=Disables touchscreen finger input
@matsest
Copy link
Author

matsest commented Apr 24, 2022

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment