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
|
2014-05-20 13:02:39 +02:00
|
|
|
-- @module awful
|
2008-09-29 16:49:18 +02:00
|
|
|
---------------------------------------------------------------------------
|
|
|
|
|
2018-12-27 04:26:05 +01:00
|
|
|
require("awful._compat")
|
2015-09-30 00:05:56 +02:00
|
|
|
|
2019-11-18 00:46:22 +01:00
|
|
|
local deprecated = {
|
|
|
|
ewmh = true
|
|
|
|
}
|
|
|
|
|
|
|
|
local ret = {
|
2012-06-12 20:13:09 +02:00
|
|
|
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");
|
2018-12-29 02:47:06 +01:00
|
|
|
keyboard = require("awful.keyboard");
|
2012-06-12 20:13:09 +02:00
|
|
|
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");
|
2019-11-18 00:46:22 +01:00
|
|
|
permissions = require("awful.permissions");
|
2012-10-23 20:32:59 +02:00
|
|
|
titlebar = require("awful.titlebar");
|
2019-04-29 05:49:47 +02:00
|
|
|
wallpaper = require("awful.wallpaper");
|
2016-04-17 11:30:34 +02:00
|
|
|
rules = require("awful.rules");
|
2016-02-21 08:31:31 +01:00
|
|
|
popup = require("awful.popup");
|
2018-12-27 04:26:05 +01:00
|
|
|
spawn = require("awful.spawn");
|
This commit begins the development of a more appropriate user facing
screenshot API. It extends a prior commit which extended the lower level
content API, which had been a property of the client object but is now
available as a property of the screen object and a method of the root
object.
This commit creates a new screenshot module for the awful module. The
public functions include root(), screen(), client(), snipper(), and
snip(). These take root window, screen, and client window screenshots,
launch an interactive snip tool for cropped screenshots, and take a
cropped screenshot of a geometry passed by argument, respectively. The
init() function is also available for configuration. Using this library
is more appropriate for the average rc.lua.
Since the API is new, this commit does not include any changes to
rc.lua. The developers can modify rc.lua when there is sufficient
confidence in API stability and robustness.
lib/awful/init.lua is modified so that the awful module includes the new
lib/awful/screenshot.lua submodule.
Signed off: Brian Sobulefsky <brian.sobulefsky@protonmail.com>
2021-10-12 05:54:47 +02:00
|
|
|
screenshot = require("awful.screenshot");
|
2012-06-12 20:13:09 +02:00
|
|
|
}
|
2008-09-29 16:49:18 +02:00
|
|
|
|
2019-11-18 00:46:22 +01:00
|
|
|
-- Lazy load deprecated modules to reduce the numbers of loop dependencies.
|
|
|
|
return setmetatable(ret,{
|
|
|
|
__index = function(_, key)
|
|
|
|
if deprecated[key] then
|
|
|
|
rawset(ret, key, require("awful."..key))
|
|
|
|
end
|
|
|
|
return rawget(ret, key)
|
|
|
|
end
|
|
|
|
})
|
|
|
|
|
2011-09-11 16:50:01 +02:00
|
|
|
-- vim: filetype=lua:expandtab:shiftwidth=4:tabstop=8:softtabstop=4:textwidth=80
|