Modules and Top-level Methods

Modules

dbus

D-Bus

evdev

evdev

event

Core events

file

File events

hwinfo

hwinfo

log

Logging

lua

Lua scripting

misc

misc

os

OS environment

roots

Get roots

spawn

Spawn child processes

udev

udev

xorg

Xorg

Methods

chdir(dir)

Change working directory

exec(argv)

Execute another binary

exit(exit_code)

Exit deai

load_plugin(file)

Load a single plugin

load_plugin_from_dir(path)

Load plugins from a directory

quit()

Exit deai

register_module(name, module)

Register a module

chdir(dir) integer
Return type:

integer

Parameters:

dir (string)

Change working directory

exec(argv) integer
Return type:

integer

Parameters:

argv ([string])

Execute another binary

This call replaces the current process by running another binary. One use case for this is to restart deai.

exit(exit_code) void
Return type:

void

Parameters:

exit_code (integer)

Exit deai

Instruct deai to exit. deai won’t exit immediately when the function is called, it will exit next time the control returns to the mainloop. (e.g. after your script finished running).

load_plugin(file) void
Return type:

void

Parameters:

file (string)

Load a single plugin

load_plugin_from_dir(path) integer
Return type:

integer

Parameters:

path (string)

Load plugins from a directory

quit() void
Return type:

void

Exit deai

Equivalent to exit(0)

register_module(name, module) integer
Return type:

integer

Parameters:
  • name (string)

  • module (module)

Register a module