2009-08-20 16:18:52 +02:00
|
|
|
--- awesome core API
|
|
|
|
-- @author Julien Danjou <julien@danjou.info>
|
|
|
|
-- @copyright 2008-2009 Julien Danjou
|
|
|
|
module("awesome")
|
|
|
|
|
|
|
|
--- awesome global table.
|
|
|
|
-- @field version The version of awesome.
|
2012-11-19 18:56:46 +01:00
|
|
|
-- @field release The release name of awesome.
|
2009-08-20 16:18:52 +02:00
|
|
|
-- @field conffile The configuration file which has been loaded.
|
2014-03-16 20:09:43 +01:00
|
|
|
-- @field startup True if we are still in startup, false otherwise.
|
2014-03-01 19:28:06 +01:00
|
|
|
-- @field startup_errors Error message for errors that occured during startup.
|
2014-02-23 12:14:50 +01:00
|
|
|
-- @field composite_manager_running True if a composite manager is running.
|
2009-08-20 16:18:52 +02:00
|
|
|
-- @class table
|
|
|
|
-- @name awesome
|
|
|
|
|
|
|
|
--- Quit awesome.
|
|
|
|
-- @name quit
|
|
|
|
-- @class function
|
|
|
|
|
|
|
|
--- Execute another application, probably a window manager, to replace
|
|
|
|
-- awesome.
|
|
|
|
-- @param cmd The command line to execute.
|
|
|
|
-- @name exec
|
|
|
|
-- @class function
|
|
|
|
|
|
|
|
--- Restart awesome.
|
|
|
|
-- @name restart
|
|
|
|
-- @class function
|
|
|
|
|
2009-09-28 11:44:19 +02:00
|
|
|
--- Spawn a program.
|
2013-03-10 14:54:58 +01:00
|
|
|
-- @param cmd The command to launch. Either a string or a table of strings.
|
2009-09-28 11:44:19 +02:00
|
|
|
-- @param use_sn Use startup-notification, true or false, default to true.
|
2010-04-24 17:52:52 +02:00
|
|
|
-- @return Process ID if everything is OK, or an error string if an error occured.
|
2009-09-28 11:44:19 +02:00
|
|
|
|
2012-01-29 14:08:57 +01:00
|
|
|
--- Load an image
|
|
|
|
-- @param name The file name
|
2012-05-27 19:20:34 +02:00
|
|
|
-- @return A cairo image surface as light user datum
|
2012-01-29 14:08:57 +01:00
|
|
|
-- @name load_image
|
|
|
|
-- @class function
|
|
|
|
|
2014-03-07 13:49:24 +01:00
|
|
|
--- Register a new xproperty.
|
|
|
|
-- @param name The name of the X11 property
|
|
|
|
-- @param type One of "string", "number" or "boolean"
|
|
|
|
-- @name register_xproperty
|
|
|
|
-- @class function
|
|
|
|
|
2014-03-23 18:15:03 +01:00
|
|
|
--- Change a xproperty.
|
|
|
|
-- @param name The name of the X11 property
|
|
|
|
-- @param value The new value for the property
|
|
|
|
-- @name set_xproperty
|
|
|
|
-- @class function
|
|
|
|
|
|
|
|
--- Get the value of a xproperty.
|
|
|
|
-- @param name The name of the X11 property
|
|
|
|
-- @name get_xproperty
|
|
|
|
-- @class function
|
|
|
|
|
2009-08-20 16:18:52 +02:00
|
|
|
--- Add a global signal.
|
|
|
|
-- @param name A string with the event name.
|
|
|
|
-- @param func The function to call.
|
2010-08-25 20:37:49 +02:00
|
|
|
-- @name connect_signal
|
2009-08-20 16:18:52 +02:00
|
|
|
-- @class function
|
|
|
|
|
|
|
|
--- Remove a global signal.
|
|
|
|
-- @param name A string with the event name.
|
|
|
|
-- @param func The function to call.
|
2010-08-25 20:37:49 +02:00
|
|
|
-- @name disconnect_signal
|
2009-08-20 16:18:52 +02:00
|
|
|
-- @class function
|
|
|
|
|
|
|
|
--- Emit a global signal.
|
|
|
|
-- @param name A string with the event name.
|
|
|
|
-- @param ... Signal arguments.
|
|
|
|
-- @name emit_signal
|
|
|
|
-- @class function
|