All Projects → andrewshadura → inputplug

andrewshadura / inputplug

Licence: MIT license
XInput event monitor daemon

Programming Languages

rust
11053 projects
Roff
2310 projects
Makefile
30231 projects

Labels

Projects that are alternatives of or similar to inputplug

Xquartz
An X11 server and client libraries for macOS
Stars: ✭ 216 (+730.77%)
Mutual labels:  x11
gnuboy
latest version of original laguna source, with a handful fixes for modern compilers and systems
Stars: ✭ 70 (+169.23%)
Mutual labels:  x11
shod-old
hybrid (floating and tiling) tabbed window manager
Stars: ✭ 56 (+115.38%)
Mutual labels:  x11
Unclutter Xfixes
A rewrite of unclutter using the x11-xfixes extension
Stars: ✭ 236 (+807.69%)
Mutual labels:  x11
CtrlUI
CtrlUI (Controller User Interface) is a Windows application, game and emulator launcher for your game controller, DirectXInput converts your game controller to a Xbox (XInput) controller, Fps Overlayer is a tool that shows the frames per second and the cpu, gpu and memory information.
Stars: ✭ 39 (+50%)
Mutual labels:  xinput
shod
mouse-based window manager that can tile windows inside floating containers
Stars: ✭ 126 (+384.62%)
Mutual labels:  x11
Xidlehook
GitLab: https://gitlab.com/jD91mZM2/xidlehook
Stars: ✭ 216 (+730.77%)
Mutual labels:  x11
polyred
📺 3D Graphics in Go.
Stars: ✭ 31 (+19.23%)
Mutual labels:  x11
ratpoison
jcs ratpoison hax
Stars: ✭ 31 (+19.23%)
Mutual labels:  x11
ArduinoXInput AVR
AVR boards package for the ArduinoXInput project
Stars: ✭ 53 (+103.85%)
Mutual labels:  xinput
X11docker
Run GUI applications and desktops in docker and podman containers. Focus on security.
Stars: ✭ 3,797 (+14503.85%)
Mutual labels:  x11
right-window
Utility to move the focus between windows following cardinal directions
Stars: ✭ 18 (-30.77%)
Mutual labels:  x11
keyboard modifiers status
Gnome-Shell extension that shows keyboard modifiers status. It's useful when sticky keys are active.
Stars: ✭ 15 (-42.31%)
Mutual labels:  x11
Microwindows
The Nano-X Window System
Stars: ✭ 230 (+784.62%)
Mutual labels:  x11
mmwm
Modern Minimalistic Window Manager
Stars: ✭ 45 (+73.08%)
Mutual labels:  x11
Dewm
A pure go autotiling window manager written with literate programming
Stars: ✭ 225 (+765.38%)
Mutual labels:  x11
gfxprim
Open-source modular 2D bitmap graphics library with emphasis on speed and correctness.
Stars: ✭ 32 (+23.08%)
Mutual labels:  x11
x11
Bindings to X11 for the D programming language
Stars: ✭ 20 (-23.08%)
Mutual labels:  x11
hotkey
⌨️ cross-platform hotkey package
Stars: ✭ 82 (+215.38%)
Mutual labels:  x11
funcd
Daemon for functional keys (works without X11)
Stars: ✭ 14 (-46.15%)
Mutual labels:  x11

inputplug

inputplug is a very simple daemon which monitors XInput events and runs arbitrary scripts on hierarchy change events (such as a device being attached, removed, enabled or disabled).

To build the project, run cargo build.


NAME

inputplug — XInput event monitor

SYNOPSIS

inputplug [-v] [-n] [-d] [-0] -c command-prefix

inputplug [-h|--help]

DESCRIPTION

inputplug is a daemon which connects to a running X server and monitors its XInput hierarchy change events. Such events arrive when a device is being attached or removed, enabled or disabled etc.

When a hierarchy change happens, inputplug parses the event notification structure, and calls the command specified by command-prefix. The command receives four arguments:

  • command-prefix event-type device-id device-type device-name

Event type may be one of the following:

  • XIMasterAdded
  • XIMasterRemoved
  • XISlaveAdded
  • XISlaveRemoved
  • XISlaveAttached
  • XISlaveDetached
  • XIDeviceEnabled
  • XIDeviceDisabled

Device type may be any of those:

  • XIMasterPointer
  • XIMasterKeyboard
  • XISlavePointer
  • XISlaveKeyboard
  • XIFloatingSlave

Device identifier is an integer. The device name may have embedded spaces.

OPTIONS

A summary of options is included below.

  • -h, --help

    Show help (--help shows more details).

  • -v

    Be a bit more verbose.

  • -n

    Start up, monitor events, but don't actually run anything. With verbose more enabled, would print the actual command it'd run. This implies -d.

  • -d

    Don't daemonise. Run in the foreground.

  • -0

    On start, trigger added and enabled events for each plugged devices. A master device will trigger the "added" event while a slave device will trigger both the "added" and the "enabled" device.

  • -c command-prefix

    Command prefix to run. Unfortunately, currently this is passed to execvp(3) directly, so spaces aren't allowed. This is subject to change in future.

  • -p pidfile

    Write the process ID of the running daemon to the file pidfile

ENVIRONMENT

  • DISPLAY

    X11 display to connect to.

SEE ALSO

xinput(1)

COPYRIGHT

Copyright (C) 2013, 2014, 2018, 2020, 2021 Andrej Shadura.

Copyright (C) 2014, 2020 Vincent Bernat.

Licensed as MIT/X11.

AUTHOR

Andrej Shadura [email protected]

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].