Skip to content

Creates an indicator to allow us to disable some input devices

License

Notifications You must be signed in to change notification settings

brandizzi/input-device-indicator

Repository files navigation

Input Device Indicator

The icon of the application: an orange cat over a keyboard

This app is an indicator to help you disable/enable input devices (such as keyboards, mouses and trackpads).

How to Use

You just need to invoke input-device-indicator. (We do want to be able to invoke it from a menu item or a launcher when pressing Super but we did not manage to do it so far. Any help is welcome.)

Once activated, there will be an icon (a cat on a keyboard) on your indicators. Click on it and a list of devices will appear. Just click on the one you want to disable or enable:

A screenshot of the indicator menu. There appears the icon, clicked, and a menu listing vários keyboard and mosue devices

For those more used to technicalities, it can be useful to know this indicator is basically a wrapper around xinput: the devices come from the output of xinput list --long, and we disable/enable them with xinput disable/xinput enable.

Development Tips

If you want to change Input Device Indicator's source code, once you cloned the repository, you will need to install the dependencies:

$ pip install -r requirements.txt
$ pip install -r requirements-dev.txt

To test the package locally, you can leverage our Makefile by invoking the install_local target:

$ make install_local

To publish a release in the PPA, we use the publish target. Of course, you need to have the right permissions etc.

$ make publish

Why?

Because of this:

Picture of Mel, our loved cat, laying on the keyboard of my laptop.

Licensing

Input Device Indicator

Input Device Indicator is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by the Free
Software Foundation, either version 3 of the License, or (at your option) any
later version.

Foobar is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
GNU General Public License for more details.

You should have received a copy of the GNU General Public License
along with Foobar.  If not, see <https://www.gnu.org/licenses/>.

Icons

(The icon is a mashup of this icon and this icon found on Wikimedia Commons, licensed under Apache License 2.0.)

Copyright 2020 Adam Victor Brandizzi

Licensed under the Apache License, Version 2.0 (the "License"); you may not use
this file except in compliance with the License. You may obtain a copy of the
License at

    http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software distributed
under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR
CONDITIONS OF ANY KIND, either express or implied. See the License for the
specific language governing permissions and limitations under the License.

About

Creates an indicator to allow us to disable some input devices

Topics

Resources

License

Stars

Watchers

Forks

Packages

No packages published