-
-
Save jerblack/84c9cea75ea7802a94f4b16cf21e81d3 to your computer and use it in GitHub Desktop.
Using the X4daemon to enable the extra buttons on the SideWinder X4 Keyboard
NO packages are available for this daemon so we have to build from source. http://geekparadise.de/x4daemon
-
The page above links to the source. Download this file and extract to ~.x4
-
Install libusb headers
sudo apt install libusb-1.0-0-dev
-
Before compiling, update the file ~/.x4/x4daemon-0.4.4/src/x4daemon.c. Add the following headers to the bottom of the list at line 32
#include <sys/stat.h>
#include <sys/param.h>
#include <sys/types.h>
-
Compile the program
cd ~/.x4/x4daemon-0.4.4/ ./configure make # verify it works by running cmd below and testing keys sudo x4daemon -w
-
Start the daemon at logon by adding the line below to /etc/rc.local (which starts as root at logon)
x4daemon -w -D
-
Buttons are mapped to alternate but standard keyboard keys
KEY_PROG1, KEY_PROG2, KEY_WWW, KEY_MAIL, KEY_COMPUTER, KEY_PHONE, KEY_MEDIA, KEY_RECORD, KEY_PLAYPAUSE, KEY_PREVIOUSSONG, KEY_NEXTSONG, KEY_MUTE, KEY_VOLUMEUP, KEY_VOLUMEDOWN, KEY_CALC
-
Use xev to find out which key is which
http://askubuntu.com/questions/133113/emulate-keypad-on-laptop/142339#142339
-
Install AutoKey
sudo apt install autokey-gtk
-
Create Folder and phrases for each key -- Click Hotkey > Set and press the keyboard button that will intiiate the macro -- Type the macro as a phrase in the text box
S1 --> + S2 --> +