Skip to content
Blub edited this page Sep 14, 2010 · 2 revisions

In showevents-mode (netevent -showevents <count> <event-device>) the specified event device is opened and the given amount of following events (or infinite if count is zero) will be printed in a human readable form. This is useful to find out event information to create a hotkey.
By default, the device is being grabbed, unless the -nograb option is added. In this case, no other process will recieve events from this device. This is useful if you want to find out event-types to Share devices over the net, or if you simply want to create device-specific hotkeys.

Options for showevents mode:

option effect
-nograb Do not grab the input device immediately
-quiet Do not actually print event information. Use this if you only want it to act as a hotkey-tool
-ontoggle <command> Execute the specified shell command (using sh -c <command>) whenever device-grabbing changes state. The GRAB environment variable will be available and will be 0 if grabbing was disabled, and 1 if grabbing was enabled.
-hotkey type:code:value <command> Whenever the currently read event equals the specified combination of type code and value (see Event types), drop the event (it will not be printed to stdout), and execute the specified command using sh -c <command>. There are 3 special commands which are directly interpreted: “@toggle”, “@toggle-on”, “@toggle-off”, which correspond to toggling, activating and deactivating device grabbing respectively.
Clone this wiki locally