2009-08-20 16:18:52 +02:00
|
|
|
--- awesome core API
|
|
|
|
-- @author Julien Danjou <julien@danjou.info>
|
|
|
|
-- @copyright 2008-2009 Julien Danjou
|
2014-05-20 00:22:35 +02:00
|
|
|
-- @module awesome
|
2009-08-20 16:18:52 +02:00
|
|
|
|
|
|
|
--- awesome global table.
|
2014-05-20 00:22:35 +02:00
|
|
|
--
|
2009-08-20 16:18:52 +02:00
|
|
|
-- @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.
|
2014-05-20 00:22:35 +02:00
|
|
|
-- @table awesome
|
2009-08-20 16:18:52 +02:00
|
|
|
|
|
|
|
--- Quit awesome.
|
2014-05-20 00:22:35 +02:00
|
|
|
--
|
|
|
|
-- @function quit
|
2009-08-20 16:18:52 +02:00
|
|
|
|
|
|
|
--- Execute another application, probably a window manager, to replace
|
|
|
|
-- awesome.
|
2014-05-20 00:22:35 +02:00
|
|
|
--
|
2009-08-20 16:18:52 +02:00
|
|
|
-- @param cmd The command line to execute.
|
2014-05-20 00:22:35 +02:00
|
|
|
-- @function exec
|
2009-08-20 16:18:52 +02:00
|
|
|
|
|
|
|
--- Restart awesome.
|
2014-05-20 00:22:35 +02:00
|
|
|
--
|
2009-08-20 16:18:52 +02:00
|
|
|
-- @name restart
|
|
|
|
-- @class function
|
|
|
|
|
2009-09-28 11:44:19 +02:00
|
|
|
--- Spawn a program.
|
2014-05-20 00:22:35 +02:00
|
|
|
--
|
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
|
2014-05-20 00:22:35 +02:00
|
|
|
--
|
2012-01-29 14:08:57 +01:00
|
|
|
-- @param name The file name
|
2012-05-27 19:20:34 +02:00
|
|
|
-- @return A cairo image surface as light user datum
|
2014-05-20 00:22:35 +02:00
|
|
|
-- @function load_image
|
2012-01-29 14:08:57 +01:00
|
|
|
|
2014-03-07 13:49:24 +01:00
|
|
|
--- Register a new xproperty.
|
2014-05-20 00:22:35 +02:00
|
|
|
--
|
2014-03-07 13:49:24 +01:00
|
|
|
-- @param name The name of the X11 property
|
|
|
|
-- @param type One of "string", "number" or "boolean"
|
2014-05-20 00:22:35 +02:00
|
|
|
-- @function register_xproperty
|
2014-03-07 13:49:24 +01:00
|
|
|
|
2014-03-23 18:15:03 +01:00
|
|
|
--- Change a xproperty.
|
2014-05-20 00:22:35 +02:00
|
|
|
--
|
2014-03-23 18:15:03 +01:00
|
|
|
-- @param name The name of the X11 property
|
|
|
|
-- @param value The new value for the property
|
2014-05-20 00:22:35 +02:00
|
|
|
-- @function set_xproperty
|
2014-03-23 18:15:03 +01:00
|
|
|
|
|
|
|
--- Get the value of a xproperty.
|
2014-05-20 00:22:35 +02:00
|
|
|
--
|
2014-03-23 18:15:03 +01:00
|
|
|
-- @param name The name of the X11 property
|
2014-05-20 00:22:35 +02:00
|
|
|
-- @function get_xproperty
|
2014-03-23 18:15:03 +01:00
|
|
|
|
2009-08-20 16:18:52 +02:00
|
|
|
--- Add a global signal.
|
2014-05-20 00:22:35 +02:00
|
|
|
--
|
2009-08-20 16:18:52 +02:00
|
|
|
-- @param name A string with the event name.
|
|
|
|
-- @param func The function to call.
|
2014-05-20 00:22:35 +02:00
|
|
|
-- @function connect_signal
|
2009-08-20 16:18:52 +02:00
|
|
|
|
|
|
|
--- Remove a global signal.
|
2014-05-20 00:22:35 +02:00
|
|
|
--
|
2009-08-20 16:18:52 +02:00
|
|
|
-- @param name A string with the event name.
|
|
|
|
-- @param func The function to call.
|
2014-05-20 00:22:35 +02:00
|
|
|
-- @function disconnect_signal
|
2009-08-20 16:18:52 +02:00
|
|
|
|
|
|
|
--- Emit a global signal.
|
2014-05-20 00:22:35 +02:00
|
|
|
--
|
2009-08-20 16:18:52 +02:00
|
|
|
-- @param name A string with the event name.
|
|
|
|
-- @param ... Signal arguments.
|
2014-05-20 00:22:35 +02:00
|
|
|
-- @function emit_signal
|