awesome/lib
Brian Sobulefsky 12a3fae456 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>
2022-11-13 16:53:32 -08:00
..
awful This commit begins the development of a more appropriate user facing 2022-11-13 16:53:32 -08:00
beautiful doc: Add a mandatory `@noreturn` for functions and methods. 2022-08-29 22:49:45 -07:00
gears shape: Add a "solid shadow" shape. (#3489) 2022-10-16 02:29:09 -07:00
menubar menubar.init: Update the property documentation. 2022-08-29 22:49:47 -07:00
naughty naughty.widget.title: Update the property documentation. 2022-08-29 22:49:47 -07:00
ruled fix(ruled: client: matching_rules): regression after 75019c3f6f (#3694) 2022-09-15 23:44:48 -07:00
wibox wibox.widget.slider: Add a handle cursor property (#3734) 2022-10-31 10:05:13 -07:00
beautiful.lua Add pointless naughty.lua and beautiful.lua files (#1259) 2016-12-08 23:53:50 +01:00
naughty.lua Add pointless naughty.lua and beautiful.lua files (#1259) 2016-12-08 23:53:50 +01:00