Metadata-Version: 1.1
Name: xinput
Version: 0.1.2
Summary: Enable/disable xinput devices from terminal or using the API.
Home-page: https://github.com/barseghyanartur/xinput
Author: Artur Barseghyan
Author-email: artur.barseghyan@gmail.com
License: GPL 2.0/LGPL 2.1
Description: ===================================================
        xinput
        ===================================================
        Enable/disable xinput devices (for example, a touchpad) from terminal or using the API.
        
        Prerequisites
        ===================================================
        - Python 2.6.8+, 2.7.+, 3.3.+
        
        Installation
        ===================================================
        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
        
        Usage examples
        ===================================================
        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.
        
        Command-line
        ----------------------------------------------------
        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
        
        Programmatically
        ------------------------------
        >>> 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)
        
        License
        ===================================================
        GPL 2.0/LGPL 2.1
        
        Support
        ===================================================
        For any issues contact me at the e-mail given in the `Author` section.
        
        Author
        ===================================================
        Artur Barseghyan <artur.barseghyan@gmail.com>
        
Keywords: xinput
Platform: UNKNOWN
Classifier: Programming Language :: Python :: 2.6
Classifier: Programming Language :: Python :: 2.7
Classifier: Programming Language :: Python :: 3
Classifier: Programming Language :: Python :: 3.3
Classifier: License :: OSI Approved :: GNU General Public License v2 (GPLv2)
Classifier: License :: OSI Approved :: GNU Lesser General Public License v2 or later (LGPLv2+)
Classifier: Intended Audience :: Developers
Classifier: Operating System :: POSIX :: Linux
Classifier: Development Status :: 4 - Beta
