awesome/lib/awful/init.lua

67 lines
2.1 KiB
Lua

---------------------------------------------------------------------------
--- AWesome Functions very UsefuL
--
-- @author Julien Danjou <julien@danjou.info>
-- @copyright 2008 Julien Danjou
-- @module awful
---------------------------------------------------------------------------
-- TODO: This is a hack for backwards-compatibility with 3.5, remove!
local util = require("awful.util")
local gtimer = require("gears.timer")
local gdebug = require("gears.debug")
function timer(...) -- luacheck: ignore
gdebug.deprecate("gears.timer", {deprecated_in=4})
return gtimer(...)
end
--TODO: This is a hack for backwards-compatibility with 3.5, remove!
-- Set awful.util.spawn* and awful.util.pread.
local spawn = require("awful.spawn")
util.spawn = function(...)
gdebug.deprecate("awful.spawn", {deprecated_in=4})
return spawn.spawn(...)
end
util.spawn_with_shell = function(...)
gdebug.deprecate("awful.spawn.with_shell", {deprecated_in=4})
return spawn.with_shell(...)
end
util.pread = function()
gdebug.deprecate("Use awful.spawn.easy_async() "
.. "for an asynchronous alternative", {deprecated_in=4})
return ""
end
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");
wibar = require("awful.wibar");
wibox = require("awful.wibox");
startup_notification = require("awful.startup_notification");
tooltip = require("awful.tooltip");
ewmh = require("awful.ewmh");
titlebar = require("awful.titlebar");
rules = require("awful.rules");
popup = require("awful.popup");
spawn = spawn;
}
-- vim: filetype=lua:expandtab:shiftwidth=4:tabstop=8:softtabstop=4:textwidth=80