2008-09-29 16:49:18 +02:00
|
|
|
---------------------------------------------------------------------------
|
2014-05-20 13:02:39 +02:00
|
|
|
--- AWesome Functions very UsefuL
|
|
|
|
--
|
2008-09-29 16:49:18 +02:00
|
|
|
-- @author Julien Danjou <julien@danjou.info>
|
|
|
|
-- @copyright 2008 Julien Danjou
|
|
|
|
-- @release @AWESOME_VERSION@
|
2014-05-20 13:02:39 +02:00
|
|
|
-- @module awful
|
2008-09-29 16:49:18 +02:00
|
|
|
---------------------------------------------------------------------------
|
|
|
|
|
2014-12-07 09:44:58 +01:00
|
|
|
-- TODO: This is a hack for backwards-compatibility with 3.5, remove!
|
|
|
|
local util = require("awful.util")
|
|
|
|
local gtimer = require("gears.timer")
|
2016-02-07 15:02:25 +01:00
|
|
|
function timer(...) -- luacheck: ignore
|
2014-12-07 09:44:58 +01:00
|
|
|
util.deprecate("gears.timer")
|
|
|
|
return gtimer(...)
|
|
|
|
end
|
|
|
|
|
2015-09-30 00:05:56 +02:00
|
|
|
--TODO: This is a hack for backwards-compatibility with 3.5, remove!
|
2015-10-10 20:26:07 +02:00
|
|
|
-- Set awful.util.spawn* and awful.util.pread.
|
2015-09-30 00:05:56 +02:00
|
|
|
local spawn = require("awful.spawn")
|
|
|
|
|
|
|
|
util.spawn = function(...)
|
|
|
|
util.deprecate("awful.spawn")
|
2015-10-10 20:26:07 +02:00
|
|
|
return spawn.spawn(...)
|
2015-09-30 00:05:56 +02:00
|
|
|
end
|
|
|
|
|
|
|
|
util.spawn_with_shell = function(...)
|
|
|
|
util.deprecate("awful.spawn.with_shell")
|
2015-10-10 20:26:07 +02:00
|
|
|
return spawn.with_shell(...)
|
|
|
|
end
|
|
|
|
|
2016-07-09 12:04:42 +02:00
|
|
|
util.pread = function()
|
|
|
|
util.deprecate("Use io.popen() directly or look at awful.spawn.easy_async() "
|
|
|
|
.. "for an asynchronous alternative")
|
2016-07-17 15:29:15 +02:00
|
|
|
return ""
|
2015-09-30 00:05:56 +02:00
|
|
|
end
|
|
|
|
|
2012-06-12 20:13:09 +02:00
|
|
|
return
|
|
|
|
{
|
|
|
|
client = require("awful.client");
|
|
|
|
completion = require("awful.completion");
|
|
|
|
layout = require("awful.layout");
|
|
|
|
placement = require("awful.placement");
|
|
|
|
prompt = require("awful.prompt");
|
|
|
|
screen = require("awful.screen");
|
|
|
|
tag = require("awful.tag");
|
|
|
|
util = require("awful.util");
|
|
|
|
widget = require("awful.widget");
|
|
|
|
keygrabber = require("awful.keygrabber");
|
|
|
|
menu = require("awful.menu");
|
|
|
|
mouse = require("awful.mouse");
|
|
|
|
remote = require("awful.remote");
|
|
|
|
key = require("awful.key");
|
|
|
|
button = require("awful.button");
|
2016-05-08 08:10:35 +02:00
|
|
|
wibar = require("awful.wibar");
|
2012-06-12 20:13:09 +02:00
|
|
|
wibox = require("awful.wibox");
|
|
|
|
startup_notification = require("awful.startup_notification");
|
|
|
|
tooltip = require("awful.tooltip");
|
|
|
|
ewmh = require("awful.ewmh");
|
2012-10-23 20:32:59 +02:00
|
|
|
titlebar = require("awful.titlebar");
|
2016-04-17 11:30:34 +02:00
|
|
|
rules = require("awful.rules");
|
2015-09-30 00:05:56 +02:00
|
|
|
spawn = spawn;
|
2012-06-12 20:13:09 +02:00
|
|
|
}
|
2008-09-29 16:49:18 +02:00
|
|
|
|
2011-09-11 16:50:01 +02:00
|
|
|
-- vim: filetype=lua:expandtab:shiftwidth=4:tabstop=8:softtabstop=4:textwidth=80
|