GSP
Quick Navigator

Search Site

Unix VPS
A - Starter
B - Basic
C - Preferred
D - Commercial
MPS - Dedicated
Previous VPSs
* Sign Up! *

Support
Contact Us
Online Help
Handbooks
Domain Status
Man Pages

FAQ
Virtual Servers
Pricing
Billing
Technical

Network
Facilities
Connectivity
Topology Map

Miscellaneous
Server Agreement
Year 2038
Credits
 

USA Flag

 

 

Man Pages
NETEVENT(1) netevent Manual NETEVENT(1)

netevent - show, share, clone evdev event devices

netevent show DEVICE [COUNT]

netevent cat [OPTIONS] DEVICE

netevent create [OPTIONS] DEVICE

netevent daemon [OPTIONS] SOCKETNAME

netevent command SOCKETNAME COMMAND

Some options can be used on multiple commands.

Show a short usage message.

netevent create

Change how duplicate devices are to be treated. MODE can be:

reject

The default. If a device with an already existing ID is received, treat this as an error and exit.


resume

Assume the source was restarted and is sending the same device again. Currently this does not verify whether that's actually the case.


replace

Remove the previous device and replace it with the new one. Since resume does not verify the device, this is the preferred mode if the destination event device node does not need to be persistent.


Rather than reading from stdin, listen on the specified unix (or abstract if prefixed with "@") socket.
Used together with --listen this causes netevent to first try to connect to the socket. If successful, it'll pass events through to the instance it connected to. Otherwise, if --daemonize was also specified, it'll fork off a new instance to which it connects first. If --daemonize was not specified it'll return an error code.
When using --listen, this option decides how to proceed after a client disconnects. The default is to accept a new client and resume according to the configured --duplicates mode. Alternatively end can be used to cause the main loop to exit successfully.
Run as a background daemon. When using --listen it may also desirable to run netevent in the background.

netevent cat and netevent create

Use a netevent 1 compatible protocol.
Use a netevent 2 compatible protocol. This is the default.

netevent cat and netevent show

Grab the input device to prevent it from also firing events on the system. This is the default.
Do not grab the input device.

netevent daemon

Run commands from the specified file. Can be specified multiple times. This can be used to fully setup the daemon with outputs, devices and hotkeys. See the DAEMON COMMANDS section for details.

Queue a command when an event occurs. The command can contain semicolons to execute multiple commands. Multiple parameters will be concatenated with a space.

The following events currently exist:

Executed on a use command or when an output device fails and a fallback is being activated.

Executed whenever the grab command is used.

Executed whenever a device we are reading from disappears.


These commands are executed immediately after such an event has occurred. Note that there's nothing preventing you from building an endless loop by adding event-triggering commands in this place, so, just don't.

Remove a command bound to an event.
Nothing. Bind as hotkey to ignore an event and be explicit about it.
Set the grabbing state. Currently this also controls whether events are passed to the current output.
Set the current output.
Add a new output. OUTPUT_NAME can be an arbitrary name used later for output remove or use commands. OUTPUT_SPEC can currently be either a file/fifo, a command to pipe to when prefixed with exec:, or the name of a unix or abstract socket when using unix:/path or unix:@abstractName. See the examples above.

If the --resume parameter is provided, assume the destination already knows all the existing devices and do not recreate them.

Remove an existing output.
Long version of use OUTPUT_NAME.
Execute a command. Mostly useful for hotkeys.
Execute daemon commands from a file.
Cause the daemon to quit.
Add a hotkey to an existing device. DEVICE is the name used when adding the device via device add. EVENT is an event specification of the form TYPE:CODE:VALUE, as printed out by netevent show. COMMAND is a daemon command to be executed when the event is read.
Remove a hotkey for an event on a device.
Register an evdev device.
Remove an evdev device.
Rename a device. Useful when adding output of which the devices should have a recognizable name.
Reset a device's name to its default.
Change whether a device's removal should be announced to the outputs.
Show current inputs, outputs, devices and hotkeys.

The daemon will maintain the following environment variables to provide some information to commands executed via an exec hotkey:

This will contain the name of the output currently in use.

This will be "1" if the daemon is currently grabbing, or "0" if it is not. Note that with multiple input devices, failure to grab an input device will cause this variable to be in an undefined state.


Please report bugs to via <https://github.com/Blub/netevent/issues> .

Wolfgang Bumiller


Search for    or go to Top of page |  Section 1 |  Main Index

Powered by GSP Visit the GSP FreeBSD Man Page Interface.
Output converted with ManDoc.