Giter Site home page Giter Site logo

xinputd's Introduction

Xinputd - simple Xorg input device watcher

Xinputd is a simple daemon that executes a command when an Xorg input device is added or removed. By default, Xinputd forks to background and exits when the X server exits.

USAGE:

xinputd [option] command_with_options_to_execute

OPTIONS:

  • -h Show help and exit
  • -n Don't fork to background

EXAMPLE

To swap caps and escape every time you plug a new device in:

  $ xinputd setxkb -option caps:escape

More complex solutions may be better solved with a script as the execution target.

TODO

  • More fine grained control about what devices trigger command execution (Right now all devices do!)
  • Debouncing execution so we don't run more often than necessary (Devices that take a second to power up will currently trigger a new execution)

HERITAGE AND THANKS

This project owes quite a bit to portix for srandrd. (If interested, my fork of srandr can be found here.) Without his work there, I would never have considered this a viable approach to take to solve this issue. Additionally, I cribbed quite a bit of code from that project. Thanks, portix!

In addition, I owe a beer to the author of almost every poster of an xcb code snippet on the internet. So cheers!

xinputd's People

Contributors

bbenne10 avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

Forkers

ykaliuta

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.