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:
- wmctrl - command line tool to interact with an EWMH/NetWM compatible X Window Manager.
- xse - interface to XSendEvent.
- XGetInputFocus - interface to XGetInputFocus (this is part of input_event package).
To install:
- Make sure you've enables in Linux kernel Device Drivers -> Input device support -> Event interface
- Install wmctrl and xse.
Gentoo users:
emerge wmctrl xse
- 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
- Put main script and example config into: /usr/local/sbin/input_event and /etc/input_event.actions
To configure:
- 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
- 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