Software: Input Event

Enable the use and configuration of special keyboard keys

This script is similar to lineakd and other managers for keyboards with additional (multimedia) keys. It read input events from Linux kernel, so it doesn't depend on X Window knowledge about these keys and it will work in cases lineakd and some others doesn't. It's very small, simple and highly configurable.

This script use few external helper programs to interact with X Window:

To install:

  1. Make sure you've enables in Linux kernel Device Drivers -> Input device support -> Event interface
  2. Install wmctrl and xse. Gentoo users: emerge wmctrl xse
  3. Unpack input_event-0.2.0.tar.gz and run this to install XGetInputFocus: gcc -o /usr/local/bin/XGetInputFocus \ -L/usr/X11R6/lib -lX11 XGetInputFocus.c
  4. Put main script and example config into: /usr/local/sbin/input_event and /etc/input_event.actions

To configure:

  1. Run this command and press your keys to find their names (you may need to use different device eventX: INPUT_EVENT_DEBUG=1 input_event /dev/input/event1
  2. Check /etc/input_event.actions, it has documentation about config file format and some examples.

After configuring /etc/input_event.actions you can just run input_event /dev/input/event1

Download