
Product
Socket Now Protects the Chrome Extension Ecosystem
Socket is launching experimental protection for Chrome extensions, scanning for malware and risky permissions to prevent silent supply chain attacks.
Enable/disable xinput devices (for example, a touchpad) from terminal or using the API.
Latest stable version from PyPI.
$ pip install xinput
Latest stable version from bitbucket.
$ pip install -e hg+https://bitbucket.org/barseghyanartur/xinput@stable#egg=xinput
Latest stable version from github.
$ pip install -e git+https://github.com/barseghyanartur/xinput@stable#egg=xinput
First argument represents device state (0 for disable and 1 for enable). Second argument represents device name.
By default we operate with Synaptics TouchPad
but it's possible to have custom device names.
After installation you should be able to disable/enable touchpad by typing "disable-touchpad" or "enable-touchpad" commands in your terminal.
To enable Synaptics TouchPad, type in terminal:
$ xinput-manage 1 Synaptic TouchPad
To disable Genius Optical Mouse, type in terminal:
$ xinput-manage 0 Genius Optical Mouse
There are also shortcuts for enabling/disabling the touchpad.
Type the following in terminal to disable the touchpad:
$ disable-touchpad
Type the following in terminal to enable the touchpad:
$ enable-touchpad
from xinput import operate_xinput_device, MODE_ENABLE, DEVICE_NAME_SYNAPTIC, MODE_DISABLE operate_xinput_device(MODE_DISABLE, DEVICE_NAME_SYNAPTIC) operate_xinput_device(MODE_ENABLE, DEVICE_NAME_SYNAPTIC)
GPL 2.0/LGPL 2.1
For any issues contact me at the e-mail given in the Author
section.
Artur Barseghyan artur.barseghyan@gmail.com
FAQs
Enable/disable xinput devices from terminal or using the API.
We found that xinput demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Product
Socket is launching experimental protection for Chrome extensions, scanning for malware and risky permissions to prevent silent supply chain attacks.
Product
Add secure dependency scanning to Claude Desktop with Socket MCP, a one-click extension that keeps your coding conversations safe from malicious packages.
Product
Socket now supports Scala and Kotlin, bringing AI-powered threat detection to JVM projects with easy manifest generation and fast, accurate scans.