LinEAK


Linux support for Easy Access and Internet Keyboards
Documentation: Lineak Default Plugins


LINEAK_DEFAULTPLUGIN

DESCRIPTION

LinEAK, Linux support for Easy Access and Internet Keyboards, features X11 support, windowmanager independence, ability to configure all keys through GUI or .conf file, volume control and sound controls.

This plugin contains macros that can be used in a configuration file that facilitate contolling of volume, cdrom eject, etc. These macros use to be a part of the lineakd daemon. However, since version 0.8 they have been separated out into this plugin. The lineakd daemon no longer implicitly knows about configuration file macros.

lineakd is the daemon that runs in the background of an X session and listens to incoming events from multimedia buttons.

Macros

The default plugin supports 8 Macros. Since lineakd 0.7 macros can also take one or more arguments.
Macro definitions are as follows.
For the EAK_MUTE macro. We have three forms that are acceptible.
EAK_MUTE
This is the default and original macro form. In this form you require a directive in your config file in order for the macro to know which mixer device to adjust. e.g. MixerDevice = /dev/mixer
EAK_MUTE(X)
Here X is a number. The number is a volume to mute to. Currently this needs revisiting. If the number is too low it will merely change the balance. I suggest a value around 10000. I will fix this later so that it's a relative value from the minimum. In this form you require a directive in your config file in order for the macro to know which mixer device to adjust. e.g. MixerDevice = /dev/mixer
EAK_MUTE(X,device,X2,device2,X3,device3,...)
X is a volume to mute to, and device is a string name of a mixer device (e.g. "/dev/mixer" to mute to. As with the previous macro, you will have to experiment with a good value.
For the EAK_VOLUP and EAK_VOLDOWN macros. Each have the following three forms.
EAK_VOLUP or EAK_VOLDOWN
Increment or decrement the sound by the default amount. In this form you require a directive in your config file such as: MixerDevice = /dev/mixer in order for the macro to know which mixer device to adjust.
EAK_VOLUP(X) or EAK_VOLDOWN(X)
Increment or decrement the sound by X. This value is best used between 1 and 5, and the sound modification code scales the value, unlike the MUTE macro. In this form you require a directive in your config file such as: MixerDevice = /dev/mixer in order for the macro to know which mixer device to adjust.
EAK_VOLUP(X,device,X2,device2,X3,device3,...) or EAK_VOLDOWN(X,device,X2,device2,X3,device3,...)
X is the volume to adjust the following device by. Like the previous form of this macro, a value of 1-5 is best.
For the EAK_OPEN_TRAY, EAK_OPEN_TRAY_SCSI and EAK_CLOSE_TRAY macros. There are two forms for each.
EAK_OPEN_TRAY, EAK_OPEN_TRAY_SCSI, EAK_CLOSE_TRAY
These are the default macros. It will eject or close the device defined in your config file as: CdromDevice = /dev/cdrom
EAK_OPEN_TRAY(device1,device2,device3,...) EAK_OPEN_TRAY_SCSI(device1,device2,device3,...) EAK_CLOSE_TRAY(device1,device2,device3,...) This macro form allows you to choose the device to eject. You can have a list of one or more devices separated by a comma. For the EAK_SLEEP macro. It currently does nothing. In the future I will probably use it to invoke software suspend.
For the EAK_SCREEN_LOCK macro. There is only one form.
EAK_SCREEN_LOCK(X) Where X is either KDE, GNOME or XSCREENSAVER The values GNOME or XSCREENSAVER do the same thing. They invoke the Xscreensaver program to lock the desktop.