From e802f026088d0da590931abd025522ca0116afe8 Mon Sep 17 00:00:00 2001 From: Aire-One Date: Thu, 24 Oct 2024 01:40:29 +0200 Subject: [PATCH] wip --- src/awesomerc/{init.lua => init.tl} | 0 tlconfig.lua | 9 + types/awesomerc.tl | 677 +++++++++++++++++++ types/awful.d.tl | 52 ++ types/awful/autofocus.d.tl | 1 + types/awful/button.d.tl | 29 + types/awful/client.d.tl | 219 ++++++ types/awful/completion.d.tl | 11 + types/awful/hotkeys_popup.d.tl | 13 + types/awful/hotkeys_popup/keys.d.tl | 1 + types/awful/hotkeys_popup/widget.d.tl | 42 ++ types/awful/key.d.tl | 31 + types/awful/keyboard.d.tl | 16 + types/awful/keygrabber.d.tl | 65 ++ types/awful/layout.d.tl | 23 + types/awful/menu.d.tl | 25 + types/awful/permissions.d.tl | 10 + types/awful/placement.d.tl | 48 ++ types/awful/popup.d.tl | 128 ++++ types/awful/prompt.d.tl | 10 + types/awful/rules.d.tl | 8 + types/awful/screen.d.tl | 109 +++ types/awful/spawn.d.tl | 36 + types/awful/tag.d.tl | 85 +++ types/awful/titlebar.d.tl | 39 ++ types/awful/tooltip.d.tl | 116 ++++ types/awful/util.d.tl | 13 + types/awful/wallpaper.d.tl | 50 ++ types/awful/wibar.d.tl | 145 ++++ types/awful/widget.d.tl | 35 + types/awful/widget/button.d.tl | 107 +++ types/awful/widget/calendar_popup.d.tl | 56 ++ types/awful/widget/clienticon.d.tl | 41 ++ types/awful/widget/common.d.tl | 8 + types/awful/widget/keyboardlayout.d.tl | 40 ++ types/awful/widget/launcher.d.tl | 110 +++ types/awful/widget/layoutbox.d.tl | 58 ++ types/awful/widget/layoutlist.d.tl | 62 ++ types/awful/widget/only_on_screen.d.tl | 43 ++ types/awful/widget/prompt.d.tl | 84 +++ types/awful/widget/taglist.d.tl | 53 ++ types/awful/widget/tasklist.d.tl | 53 ++ types/awful/widget/watch.d.tl | 38 ++ types/beautiful.d.tl | 27 + types/dbus.d.tl | 8 + types/gears.d.tl | 38 ++ types/gears/cache.d.tl | 9 + types/gears/debug.d.tl | 21 + types/gears/filesystem.d.tl | 25 + types/gears/geometry.d.tl | 29 + types/gears/matcher.d.tl | 29 + types/gears/math.d.tl | 12 + types/gears/matrix.d.tl | 14 + types/gears/object.d.tl | 19 + types/gears/protected_call.d.tl | 9 + types/gears/shape.d.tl | 31 + types/gears/sort.d.tl | 8 + types/gears/string.d.tl | 17 + types/gears/surface.d.tl | 25 + types/gears/table.d.tl | 24 + types/gears/timer.d.tl | 33 + types/gears/wallpaper.d.tl | 8 + types/global_env_def.d.tl | 109 +++ types/menubar.d.tl | 26 + types/menubar/icon_theme.d.tl | 8 + types/menubar/index_theme.d.tl | 8 + types/menubar/menu_gen.d.tl | 13 + types/menubar/utils.d.tl | 18 + types/mouse.d.tl | 47 ++ types/mousegrabber.d.tl | 11 + types/naughty.d.tl | 46 ++ types/naughty/action.d.tl | 28 + types/naughty/layout.d.tl | 11 + types/naughty/layout/box.d.tl | 131 ++++ types/naughty/layout/legacy.d.tl | 8 + types/naughty/list.d.tl | 10 + types/naughty/list/actions.d.tl | 47 ++ types/naughty/list/notifications.d.tl | 55 ++ types/naughty/notification.d.tl | 121 ++++ types/naughty/widget.d.tl | 15 + types/naughty/widget/background.d.tl | 67 ++ types/naughty/widget/icon.d.tl | 117 ++++ types/naughty/widget/message.d.tl | 91 +++ types/naughty/widget/title.d.tl | 91 +++ types/root.d.tl | 20 + types/ruled.d.tl | 10 + types/ruled/client.d.tl | 17 + types/ruled/notifications.d.tl | 15 + types/selection.d.tl | 9 + types/wibox.d.tl | 96 +++ types/wibox/container.d.tl | 28 + types/wibox/container/arcchart.d.tl | 65 ++ types/wibox/container/background.d.tl | 61 ++ types/wibox/container/border.d.tl | 97 +++ types/wibox/container/constraint.d.tl | 52 ++ types/wibox/container/margin.d.tl | 55 ++ types/wibox/container/mirror.d.tl | 43 ++ types/wibox/container/place.d.tl | 63 ++ types/wibox/container/radialprogressbar.d.tl | 55 ++ types/wibox/container/rotate.d.tl | 49 ++ types/wibox/container/scroll.d.tl | 52 ++ types/wibox/container/tile.d.tl | 87 +++ types/wibox/hierarchy.d.tl | 22 + types/wibox/layout.d.tl | 20 + types/wibox/layout/align.d.tl | 57 ++ types/wibox/layout/fixed.d.tl | 54 ++ types/wibox/layout/flex.d.tl | 54 ++ types/wibox/layout/grid.d.tl | 94 +++ types/wibox/layout/manual.d.tl | 50 ++ types/wibox/layout/ratio.d.tl | 72 ++ types/wibox/layout/stack.d.tl | 61 ++ types/wibox/widget.d.tl | 36 + types/wibox/widget/base.d.tl | 52 ++ types/wibox/widget/calendar.d.tl | 27 + types/wibox/widget/checkbox.d.tl | 63 ++ types/wibox/widget/graph.d.tl | 76 +++ types/wibox/widget/imagebox.d.tl | 104 +++ types/wibox/widget/piechart.d.tl | 50 ++ types/wibox/widget/progressbar.d.tl | 90 +++ types/wibox/widget/separator.d.tl | 66 ++ types/wibox/widget/slider.d.tl | 91 +++ types/wibox/widget/systray.d.tl | 47 ++ types/wibox/widget/textbox.d.tl | 86 +++ types/wibox/widget/textclock.d.tl | 92 +++ types/xproperties.d.tl | 14 + 125 files changed, 6515 insertions(+) rename src/awesomerc/{init.lua => init.tl} (100%) create mode 100644 tlconfig.lua create mode 100644 types/awesomerc.tl create mode 100644 types/awful.d.tl create mode 100644 types/awful/autofocus.d.tl create mode 100644 types/awful/button.d.tl create mode 100644 types/awful/client.d.tl create mode 100644 types/awful/completion.d.tl create mode 100644 types/awful/hotkeys_popup.d.tl create mode 100644 types/awful/hotkeys_popup/keys.d.tl create mode 100644 types/awful/hotkeys_popup/widget.d.tl create mode 100644 types/awful/key.d.tl create mode 100644 types/awful/keyboard.d.tl create mode 100644 types/awful/keygrabber.d.tl create mode 100644 types/awful/layout.d.tl create mode 100644 types/awful/menu.d.tl create mode 100644 types/awful/permissions.d.tl create mode 100644 types/awful/placement.d.tl create mode 100644 types/awful/popup.d.tl create mode 100644 types/awful/prompt.d.tl create mode 100644 types/awful/rules.d.tl create mode 100644 types/awful/screen.d.tl create mode 100644 types/awful/spawn.d.tl create mode 100644 types/awful/tag.d.tl create mode 100644 types/awful/titlebar.d.tl create mode 100644 types/awful/tooltip.d.tl create mode 100644 types/awful/util.d.tl create mode 100644 types/awful/wallpaper.d.tl create mode 100644 types/awful/wibar.d.tl create mode 100644 types/awful/widget.d.tl create mode 100644 types/awful/widget/button.d.tl create mode 100644 types/awful/widget/calendar_popup.d.tl create mode 100644 types/awful/widget/clienticon.d.tl create mode 100644 types/awful/widget/common.d.tl create mode 100644 types/awful/widget/keyboardlayout.d.tl create mode 100644 types/awful/widget/launcher.d.tl create mode 100644 types/awful/widget/layoutbox.d.tl create mode 100644 types/awful/widget/layoutlist.d.tl create mode 100644 types/awful/widget/only_on_screen.d.tl create mode 100644 types/awful/widget/prompt.d.tl create mode 100644 types/awful/widget/taglist.d.tl create mode 100644 types/awful/widget/tasklist.d.tl create mode 100644 types/awful/widget/watch.d.tl create mode 100644 types/beautiful.d.tl create mode 100644 types/dbus.d.tl create mode 100644 types/gears.d.tl create mode 100644 types/gears/cache.d.tl create mode 100644 types/gears/debug.d.tl create mode 100644 types/gears/filesystem.d.tl create mode 100644 types/gears/geometry.d.tl create mode 100644 types/gears/matcher.d.tl create mode 100644 types/gears/math.d.tl create mode 100644 types/gears/matrix.d.tl create mode 100644 types/gears/object.d.tl create mode 100644 types/gears/protected_call.d.tl create mode 100644 types/gears/shape.d.tl create mode 100644 types/gears/sort.d.tl create mode 100644 types/gears/string.d.tl create mode 100644 types/gears/surface.d.tl create mode 100644 types/gears/table.d.tl create mode 100644 types/gears/timer.d.tl create mode 100644 types/gears/wallpaper.d.tl create mode 100644 types/global_env_def.d.tl create mode 100644 types/menubar.d.tl create mode 100644 types/menubar/icon_theme.d.tl create mode 100644 types/menubar/index_theme.d.tl create mode 100644 types/menubar/menu_gen.d.tl create mode 100644 types/menubar/utils.d.tl create mode 100644 types/mouse.d.tl create mode 100644 types/mousegrabber.d.tl create mode 100644 types/naughty.d.tl create mode 100644 types/naughty/action.d.tl create mode 100644 types/naughty/layout.d.tl create mode 100644 types/naughty/layout/box.d.tl create mode 100644 types/naughty/layout/legacy.d.tl create mode 100644 types/naughty/list.d.tl create mode 100644 types/naughty/list/actions.d.tl create mode 100644 types/naughty/list/notifications.d.tl create mode 100644 types/naughty/notification.d.tl create mode 100644 types/naughty/widget.d.tl create mode 100644 types/naughty/widget/background.d.tl create mode 100644 types/naughty/widget/icon.d.tl create mode 100644 types/naughty/widget/message.d.tl create mode 100644 types/naughty/widget/title.d.tl create mode 100644 types/root.d.tl create mode 100644 types/ruled.d.tl create mode 100644 types/ruled/client.d.tl create mode 100644 types/ruled/notifications.d.tl create mode 100644 types/selection.d.tl create mode 100644 types/wibox.d.tl create mode 100644 types/wibox/container.d.tl create mode 100644 types/wibox/container/arcchart.d.tl create mode 100644 types/wibox/container/background.d.tl create mode 100644 types/wibox/container/border.d.tl create mode 100644 types/wibox/container/constraint.d.tl create mode 100644 types/wibox/container/margin.d.tl create mode 100644 types/wibox/container/mirror.d.tl create mode 100644 types/wibox/container/place.d.tl create mode 100644 types/wibox/container/radialprogressbar.d.tl create mode 100644 types/wibox/container/rotate.d.tl create mode 100644 types/wibox/container/scroll.d.tl create mode 100644 types/wibox/container/tile.d.tl create mode 100644 types/wibox/hierarchy.d.tl create mode 100644 types/wibox/layout.d.tl create mode 100644 types/wibox/layout/align.d.tl create mode 100644 types/wibox/layout/fixed.d.tl create mode 100644 types/wibox/layout/flex.d.tl create mode 100644 types/wibox/layout/grid.d.tl create mode 100644 types/wibox/layout/manual.d.tl create mode 100644 types/wibox/layout/ratio.d.tl create mode 100644 types/wibox/layout/stack.d.tl create mode 100644 types/wibox/widget.d.tl create mode 100644 types/wibox/widget/base.d.tl create mode 100644 types/wibox/widget/calendar.d.tl create mode 100644 types/wibox/widget/checkbox.d.tl create mode 100644 types/wibox/widget/graph.d.tl create mode 100644 types/wibox/widget/imagebox.d.tl create mode 100644 types/wibox/widget/piechart.d.tl create mode 100644 types/wibox/widget/progressbar.d.tl create mode 100644 types/wibox/widget/separator.d.tl create mode 100644 types/wibox/widget/slider.d.tl create mode 100644 types/wibox/widget/systray.d.tl create mode 100644 types/wibox/widget/textbox.d.tl create mode 100644 types/wibox/widget/textclock.d.tl create mode 100644 types/xproperties.d.tl diff --git a/src/awesomerc/init.lua b/src/awesomerc/init.tl similarity index 100% rename from src/awesomerc/init.lua rename to src/awesomerc/init.tl diff --git a/tlconfig.lua b/tlconfig.lua new file mode 100644 index 0000000..88e4f97 --- /dev/null +++ b/tlconfig.lua @@ -0,0 +1,9 @@ +return { + build_dir = "build", + source_dir = "src", + include_dir = { + "src", + "types", + }, + global_env_def = "global_env_def", +} diff --git a/types/awesomerc.tl b/types/awesomerc.tl new file mode 100644 index 0000000..010b979 --- /dev/null +++ b/types/awesomerc.tl @@ -0,0 +1,677 @@ +-- awesome_mode: api-level=4:screen=on +-- If LuaRocks is installed, make sure that packages installed through it are +-- found (e.g. lgi). If LuaRocks is not installed, do nothing. +--- TODO : Write luarocks basic types definitions +-- pcall(require, "luarocks.loader") + +-- @DOC_REQUIRE_SECTION@ +-- Standard awesome library +local gears = require("gears") +local awful = require("awful") +--- TODO : This module is not yet available +-- require("awful.autofocus") +-- Widget and layout library +local wibox = require("wibox") +-- Theme handling library +local beautiful = require("beautiful") +-- Notification library +local naughty = require("naughty") +-- Declarative object management +local ruled = require("ruled") +local menubar = require("menubar") +local hotkeys_popup = require("awful.hotkeys_popup") +--- TODO : This module is not yet available +-- Enable hotkeys help widget for VIM and other apps +-- when client with a matching name is opened: +-- require("awful.hotkeys_popup.keys") + +-- {{{ Error handling +-- Check if awesome encountered an error during startup and fell back to +-- another config (This code will only ever execute for the fallback config) +-- @DOC_ERROR_HANDLING@ +naughty.connect_signal("request::display_error", function(message, startup) + naughty.notification { + urgency = "critical", + title = "Oops, an error happened" + .. (startup and " during startup!" or "!"), + message = message, + } +end) +-- }}} + +-- {{{ Variable definitions +-- @DOC_LOAD_THEME@ +-- Themes define colours, icons, font and wallpapers. +beautiful.init(gears.filesystem.get_themes_dir() .. "default/theme.lua") + +-- @DOC_DEFAULT_APPLICATIONS@ +-- This is used later as the default terminal and editor to run. +local terminal = "xterm" +local editor = os.getenv "EDITOR" or "nano" +local editor_cmd = terminal .. " -e " .. editor + +-- Default modkey. +-- Usually, Mod4 is the key with a logo between Control and Alt. +-- If you do not like this or do not have such a key, +-- I suggest you to remap Mod4 to another key using xmodmap or other tools. +-- However, you can use another modifier like Mod1, but it may interact with others. +local modkey = "Mod4" +-- }}} + +-- {{{ Menu +-- @DOC_MENU@ +-- Create a launcher widget and a main menu +local myawesomemenu = { + { + "hotkeys", + function() + hotkeys_popup.show_help(nil, awful.screen.focused()) + end, + }, + { "manual", terminal .. " -e man awesome" }, + { "edit config", editor_cmd .. " " .. awesome.conffile }, + { "restart", awesome.restart }, + { + "quit", + function() + awesome.quit() + end, + }, +} + +local mymainmenu = awful.menu { + items = { + { "awesome", myawesomemenu, beautiful.awesome_icon }, + { "open terminal", terminal }, + }, +} + +local mylauncher = awful.widget.launcher { + image = beautiful.awesome_icon, + menu = mymainmenu, +} + +-- Menubar configuration +menubar.utils.terminal = terminal -- Set the terminal for applications that require it +-- }}} + +-- {{{ Tag layout +-- @DOC_LAYOUT@ +-- Table of layouts to cover with awful.layout.inc, order matters. +tag.connect_signal("request::default_layouts", function() + awful.layout.append_default_layouts { + awful.layout.suit.floating, + awful.layout.suit.tile, + awful.layout.suit.tile.left, + awful.layout.suit.tile.bottom, + awful.layout.suit.tile.top, + awful.layout.suit.fair, + awful.layout.suit.fair.horizontal, + awful.layout.suit.spiral, + awful.layout.suit.spiral.dwindle, + awful.layout.suit.max, + awful.layout.suit.max.fullscreen, + awful.layout.suit.magnifier, + awful.layout.suit.corner.nw, + } +end) +-- }}} + +-- -- {{{ Wallpaper +-- -- @DOC_WALLPAPER@ +-- screen.connect_signal("request::wallpaper", function(s) +-- awful.wallpaper { +-- screen = s, +-- widget = { +-- { +-- image = beautiful.wallpaper, +-- upscale = true, +-- downscale = true, +-- widget = wibox.widget.imagebox, +-- }, +-- valign = "center", +-- halign = "center", +-- tiled = false, +-- widget = wibox.container.tile, +-- }, +-- } +-- end) +-- -- }}} + +-- -- {{{ Wibar + +-- -- Keyboard map indicator and switcher +-- local mykeyboardlayout = awful.widget.keyboardlayout() + +-- -- Create a textclock widget +-- local mytextclock = wibox.widget.textclock() + +-- -- @DOC_FOR_EACH_SCREEN@ +-- screen.connect_signal("request::desktop_decoration", function(s: screen) +-- -- Each screen has its own tag table. +-- awful.tag( +-- { "1", "2", "3", "4", "5", "6", "7", "8", "9" }, +-- s, +-- awful.layout.layouts[1] +-- ) + +-- -- Create a promptbox for each screen +-- s.mypromptbox = awful.widget.prompt() + +-- -- Create an imagebox widget which will contain an icon indicating which layout we're using. +-- -- We need one layoutbox per screen. +-- s.mylayoutbox = awful.widget.layoutbox { +-- screen = s, +-- buttons = { +-- awful.button({}, 1, function() +-- awful.layout.inc(1) +-- end), +-- awful.button({}, 3, function() +-- awful.layout.inc(-1) +-- end), +-- awful.button({}, 4, function() +-- awful.layout.inc(-1) +-- end), +-- awful.button({}, 5, function() +-- awful.layout.inc(1) +-- end), +-- }, +-- } + +-- -- Create a taglist widget +-- s.mytaglist = awful.widget.taglist { +-- screen = s, +-- filter = awful.widget.taglist.filter.all, +-- buttons = { +-- awful.button({}, 1, function(t: tag) +-- t:view_only() +-- end), +-- awful.button({ modkey }, 1, function(t: tag) +-- if client.focus then +-- client.focus:move_to_tag(t) +-- end +-- end), +-- awful.button({}, 3, awful.tag.viewtoggle), +-- awful.button({ modkey }, 3, function(t: tag) +-- if client.focus then +-- client.focus:toggle_tag(t) +-- end +-- end), +-- awful.button({}, 4, function(t: tag) +-- awful.tag.viewprev(t.screen) +-- end), +-- awful.button({}, 5, function(t: tag) +-- awful.tag.viewnext(t.screen) +-- end), +-- }, +-- } + +-- -- @TASKLIST_BUTTON@ +-- -- Create a tasklist widget +-- s.mytasklist = awful.widget.tasklist { +-- screen = s, +-- filter = awful.widget.tasklist.filter.currenttags, +-- buttons = { +-- awful.button({}, 1, function(c) +-- c:activate { context = "tasklist", action = "toggle_minimization" } +-- end), +-- awful.button({}, 3, function() +-- awful.menu.client_list { theme = { width = 250 } } +-- end), +-- awful.button({}, 4, function() +-- awful.client.focus.byidx(-1) +-- end), +-- awful.button({}, 5, function() +-- awful.client.focus.byidx(1) +-- end), +-- }, +-- } + +-- -- @DOC_WIBAR@ +-- -- Create the wibox +-- s.mywibox = awful.wibar { +-- position = "top", +-- screen = s, +-- -- @DOC_SETUP_WIDGETS@ +-- widget = { +-- layout = wibox.layout.align.horizontal, +-- { -- Left widgets +-- layout = wibox.layout.fixed.horizontal, +-- mylauncher, +-- s.mytaglist, +-- s.mypromptbox, +-- }, +-- s.mytasklist, -- Middle widget +-- { -- Right widgets +-- layout = wibox.layout.fixed.horizontal, +-- mykeyboardlayout, +-- wibox.widget.systray(), +-- mytextclock, +-- s.mylayoutbox, +-- }, +-- }, +-- } +-- end) + +-- -- }}} + +-- -- {{{ Mouse bindings +-- -- @DOC_ROOT_BUTTONS@ +-- awful.mouse.append_global_mousebindings { +-- awful.button({}, 3, function() +-- mymainmenu:toggle() +-- end), +-- awful.button({}, 4, awful.tag.viewprev), +-- awful.button({}, 5, awful.tag.viewnext), +-- } +-- -- }}} + +-- -- {{{ Key bindings +-- -- @DOC_GLOBAL_KEYBINDINGS@ + +-- -- General Awesome keys +-- awful.keyboard.append_global_keybindings { +-- awful.key( +-- { modkey }, +-- "s", +-- hotkeys_popup.show_help, +-- { description = "show help", group = "awesome" } +-- ), +-- awful.key({ modkey }, "w", function() +-- mymainmenu:show() +-- end, { description = "show main menu", group = "awesome" }), +-- awful.key( +-- { modkey, "Control" }, +-- "r", +-- awesome.restart, +-- { description = "reload awesome", group = "awesome" } +-- ), +-- awful.key( +-- { modkey, "Shift" }, +-- "q", +-- awesome.quit, +-- { description = "quit awesome", group = "awesome" } +-- ), +-- awful.key({ modkey }, "x", function() +-- awful.prompt.run { +-- prompt = "Run Lua code: ", +-- textbox = awful.screen.focused().mypromptbox.widget, +-- exe_callback = awful.util.eval, +-- history_path = awful.util.get_cache_dir() .. "/history_eval", +-- } +-- end, { description = "lua execute prompt", group = "awesome" }), +-- awful.key({ modkey }, "Return", function() +-- awful.spawn(terminal) +-- end, { description = "open a terminal", group = "launcher" }), +-- awful.key({ modkey }, "r", function() +-- awful.screen.focused().mypromptbox:run() +-- end, { description = "run prompt", group = "launcher" }), +-- awful.key({ modkey }, "p", function() +-- menubar.show() +-- end, { description = "show the menubar", group = "launcher" }), +-- } + +-- -- Tags related keybindings +-- awful.keyboard.append_global_keybindings { +-- awful.key( +-- { modkey }, +-- "Left", +-- awful.tag.viewprev, +-- { description = "view previous", group = "tag" } +-- ), +-- awful.key( +-- { modkey }, +-- "Right", +-- awful.tag.viewnext, +-- { description = "view next", group = "tag" } +-- ), +-- awful.key( +-- { modkey }, +-- "Escape", +-- awful.tag.history.restore, +-- { description = "go back", group = "tag" } +-- ), +-- } + +-- -- Focus related keybindings +-- awful.keyboard.append_global_keybindings { +-- awful.key({ modkey }, "j", function() +-- awful.client.focus.byidx(1) +-- end, { description = "focus next by index", group = "client" }), +-- awful.key({ modkey }, "k", function() +-- awful.client.focus.byidx(-1) +-- end, { description = "focus previous by index", group = "client" }), +-- awful.key({ modkey }, "Tab", function() +-- awful.client.focus.history.previous() +-- if client.focus then +-- client.focus:raise() +-- end +-- end, { description = "go back", group = "client" }), +-- awful.key({ modkey, "Control" }, "j", function() +-- awful.screen.focus_relative(1) +-- end, { description = "focus the next screen", group = "screen" }), +-- awful.key({ modkey, "Control" }, "k", function() +-- awful.screen.focus_relative(-1) +-- end, { description = "focus the previous screen", group = "screen" }), +-- awful.key({ modkey, "Control" }, "n", function() +-- local c = awful.client.restore() +-- -- Focus restored client +-- if c then +-- c:activate { raise = true, context = "key.unminimize" } +-- end +-- end, { description = "restore minimized", group = "client" }), +-- } + +-- -- Layout related keybindings +-- awful.keyboard.append_global_keybindings { +-- awful.key({ modkey, "Shift" }, "j", function() +-- awful.client.swap.byidx(1) +-- end, { description = "swap with next client by index", group = "client" }), +-- awful.key( +-- { modkey, "Shift" }, +-- "k", +-- function() +-- awful.client.swap.byidx(-1) +-- end, +-- { description = "swap with previous client by index", group = "client" } +-- ), +-- awful.key( +-- { modkey }, +-- "u", +-- awful.client.urgent.jumpto, +-- { description = "jump to urgent client", group = "client" } +-- ), +-- awful.key({ modkey }, "l", function() +-- awful.tag.incmwfact(0.05) +-- end, { description = "increase master width factor", group = "layout" }), +-- awful.key({ modkey }, "h", function() +-- awful.tag.incmwfact(-0.05) +-- end, { description = "decrease master width factor", group = "layout" }), +-- awful.key({ modkey, "Shift" }, "h", function() +-- awful.tag.incnmaster(1, nil, true) +-- end, { +-- description = "increase the number of master clients", +-- group = "layout", +-- }), +-- awful.key({ modkey, "Shift" }, "l", function() +-- awful.tag.incnmaster(-1, nil, true) +-- end, { +-- description = "decrease the number of master clients", +-- group = "layout", +-- }), +-- awful.key({ modkey, "Control" }, "h", function() +-- awful.tag.incncol(1, nil, true) +-- end, { description = "increase the number of columns", group = "layout" }), +-- awful.key({ modkey, "Control" }, "l", function() +-- awful.tag.incncol(-1, nil, true) +-- end, { description = "decrease the number of columns", group = "layout" }), +-- awful.key({ modkey }, "space", function() +-- awful.layout.inc(1) +-- end, { description = "select next", group = "layout" }), +-- awful.key({ modkey, "Shift" }, "space", function() +-- awful.layout.inc(-1) +-- end, { description = "select previous", group = "layout" }), +-- } + +-- -- @DOC_NUMBER_KEYBINDINGS@ + +-- awful.keyboard.append_global_keybindings { +-- awful.key { +-- modifiers = { modkey }, +-- keygroup = "numrow", +-- description = "only view tag", +-- group = "tag", +-- on_press = function(index) +-- local screen = awful.screen.focused() +-- local tag = screen.tags[index] +-- if tag then +-- tag:view_only() +-- end +-- end, +-- }, +-- awful.key { +-- modifiers = { modkey, "Control" }, +-- keygroup = "numrow", +-- description = "toggle tag", +-- group = "tag", +-- on_press = function(index) +-- local screen = awful.screen.focused() +-- local tag = screen.tags[index] +-- if tag then +-- awful.tag.viewtoggle(tag) +-- end +-- end, +-- }, +-- awful.key { +-- modifiers = { modkey, "Shift" }, +-- keygroup = "numrow", +-- description = "move focused client to tag", +-- group = "tag", +-- on_press = function(index) +-- if client.focus then +-- local tag = client.focus.screen.tags[index] +-- if tag then +-- client.focus:move_to_tag(tag) +-- end +-- end +-- end, +-- }, +-- awful.key { +-- modifiers = { modkey, "Control", "Shift" }, +-- keygroup = "numrow", +-- description = "toggle focused client on tag", +-- group = "tag", +-- on_press = function(index) +-- if client.focus then +-- local tag = client.focus.screen.tags[index] +-- if tag then +-- client.focus:toggle_tag(tag) +-- end +-- end +-- end, +-- }, +-- awful.key { +-- modifiers = { modkey }, +-- keygroup = "numpad", +-- description = "select layout directly", +-- group = "layout", +-- on_press = function(index) +-- local t = awful.screen.focused().selected_tag +-- if t then +-- t.layout = t.layouts[index] or t.layout +-- end +-- end, +-- }, +-- } + +-- -- @DOC_CLIENT_BUTTONS@ +-- client.connect_signal("request::default_mousebindings", function() +-- awful.mouse.append_client_mousebindings { +-- awful.button({}, 1, function(c) +-- c:activate { context = "mouse_click" } +-- end), +-- awful.button({ modkey }, 1, function(c) +-- c:activate { context = "mouse_click", action = "mouse_move" } +-- end), +-- awful.button({ modkey }, 3, function(c) +-- c:activate { context = "mouse_click", action = "mouse_resize" } +-- end), +-- } +-- end) + +-- -- @DOC_CLIENT_KEYBINDINGS@ +-- client.connect_signal("request::default_keybindings", function() +-- awful.keyboard.append_client_keybindings { +-- awful.key({ modkey }, "f", function(c: client) +-- c.fullscreen = not c.fullscreen +-- c:raise() +-- end, { description = "toggle fullscreen", group = "client" }), +-- awful.key({ modkey, "Shift" }, "c", function(c: client) +-- c:kill() +-- end, { description = "close", group = "client" }), +-- awful.key( +-- { modkey, "Control" }, +-- "space", +-- awful.client.floating.toggle, +-- { description = "toggle floating", group = "client" } +-- ), +-- awful.key({ modkey, "Control" }, "Return", function(c: client) +-- c:swap(awful.client.getmaster()) +-- end, { description = "move to master", group = "client" }), +-- awful.key({ modkey }, "o", function(c: client) +-- c:move_to_screen() +-- end, { description = "move to screen", group = "client" }), +-- awful.key({ modkey }, "t", function(c: client) +-- c.ontop = not c.ontop +-- end, { description = "toggle keep on top", group = "client" }), +-- awful.key({ modkey }, "n", function(c: client) +-- -- The client currently has the input focus, so it cannot be +-- -- minimized, since minimized clients can't have the focus. +-- c.minimized = true +-- end, { description = "minimize", group = "client" }), +-- awful.key({ modkey }, "m", function(c: client) +-- c.maximized = not c.maximized +-- c:raise() +-- end, { description = "(un)maximize", group = "client" }), +-- awful.key({ modkey, "Control" }, "m", function(c: client) +-- c.maximized_vertical = not c.maximized_vertical +-- c:raise() +-- end, { description = "(un)maximize vertically", group = "client" }), +-- awful.key({ modkey, "Shift" }, "m", function(c: client) +-- c.maximized_horizontal = not c.maximized_horizontal +-- c:raise() +-- end, { description = "(un)maximize horizontally", group = "client" }), +-- } +-- end) + +-- -- }}} + +-- -- {{{ Rules +-- -- Rules to apply to new clients. +-- -- @DOC_RULES@ +-- ruled.client.connect_signal("request::rules", function() +-- -- @DOC_GLOBAL_RULE@ +-- -- All clients will match this rule. +-- ruled.client.append_rule { +-- id = "global", +-- rule = {}, +-- properties = { +-- focus = awful.client.focus.filter, +-- raise = true, +-- screen = awful.screen.preferred, +-- placement = awful.placement.no_overlap + awful.placement.no_offscreen, +-- }, +-- } + +-- -- @DOC_FLOATING_RULE@ +-- -- Floating clients. +-- ruled.client.append_rule { +-- id = "floating", +-- rule_any = { +-- instance = { "copyq", "pinentry" }, +-- class = { +-- "Arandr", +-- "Blueman-manager", +-- "Gpick", +-- "Kruler", +-- "Sxiv", +-- "Tor Browser", +-- "Wpa_gui", +-- "veromix", +-- "xtightvncviewer", +-- }, +-- -- Note that the name property shown in xprop might be set slightly after creation of the client +-- -- and the name shown there might not match defined rules here. +-- name = { +-- "Event Tester", -- xev. +-- }, +-- role = { +-- "AlarmWindow", -- Thunderbird's calendar. +-- "ConfigManager", -- Thunderbird's about:config. +-- "pop-up", -- e.g. Google Chrome's (detached) Developer Tools. +-- }, +-- }, +-- properties = { floating = true }, +-- } + +-- -- @DOC_DIALOG_RULE@ +-- -- Add titlebars to normal clients and dialogs +-- ruled.client.append_rule { +-- -- @DOC_CSD_TITLEBARS@ +-- id = "titlebars", +-- rule_any = { type = { "normal", "dialog" } }, +-- properties = { titlebars_enabled = true }, +-- } + +-- -- Set Firefox to always map on the tag named "2" on screen 1. +-- -- ruled.client.append_rule { +-- -- rule = { class = "Firefox" }, +-- -- properties = { screen = 1, tag = "2" } +-- -- } +-- end) +-- -- }}} + +-- -- {{{ Titlebars +-- -- @DOC_TITLEBARS@ +-- -- Add a titlebar if titlebars_enabled is set to true in the rules. +-- client.connect_signal("request::titlebars", function(c: client) +-- -- buttons for the titlebar +-- local buttons = { +-- awful.button({}, 1, function() +-- c:activate { context = "titlebar", action = "mouse_move" } +-- end), +-- awful.button({}, 3, function() +-- c:activate { context = "titlebar", action = "mouse_resize" } +-- end), +-- } + +-- awful.titlebar(c).widget = { +-- { -- Left +-- awful.titlebar.widget.iconwidget(c), +-- buttons = buttons, +-- layout = wibox.layout.fixed.horizontal, +-- }, +-- { -- Middle +-- { -- Title +-- halign = "center", +-- widget = awful.titlebar.widget.titlewidget(c), +-- }, +-- buttons = buttons, +-- layout = wibox.layout.flex.horizontal, +-- }, +-- { -- Right +-- awful.titlebar.widget.floatingbutton(c), +-- awful.titlebar.widget.maximizedbutton(c), +-- awful.titlebar.widget.stickybutton(c), +-- awful.titlebar.widget.ontopbutton(c), +-- awful.titlebar.widget.closebutton(c), +-- layout = wibox.layout.fixed.horizontal(), +-- }, +-- layout = wibox.layout.align.horizontal, +-- } +-- end) +-- -- }}} + +-- -- {{{ Notifications + +-- ruled.notification.connect_signal("request::rules", function() +-- -- All notifications will match this rule. +-- ruled.notification.append_rule { +-- rule = {}, +-- properties = { +-- screen = awful.screen.preferred, +-- implicit_timeout = 5, +-- }, +-- } +-- end) + +-- naughty.connect_signal("request::display", function(n) +-- naughty.layout.box { notification = n } +-- end) + +-- -- }}} + +-- -- Enable sloppy focus, so that focus follows mouse. +-- client.connect_signal("mouse::enter", function(c: client) +-- c:activate { context = "mouse_enter", raise = false } +-- end) diff --git a/types/awful.d.tl b/types/awful.d.tl new file mode 100644 index 0000000..dc85455 --- /dev/null +++ b/types/awful.d.tl @@ -0,0 +1,52 @@ +-- This file was auto-generated. +local type Button = require("awful.button") +local type Client = require("awful.client") +local type Completion = require("awful.completion") +local type Hotkeys_popup = require("awful.hotkeys_popup") +local type Key = require("awful.key") +local type Keyboard = require("awful.keyboard") +local type Keygrabber = require("awful.keygrabber") +local type Layout = require("awful.layout") +local type Menu = require("awful.menu") +local type Permissions = require("awful.permissions") +local type Placement = require("awful.placement") +local type Popup = require("awful.popup") +local type Prompt = require("awful.prompt") +local type Rules = require("awful.rules") +local type Screen = require("awful.screen") +local type Spawn = require("awful.spawn") +local type Tag = require("awful.tag") +local type Titlebar = require("awful.titlebar") +local type Tooltip = require("awful.tooltip") +local type Util = require("awful.util") +local type Wallpaper = require("awful.wallpaper") +local type Wibar = require("awful.wibar") +local type Widget = require("awful.widget") + +local record Awful + button: Button + client: Client + completion: Completion + hotkeys_popup: Hotkeys_popup + key: Key + keyboard: Keyboard + keygrabber: Keygrabber + layout: Layout + menu: Menu + permissions: Permissions + placement: Placement + popup: Popup + prompt: Prompt + rules: Rules + screen: Screen + spawn: Spawn + tag: Tag + titlebar: Titlebar + tooltip: Tooltip + util: Util + wallpaper: Wallpaper + wibar: Wibar + widget: Widget +end + +return Awful diff --git a/types/awful/autofocus.d.tl b/types/awful/autofocus.d.tl new file mode 100644 index 0000000..362f597 --- /dev/null +++ b/types/awful/autofocus.d.tl @@ -0,0 +1 @@ +-- Nothing to do diff --git a/types/awful/button.d.tl b/types/awful/button.d.tl new file mode 100644 index 0000000..6b8849e --- /dev/null +++ b/types/awful/button.d.tl @@ -0,0 +1,29 @@ +-- This file was auto-generated. + +local record Button + enum Signal + "property::modifiers" + "property::button" + "property::description" + "property::name" + "property::group" + "property::on_press" + "property::on_release" + end + metamethod __call: function(self: Button, mod: table, button: number, press: function, release: function): table + record Button_Args + modifiers: table + button: number + on_press: function + on_release: function + end + modifiers: table + description: string + name: string + group: string + on_press: function | nil + on_release: function | nil + trigger: function(self: Button) +end + +return Button diff --git a/types/awful/client.d.tl b/types/awful/client.d.tl new file mode 100644 index 0000000..725d524 --- /dev/null +++ b/types/awful/client.d.tl @@ -0,0 +1,219 @@ +-- This file was auto-generated. +local type Button = require("awful.button") +local type Key = require("awful.key") +local type Screen = require("awful.screen") +local type Tag = require("awful.tag") + +local record Client + enum Signal + "property::window" + "property::name" + "property::skip_taskbar" + "property::type" + "property::class" + "property::instance" + "property::pid" + "property::role" + "property::machine" + "property::icon_name" + "property::icon" + "property::icon_sizes" + "property::screen" + "property::hidden" + "property::minimized" + "property::size_hints_honor" + "property::border_width" + "property::border_color" + "property::urgent" + "property::content" + "property::opacity" + "property::ontop" + "property::above" + "property::below" + "property::fullscreen" + "property::maximized" + "property::maximized_horizontal" + "property::maximized_vertical" + "property::transient_for" + "property::group_window" + "property::leader_window" + "property::size_hints" + "property::motif_wm_hints" + "property::sticky" + "property::modal" + "property::focusable" + "property::shape_bounding" + "property::shape_clip" + "property::shape_input" + "property::client_shape_bounding" + "property::client_shape_clip" + "property::startup_id" + "property::valid" + "property::first_tag" + "property::buttons" + "property::keys" + "property::marked" + "property::is_fixed" + "property::immobilized_horizontal" + "property::immobilized_vertical" + "property::floating" + "property::x" + "property::y" + "property::width" + "property::height" + "property::dockable" + "property::requests_no_titlebar" + "property::shape" + "property::active" + "scanning" + "scanned" + "focus" + "list" + "swapped" + "request::manage" + "request::unmanage" + "button::press" + "button::release" + "mouse::enter" + "mouse::leave" + "mouse::move" + "request::activate" + "request::autoactivate" + "request::geometry" + "request::tag" + "request::urgent" + "request::default_mousebindings" + "request::default_keybindings" + "tagged" + "unfocus" + "untagged" + "raised" + "lowered" + "property::floating_geometry" + "request::titlebars" + "request::border" + end + next: function(i: integer, sel: Client, stacked: boolean): Client | nil + bydirection: function(dir: string, c: Client, stacked: boolean) + global_bydirection: function(dir: string, sel: Client) + byidx: function(i: integer, c: Client) + cycle: function(clockwise: boolean, s: Screen, stacked: boolean) + restore: function(s: Screen): Client + persist: function(prop: string, kind: string) + iterate: function(filter: function, start: integer, s: Screen): function + jumpto: function(merge: boolean | function) + window: integer + name: string + skip_taskbar: boolean + type: string + class: string + instance: string + pid: integer + role: string + machine: string + icon_name: string + icon: Image + icon_sizes: table + screen: Screen + hidden: boolean + minimized: boolean + size_hints_honor: boolean + border_width: integer | nil + border_color: Color | nil + urgent: boolean + content: Cairo_Surface + opacity: number + ontop: boolean + above: boolean + below: boolean + fullscreen: boolean + maximized: boolean + maximized_horizontal: boolean + maximized_vertical: boolean + transient_for: Client | nil + group_window: integer + leader_window: integer + size_hints: table | nil + motif_wm_hints: table + sticky: boolean + modal: boolean + focusable: boolean + shape_bounding: Image + shape_clip: Image + shape_input: Image + client_shape_bounding: Image + client_shape_clip: Image + startup_id: string + valid: boolean + first_tag: Tag | nil + buttons: table + keys: table + marked: boolean + is_fixed: boolean + immobilized_horizontal: boolean + immobilized_vertical: boolean + floating: boolean + x: integer + y: integer + width: integer + height: integer + dockable: boolean + requests_no_titlebar: boolean + shape: Gears_Shape_Function + active: boolean + record Struts_Struts + left: integer + right: integer + top: integer + bottom: integer + end + struts: function(self: Client, struts: Struts_Struts): table + isvisible: function(self: Client): boolean + kill: function(self: Client) + swap: function(self: Client, c: Client) + tags: function(self: Client, tags_table: table): table + raise: function(self: Client) + lower: function(self: Client) + unmanage: function(self: Client) + record Geometry_Geo + x: integer + y: integer + width: integer + height: integer + end + geometry: function(self: Client, geo: Geometry_Geo): table + apply_size_hints: function(self: Client, width: integer, height: integer): integer, integer + get_icon: function(self: Client, index: integer): Cairo_Surface + jump_to: function(self: Client, merge: boolean | function) + append_keybinding: function(self: Client, key: Key) + remove_keybinding: function(self: Client, key: Key) + append_mousebinding: function(self: Client, button: Button) + remove_mousebinding: function(self: Client, button: Button) + to_primary_section: function(self: Client) + to_secondary_section: function(self: Client) + relative_move: function(self: Client, x: integer, y: integer, w: integer, h: integer) + move_to_tag: function(self: Client, target: Tag) + toggle_tag: function(self: Client, target: Tag) + move_to_screen: function(self: Client, s: Screen) + to_selected_tags: function(self: Client) + get_transient_for_matching: function(self: Client, matcher: function): Client | nil + is_transient_for: function(self: Client, c2: Client): Client | nil + record Activate_Args + context: string + raise: boolean + force: boolean + switch_to_tags: boolean + switch_to_tag: boolean + action: boolean + toggle_minimization: boolean + end + activate: function(self: Client, args: Activate_Args) + grant: function(self: Client, permission: string, context: string) + deny: function(self: Client, permission: string, context: string) + emit_signal: function(self: Client, name: string) + connect_signal: function(self: Client, name: string, func: function) + weak_connect_signal: function(self: Client, name: string, func: function) + focus: Client +end + +return Client diff --git a/types/awful/completion.d.tl b/types/awful/completion.d.tl new file mode 100644 index 0000000..f5afdf4 --- /dev/null +++ b/types/awful/completion.d.tl @@ -0,0 +1,11 @@ +-- This file was auto-generated. + +local record Completion + enum Signal + end + bashcomp_load: function(src: string) + shell: function(command: string, cur_pos: number, ncomp: number, shell: string): string, number, table + generic: function(text: string, cur_pos: number, ncomp: number, keywords: table): string, number, table +end + +return Completion diff --git a/types/awful/hotkeys_popup.d.tl b/types/awful/hotkeys_popup.d.tl new file mode 100644 index 0000000..21c9385 --- /dev/null +++ b/types/awful/hotkeys_popup.d.tl @@ -0,0 +1,13 @@ +-- This file was auto-generated. +local type Client = require("awful.client") +local type Screen = require("awful.screen") +local type Widget = require("awful.hotkeys_popup.widget") + +local record Hotkeys_popup + widget: Widget + enum Signal + end + show_help: function(c: Client, s: Screen) +end + +return Hotkeys_popup diff --git a/types/awful/hotkeys_popup/keys.d.tl b/types/awful/hotkeys_popup/keys.d.tl new file mode 100644 index 0000000..362f597 --- /dev/null +++ b/types/awful/hotkeys_popup/keys.d.tl @@ -0,0 +1 @@ +-- Nothing to do diff --git a/types/awful/hotkeys_popup/widget.d.tl b/types/awful/hotkeys_popup/widget.d.tl new file mode 100644 index 0000000..caafcab --- /dev/null +++ b/types/awful/hotkeys_popup/widget.d.tl @@ -0,0 +1,42 @@ +-- This file was auto-generated. +local type Client = require("awful.client") +local type Keygrabber = require("awful.keygrabber") +local type Screen = require("awful.screen") + +local record Widget + enum Signal + end + record New_Args + hide_without_description: boolean + merge_duplicates: boolean + width: integer + height: integer + bg: Color + fg: Color + border_width: integer + border_color: Color + shape: Gears_Shape_Function + font: string | any + description_font: string | any + modifiers_fg: Color + label_bg: Color + label_fg: Color + group_margin: integer + labels: table + group_rules: table + end + new: function(args: New_Args) + record Show_help_Args + show_awesome_keys: boolean + end + show_help: function(c: Client, s: Screen, args: Show_help_Args): Keygrabber + add_hotkeys: function(hotkeys: table) + add_group_rules: function(group: string, data: table) + record Show_help_Show_args + show_awesome_keys: boolean + end + hide_without_description: boolean + merge_duplicates: boolean +end + +return Widget diff --git a/types/awful/key.d.tl b/types/awful/key.d.tl new file mode 100644 index 0000000..3a1f3e8 --- /dev/null +++ b/types/awful/key.d.tl @@ -0,0 +1,31 @@ +-- This file was auto-generated. + +local record Key + enum Signal + "property::key" + "property::modifiers" + "property::description" + "property::name" + "property::group" + "property::on_press" + "property::on_release" + end + metamethod __call: function(self: Key, mod: table, _key: string, press: function, release: function, data: table): table + record Key_Args + key: string + keygroup: string + modifiers: table + on_press: function + on_release: function + end + modifiers: table + description: string + name: string + group: string + on_press: function | nil + on_release: function | nil + trigger: function(self: Key) + match: function(self: Key, pressed_mod: table, pressed_key: string): boolean +end + +return Key diff --git a/types/awful/keyboard.d.tl b/types/awful/keyboard.d.tl new file mode 100644 index 0000000..d57672e --- /dev/null +++ b/types/awful/keyboard.d.tl @@ -0,0 +1,16 @@ +-- This file was auto-generated. +local type Key = require("awful.key") + +local record Keyboard + enum Signal + end + emulate_key_combination: function(modifiers: table, key: string) + append_global_keybinding: function(key: Key) + remove_global_keybinding: function(key: Key) + append_client_keybinding: function(key: Key) + append_client_keybindings: function(keys: table) + remove_client_keybinding: function(key: Key): boolean + get_key_name: function(): string, nil +end + +return Keyboard diff --git a/types/awful/keygrabber.d.tl b/types/awful/keygrabber.d.tl new file mode 100644 index 0000000..e93f68a --- /dev/null +++ b/types/awful/keygrabber.d.tl @@ -0,0 +1,65 @@ +-- This file was auto-generated. +local type Key = require("awful.key") + +local record Keygrabber + enum Signal + "property::timeout" + "property::stop_key" + "property::stop_event" + "property::mask_event_callback" + "property::mask_modkeys" + "property::export_keybindings" + "property::root_keybindings" + "property::keybindings" + "property::allowed_keys" + "property::sequence" + "property::current_instance" + "started" + "stopped" + "keybinding::triggered" + end + record Keygrabber_Args + stop_event: string + stop_key: string | table + keybindings: table + timeout: number + mask_event_callback: boolean + start_callback: function + stop_callback: function + timeout_callback: function + keypressed_callback: function + keyreleased_callback: function + allowed_keys: table | nil + root_keybindings: table + export_keybindings: boolean + autostart: boolean + mask_modkeys: boolean + end + metamethod __call: function(self: Keygrabber, args: Keygrabber_Args): Keygrabber + connect_signal: function(name: string, callback: function) + disconnect_signal: function(name: string, callback: function) + emit_signal: function(name: string) + timeout: number | nil + stop_key: string | table | nil + enum Stop_event + "press" + "release" + end + stop_event: Stop_event + mask_event_callback: boolean + mask_modkeys: boolean + export_keybindings: boolean + root_keybindings: table + keybindings: table + allowed_keys: table | nil + sequence: string + start: function(self: Keygrabber): boolean + stop: function(self: Keygrabber, stop_key: string | nil, stop_mods: table | nil) + add_keybinding: function(self: Keygrabber, key: Key) + remove_keybinding: function(self: Keygrabber): boolean + weak_connect_signal: function(self: Keygrabber, name: string, func: function) + current_instance: Keygrabber + is_running: boolean +end + +return Keygrabber diff --git a/types/awful/layout.d.tl b/types/awful/layout.d.tl new file mode 100644 index 0000000..fac3ae3 --- /dev/null +++ b/types/awful/layout.d.tl @@ -0,0 +1,23 @@ +-- This file was auto-generated. +local type Screen = require("awful.screen") +local type Tag = require("awful.tag") + +local record Layout + enum Signal + end + get_tag_layout_index: function(t: Tag): nil | number + get: function(screen: Screen) + inc: function(i: integer, s: Screen, layouts: table) + set: function(l: Layout | function, t: Tag) + parameters: function(t: Tag, screen: any): table + arrange: function(screen: Screen) + append_default_layout: function(to_add: Layout) + remove_default_layout: function(to_remove: Layout): boolean + append_default_layouts: function(layouts: table) + getname: function(_layout: any) + layouts: any + resize_jump_to_corner: any + suit: { string : { string : any } } +end + +return Layout diff --git a/types/awful/menu.d.tl b/types/awful/menu.d.tl new file mode 100644 index 0000000..5cf89ba --- /dev/null +++ b/types/awful/menu.d.tl @@ -0,0 +1,25 @@ +-- This file was auto-generated. + +local record Menu + enum Signal + end + clients: function(args: table, item_args: table, filter: function) + client_list: function(args: table, item_args: table, filter: function) + entry: function(parent: any, args: any) + metamethod __call: function(self: Menu, args: any, parent: any): Menu + record Show_Args + coords: table + end + show: function(self: Menu, args: Show_Args) + hide: function(self: Menu) + record Toggle_Args + coords: table + end + toggle: function(self: Menu, args: Toggle_Args) + update: function(self: Menu) + get_root: function(self: Menu): Menu + add: function(self: Menu, args: table, index: number): table | nil + delete: function(self: Menu, num: table | number) +end + +return Menu diff --git a/types/awful/permissions.d.tl b/types/awful/permissions.d.tl new file mode 100644 index 0000000..c158784 --- /dev/null +++ b/types/awful/permissions.d.tl @@ -0,0 +1,10 @@ +-- This file was auto-generated. + +local record Permissions + enum Signal + end + add_activate_filter: function(f: function, context: string) + remove_activate_filter: function(f: function, context: string): boolean +end + +return Permissions diff --git a/types/awful/placement.d.tl b/types/awful/placement.d.tl new file mode 100644 index 0000000..e1fa2f5 --- /dev/null +++ b/types/awful/placement.d.tl @@ -0,0 +1,48 @@ +-- This file was auto-generated. +local type Client = require("awful.client") + +local record Placement + enum Signal + end + closest_corner: function(d: Drawable, args: table): table, string + record No_offscreen_Args + screen: integer + end + no_offscreen: function(c: Client, args: No_offscreen_Args): table + no_overlap: function(c: any, args: table): table + under_mouse: function(d: Drawable, args: table): table + next_to_mouse: function(d: Drawable, args: table): table + resize_to_mouse: function(d: Drawable, args: table): table + align: function(d: Drawable, args: table): table + top_left: function(d: Drawable, args: table): table + top_right: function(d: Drawable, args: table): table + bottom_left: function(d: Drawable, args: table): table + bottom_right: function(d: Drawable, args: table): table + left: function(d: Drawable, args: table): table + right: function(d: Drawable, args: table): table + top: function(d: Drawable, args: table): table + bottom: function(d: Drawable, args: table): table + centered: function(d: Drawable, args: table): table + center_vertical: function(d: Drawable, args: table): table + center_horizontal: function(d: Drawable, args: table): table + stretch: function(d: Drawable, args: table): table + stretch_left: function(d: Drawable, args: table): table + stretch_right: function(d: Drawable, args: table): table + stretch_up: function(d: Drawable, args: table): table + stretch_down: function(d: Drawable, args: table): table + maximize: function(d: Drawable, args: table): table + maximize_vertically: function(d: Drawable, args: table): table + maximize_horizontally: function(d: Drawable, args: table): table + scale: function(d: Drawable, args: table): table + record Next_to_Args + mode: string + preferred_positions: string | table + preferred_anchors: string | table + geometry: string + end + next_to: function(d: Drawable, args: Next_to_Args): table, string, string + restore: function(d: Drawable, args: table): boolean + skip_fullscreen: function(d: Drawable, args: table): table +end + +return Placement diff --git a/types/awful/popup.d.tl b/types/awful/popup.d.tl new file mode 100644 index 0000000..b218fcb --- /dev/null +++ b/types/awful/popup.d.tl @@ -0,0 +1,128 @@ +-- This file was auto-generated. +local type Screen = require("awful.screen") +local type Widget = require("wibox.widget") + +local record Popup + enum Signal + "property::preferred_positions" + "property::preferred_anchors" + "property::current_position" + "property::current_anchor" + "property::hide_on_right_click" + "property::minimum_width" + "property::minimum_height" + "property::maximum_width" + "property::maximum_height" + "property::offset" + "property::placement" + "property::border_width" + "property::border_color" + "property::ontop" + "property::cursor" + "property::visible" + "property::opacity" + "property::type" + "property::x" + "property::y" + "property::width" + "property::height" + "property::screen" + "property::widget" + "property::window" + "property::shape_bounding" + "property::shape_clip" + "property::shape_input" + "property::shape" + "property::input_passthrough" + "property::buttons" + "property::bg" + "property::bgimage" + "property::fg" + end + record Popup_Args + border_width: integer + border_color: string + ontop: boolean + cursor: string + visible: boolean + opacity: number + type: string + x: integer + y: integer + width: integer + height: integer + screen: Screen + widget: Widget + shape_bounding: any + shape_clip: any + shape_input: any + bg: Color + bgimage: Cairo_Surface + fg: Color + shape: Gears_Shape_Function + input_passthrough: boolean + placement: function + preferred_positions: string | table + preferred_anchors: string | table + offset: table | number + hide_on_right_click: boolean + end + metamethod __call: function(self: Popup, args: Popup_Args): Popup + preferred_positions: table | string + preferred_anchors: table | string + enum Current_position + "left" + "right" + "top" + "bottom" + end + current_position: Current_position + enum Current_anchor + "front" + "middle" + "back" + end + current_anchor: Current_anchor + hide_on_right_click: boolean + minimum_width: integer + minimum_height: integer + maximum_width: integer + maximum_height: integer + offset: table | integer + placement: Awful_Placement_Function | string | boolean + border_width: integer + border_color: string + ontop: boolean + cursor: string | nil + visible: boolean + opacity: number + type: string + x: integer + y: integer + width: integer + height: integer + screen: Screen + widget: Widget | nil + window: string + shape_bounding: Cairo_Surface + shape_clip: Cairo_Surface + shape_input: Cairo_Surface + shape: Gears_Shape_Function + input_passthrough: boolean + buttons: table + bg: Color + bgimage: Image | nil + fg: Color + move_next_to: function(self: Popup, obj: any): table + bind_to_widget: function(self: Popup, widget: Widget, button: number) + unbind_to_widget: function(self: Popup, widget: Widget) + geometry: function(self: Popup, geo: table | nil): table + struts: function(self: Popup, struts: table) + setup: function(self: Popup, args: any) + find_widgets: function(self: Popup, x: number, y: number): table + to_widget: function(self: Popup): Widget + save_to_svg: function(self: Popup, path: string, context: table) + draw: function(self: Popup, wibox: any) +end + +return Popup diff --git a/types/awful/prompt.d.tl b/types/awful/prompt.d.tl new file mode 100644 index 0000000..c67260a --- /dev/null +++ b/types/awful/prompt.d.tl @@ -0,0 +1,10 @@ +-- This file was auto-generated. +local type Textbox = require("wibox.widget.textbox") + +local record Prompt + enum Signal + end + run: function(args: table, textbox: Textbox, exe_callback: function | nil, completion_callback: function, history_path: string, history_max: number, done_callback: function, changed_callback: function, keypressed_callback: function) +end + +return Prompt diff --git a/types/awful/rules.d.tl b/types/awful/rules.d.tl new file mode 100644 index 0000000..ad23899 --- /dev/null +++ b/types/awful/rules.d.tl @@ -0,0 +1,8 @@ +-- This file was auto-generated. + +local record Rules + enum Signal + end +end + +return Rules diff --git a/types/awful/screen.d.tl b/types/awful/screen.d.tl new file mode 100644 index 0000000..24928c3 --- /dev/null +++ b/types/awful/screen.d.tl @@ -0,0 +1,109 @@ +-- This file was auto-generated. +local type Client = require("awful.client") +local type Tag = require("awful.tag") + +local record Screen + enum Signal + "property::geometry" + "property::index" + "property::workarea" + "property::tiling_area" + "property::content" + "property::padding" + "property::outputs" + "property::clients" + "property::hidden_clients" + "property::all_clients" + "property::tiled_clients" + "property::tags" + "property::selected_tags" + "property::selected_tag" + "property::dpi" + "property::minimum_dpi" + "property::maximum_dpi" + "property::preferred_dpi" + "property::mm_maximum_size" + "property::mm_minimum_size" + "property::inch_maximum_size" + "property::inch_minimum_size" + "scanning" + "scanned" + "primary_changed" + "added" + "removed" + "list" + "swapped" + "property::viewports" + "request::desktop_decoration" + "request::wallpaper" + "request::create" + "request::remove" + "request::resize" + "tag::history::update" + end + fake_add: function(x: integer, y: integer, width: integer, height: integer): Screen + getbycoord: function(x: number, y: number): number + focus: function(screen: Screen): Screen + focus_bydirection: function(dir: string, s: Screen): Screen + focus_relative: function(offset: integer): Screen + preferred: function(c: Client): Screen + record Focused_Args + client: boolean + mouse: boolean + end + focused: function(args: Focused_Args): Screen + record Connect_for_each_screen_Func + screen: Screen + end + connect_for_each_screen: function(func: Connect_for_each_screen_Func) + disconnect_for_each_screen: function(func: function) + set_auto_dpi_enabled: function(enabled: boolean) + geometry: table + index: integer + workarea: table + tiling_area: table + content: Cairo_Surface + padding: table | number + outputs: table + clients: table + hidden_clients: table + all_clients: table + tiled_clients: table + tags: table + selected_tags: table + selected_tag: Tag | nil + dpi: number + minimum_dpi: number + maximum_dpi: number + preferred_dpi: number + mm_maximum_size: number + mm_minimum_size: number + inch_maximum_size: number + inch_minimum_size: number + fake_remove: function(self: Screen) + fake_resize: function(self: Screen, x: integer, y: integer, width: integer, height: integer) + swap: function(self: Screen, s: Client) + get_square_distance: function(self: Screen, x: number, y: number): number + get_next_in_direction: function(self: Screen, dir: string): Screen + record Get_bounding_geometry_Args + honor_padding: boolean + honor_workarea: boolean + margins: integer | table + tag: Tag + parent: Drawable + bounding_rect: table + end + get_bounding_geometry: function(self: Screen, args: Get_bounding_geometry_Args): table + get_clients: function(self: Screen, stacked: boolean): table + get_all_clients: function(self: Screen, stacked: boolean): table + get_tiled_clients: function(self: Screen, stacked: boolean): table + split: function(self: Screen, ratios: table, mode: string): table + emit_signal: function(self: Screen, name: string) + connect_signal: function(self: Screen, name: string, func: function) + weak_connect_signal: function(self: Screen, name: string, func: function) + primary: Screen + automatic_factory: any + default_focused_args: any +end + +return Screen diff --git a/types/awful/spawn.d.tl b/types/awful/spawn.d.tl new file mode 100644 index 0000000..3167a16 --- /dev/null +++ b/types/awful/spawn.d.tl @@ -0,0 +1,36 @@ +-- This file was auto-generated. +local type Client = require("awful.client") + +local record Spawn + enum Signal + end + spawn: function(cmd: string | table, sn_rules: table | boolean, callback: function): integer, string + with_shell: function(cmd: string): integer, string + record With_line_callback_Callbacks + stdout: function + stderr: function + output_done: function + exit: function + end + with_line_callback: function(cmd: string | table, callbacks: With_line_callback_Callbacks): integer + record Easy_async_Callback + stdout: string + stderr: string + exitreason: string + exitcode: integer + end + easy_async: function(cmd: string | table, callback: Easy_async_Callback): integer + record Easy_async_with_shell_Callback + stdout: string + stderr: string + exitreason: string + exitcode: integer + end + easy_async_with_shell: function(cmd: string, callback: Easy_async_with_shell_Callback): integer + read_lines: function(input_stream: any, line_callback: function, done_callback: function, close: boolean) + once: function(cmd: string | table, rules: table, matcher: function, unique_id: string, callback: function) + single_instance: function(cmd: string | table, rules: table, matcher: function, unique_id: string, callback: function) + raise_or_spawn: function(cmd: string | table, rules: table, matcher: function, unique_id: string, callback: function): Client +end + +return Spawn diff --git a/types/awful/tag.d.tl b/types/awful/tag.d.tl new file mode 100644 index 0000000..631c264 --- /dev/null +++ b/types/awful/tag.d.tl @@ -0,0 +1,85 @@ +-- This file was auto-generated. +local type Layout = require("awful.layout") +local type Screen = require("awful.screen") + +local record Tag + enum Signal + "property::name" + "property::selected" + "property::activated" + "property::index" + "property::screen" + "property::master_width_factor" + "property::layout" + "property::layouts" + "property::volatile" + "property::gap" + "property::gap_single_client" + "property::master_fill_policy" + "property::master_count" + "property::icon" + "property::column_count" + "request::select" + "request::default_layouts" + "request::layouts" + "tagged" + "untagged" + "cleared" + "property::urgent" + "property::urgent_count" + "request::screen" + "removal-pending" + end + add: function(name: string, props: table | nil): Tag + new: function(names: table, screen: Screen | number, layout: table): table + find_fallback: function(screen: Screen, invalids: table | nil): Tag | nil + update: function(obj: Screen) + restore: function(screen: Screen, idx: number) + find_by_name: function(s: Screen, name: string): Tag | nil + incmwfact: function(add: number, t: Tag) + incgap: function(add: number, t: Tag) + togglemfpol: function(t: Tag) + incnmaster: function(add: number, t: Tag, sensible: boolean) + incncol: function(add: number, t: Tag, sensible: boolean) + viewnone: function(screen: integer | Screen) + viewidx: function(i: number, screen: Screen) + viewnext: function(screen: Screen) + viewprev: function(screen: Screen) + viewmore: function(tags: table, screen: Screen, maximum: number) + viewtoggle: function(t: Tag) + attached_connect_signal: function(screen: Screen | nil, signal: string, callback: function) + name: string + selected: boolean + activated: boolean + index: integer + screen: Screen + master_width_factor: number + layout: Layout | function + layouts: table | nil + volatile: boolean + gap: integer + gap_single_client: boolean + enum Master_fill_policy + "expand" + "master_width_factor" + end + master_fill_policy: Master_fill_policy + master_count: integer + icon: Image | nil + column_count: integer + clients: function(self: Tag, clients_table: table): table + swap: function(self: Tag, tag2: Tag) + record Clear_Args + fallback_tag: Tag + allow_untagged: boolean + end + clear: function(self: Tag, args: Clear_Args) + delete: function(self: Tag, fallback_tag: Tag, force: boolean): boolean + view_only: function(self: Tag) + emit_signal: function(self: Tag, name: string) + connect_signal: function(self: Tag, name: string, func: function) + weak_connect_signal: function(self: Tag, name: string, func: function) + limit: integer +end + +return Tag diff --git a/types/awful/titlebar.d.tl b/types/awful/titlebar.d.tl new file mode 100644 index 0000000..7b3abd2 --- /dev/null +++ b/types/awful/titlebar.d.tl @@ -0,0 +1,39 @@ +-- This file was auto-generated. +local type Client = require("awful.client") +local type Widget = require("wibox.widget") + +local record Titlebar + enum Signal + end + record Titlebar_Args + size: number + position: string + bg_normal: string + bg_focus: string + bg_urgent: string + bgimage_normal: string + bgimage_focus: string + fg_normal: string + fg_focus: string + fg_urgent: string + font: string + end + metamethod __call: function(self: Titlebar, c: Client, args: Titlebar_Args): Drawable + titlewidget: function(c: Client) + iconwidget: function(c: Client) + button: function(c: Client, name: string, selector: function, action: function): Widget + floatingbutton: function(c: Client) + maximizedbutton: function(c: Client) + minimizebutton: function(c: Client) + closebutton: function(c: Client) + ontopbutton: function(c: Client) + stickybutton: function(c: Client) + show: function(c: Client, position: string) + hide: function(c: Client, position: string) + toggle: function(c: Client, position: string) + setup: function(self: Titlebar, args: table) + enable_tooltip: boolean + fallback_name: string +end + +return Titlebar diff --git a/types/awful/tooltip.d.tl b/types/awful/tooltip.d.tl new file mode 100644 index 0000000..18b621e --- /dev/null +++ b/types/awful/tooltip.d.tl @@ -0,0 +1,116 @@ +-- This file was auto-generated. +local type Object = require("gears.object") +local type Screen = require("awful.screen") +local type Wibox = require("wibox") +local type Widget = require("wibox.widget") + +local record Tooltip + enum Signal + "property::wibox" + "property::visible" + "property::align" + "property::shape" + "property::mode" + "property::preferred_positions" + "property::preferred_alignments" + "property::text" + "property::markup" + "property::timeout" + "property::margins" + "property::border_width" + "property::border_color" + "property::margins_leftright" + "property::margins_topbottom" + "property::gaps" + "property::ontop" + "property::cursor" + "property::opacity" + "property::type" + "property::x" + "property::y" + "property::width" + "property::height" + "property::screen" + "property::widget" + "property::window" + "property::shape_bounding" + "property::shape_clip" + "property::shape_input" + "property::input_passthrough" + "property::buttons" + "property::bg" + "property::bgimage" + "property::fg" + end + record Tooltip_Args + timer_function: function + timeout: number + objects: table + delay_show: number + margin_leftright: integer + margin_topbottom: integer + shape: Gears_Shape_Function + bg: string + fg: string + border_color: string + border_width: number + align: string + font: string + opacity: number + gaps: table | number + end + metamethod __call: function(self: Tooltip, args: Tooltip_Args): Tooltip + wibox: Wibox + visible: boolean + align: string | nil + shape: Gears_Shape_Function | nil + enum Mode + "mouse" + "outside" + end + mode: Mode + preferred_positions: table + preferred_alignments: table + text: string + markup: string + timeout: number + margins: number | table + border_width: number | nil + border_color: Color | nil + margins_leftright: number + margins_topbottom: number + gaps: number | table | nil + ontop: boolean + cursor: string | nil + opacity: number + type: string + x: integer + y: integer + width: integer + height: integer + screen: Screen + widget: Widget | nil + window: string + shape_bounding: Cairo_Surface + shape_clip: Cairo_Surface + shape_input: Cairo_Surface + input_passthrough: boolean + buttons: table + bg: Color + bgimage: Image | nil + fg: Color + add_to_object: function(self: Tooltip, obj: Object) + remove_from_object: function(self: Tooltip, obj: Object) + emit_signal: function(self: Tooltip, name: string) + connect_signal: function(self: Tooltip, name: string, func: function) + weak_connect_signal: function(self: Tooltip, name: string, func: function) + geometry: function(self: Tooltip, geo: table | nil): table + struts: function(self: Tooltip, struts: table) + setup: function(self: Tooltip, args: any) + find_widgets: function(self: Tooltip, x: number, y: number): table + to_widget: function(self: Tooltip): Widget + save_to_svg: function(self: Tooltip, path: string, context: table) + draw: function(self: Tooltip, wibox: any) +end + +return Tooltip diff --git a/types/awful/util.d.tl b/types/awful/util.d.tl new file mode 100644 index 0000000..99f9c2c --- /dev/null +++ b/types/awful/util.d.tl @@ -0,0 +1,13 @@ +-- This file was auto-generated. + +local record Util + enum Signal + end + eval: function(code: string) + checkfile: function(path: string) + restart: function() + geticonpath: function(iconname: string, exts: table, dirs: table, size: string): string | nil + shell: string +end + +return Util diff --git a/types/awful/wallpaper.d.tl b/types/awful/wallpaper.d.tl new file mode 100644 index 0000000..ce25c92 --- /dev/null +++ b/types/awful/wallpaper.d.tl @@ -0,0 +1,50 @@ +-- This file was auto-generated. +local type Screen = require("awful.screen") +local type Widget = require("wibox.widget") + +local record Wallpaper + enum Signal + "property::widget" + "property::dpi" + "property::screen" + "property::screens" + "property::bg" + "property::fg" + "property::honor_workarea" + "property::honor_padding" + "property::uncovered_areas" + "property::uncovered_areas_color" + "property::panning_area" + end + record Wallpaper_Args + widget: Widget + dpi: number + screen: Screen + screens: table + bg: any + fg: any + uncovered_areas_color: any + honor_workarea: boolean + honor_padding: boolean + uncovered_areas: table + panning_area: function | string + end + metamethod __call: function(self: Wallpaper, args: Wallpaper_Args): Wallpaper + widget: Widget | nil + dpi: number + screen: Screen + screens: table + bg: Color + fg: Color + honor_workarea: boolean + honor_padding: boolean + uncovered_areas: table + uncovered_areas_color: Color + panning_area: function | string + add_screen: function(self: Wallpaper, screen: Screen) + detach: function(self: Wallpaper) + repaint: function(self: Wallpaper) + remove_screen: function(self: Wallpaper, screen: Screen): boolean +end + +return Wallpaper diff --git a/types/awful/wibar.d.tl b/types/awful/wibar.d.tl new file mode 100644 index 0000000..9aa301a --- /dev/null +++ b/types/awful/wibar.d.tl @@ -0,0 +1,145 @@ +-- This file was auto-generated. +local type Screen = require("awful.screen") +local type Widget = require("wibox.widget") + +local record Wibar + enum Signal + "property::stretch" + "property::align" + "property::margins" + "property::restrict_workarea" + "property::position" + "property::preferred_positions" + "property::preferred_anchors" + "property::current_position" + "property::current_anchor" + "property::hide_on_right_click" + "property::minimum_width" + "property::minimum_height" + "property::maximum_width" + "property::maximum_height" + "property::offset" + "property::placement" + "property::border_width" + "property::border_color" + "property::ontop" + "property::cursor" + "property::visible" + "property::opacity" + "property::type" + "property::x" + "property::y" + "property::width" + "property::height" + "property::screen" + "property::widget" + "property::window" + "property::shape_bounding" + "property::shape_clip" + "property::shape_input" + "property::shape" + "property::input_passthrough" + "property::buttons" + "property::bg" + "property::bgimage" + "property::fg" + end + record Wibar_Args + position: string + stretch: string + restrict_workarea: boolean + align: string + margins: table | number + border_width: integer + border_color: string + ontop: boolean + cursor: string + visible: boolean + opacity: number + type: string + x: integer + y: integer + width: integer + height: integer + screen: Screen + widget: Widget + shape_bounding: any + shape_clip: any + shape_input: any + bg: Color + bgimage: Cairo_Surface + fg: Color + shape: Gears_Shape_Function + input_passthrough: boolean + end + metamethod __call: function(self: Wibar, args: Wibar_Args): Wibar + stretch: boolean | nil + align: string | nil + margins: number | table | nil + restrict_workarea: boolean + enum Position + "left" + "right" + "top" + "bottom" + end + position: Position + preferred_positions: table | string + preferred_anchors: table | string + enum Current_position + "left" + "right" + "top" + "bottom" + end + current_position: Current_position + enum Current_anchor + "front" + "middle" + "back" + end + current_anchor: Current_anchor + hide_on_right_click: boolean + minimum_width: integer + minimum_height: integer + maximum_width: integer + maximum_height: integer + offset: table | integer + placement: Awful_Placement_Function | string | boolean + border_width: integer + border_color: string + ontop: boolean + cursor: string | nil + visible: boolean + opacity: number + type: string + x: integer + y: integer + width: integer + height: integer + screen: Screen + widget: Widget | nil + window: string + shape_bounding: Cairo_Surface + shape_clip: Cairo_Surface + shape_input: Cairo_Surface + shape: Gears_Shape_Function + input_passthrough: boolean + buttons: table + bg: Color + bgimage: Image | nil + fg: Color + remove: function(self: Wibar) + move_next_to: function(self: Wibar, obj: any): table + bind_to_widget: function(self: Wibar, widget: Widget, button: number) + unbind_to_widget: function(self: Wibar, widget: Widget) + geometry: function(self: Wibar, geo: table | nil): table + struts: function(self: Wibar, struts: table) + setup: function(self: Wibar, args: any) + find_widgets: function(self: Wibar, x: number, y: number): table + to_widget: function(self: Wibar): Widget + save_to_svg: function(self: Wibar, path: string, context: table) + draw: function(self: Wibar, wibox: any) +end + +return Wibar diff --git a/types/awful/widget.d.tl b/types/awful/widget.d.tl new file mode 100644 index 0000000..f81572c --- /dev/null +++ b/types/awful/widget.d.tl @@ -0,0 +1,35 @@ +-- This file was auto-generated. +local type Button = require("awful.widget.button") +local type Calendar_popup = require("awful.widget.calendar_popup") +local type Client = require("awful.client") +local type Clienticon = require("awful.widget.clienticon") +local type Common = require("awful.widget.common") +local type Keyboardlayout = require("awful.widget.keyboardlayout") +local type Launcher = require("awful.widget.launcher") +local type Layout = require("awful.layout") +local type Layoutbox = require("awful.widget.layoutbox") +local type Layoutlist = require("awful.widget.layoutlist") +local type Only_on_screen = require("awful.widget.only_on_screen") +local type Prompt = require("awful.widget.prompt") +local type Screen = require("awful.screen") +local type Taglist = require("awful.widget.taglist") +local type Tasklist = require("awful.widget.tasklist") +local type Watch = require("awful.widget.watch") + +local record Widget + button: Button + calendar_popup: Calendar_popup + clienticon: Clienticon + common: Common + keyboardlayout: Keyboardlayout + launcher: Launcher + layoutbox: Layoutbox + layoutlist: Layoutlist + only_on_screen: Only_on_screen + prompt: Prompt + taglist: Taglist + tasklist: Tasklist + watch: Watch +end + +return Widget diff --git a/types/awful/widget/button.d.tl b/types/awful/widget/button.d.tl new file mode 100644 index 0000000..1f04d46 --- /dev/null +++ b/types/awful/widget/button.d.tl @@ -0,0 +1,107 @@ +-- This file was auto-generated. +local type Widget = require("wibox.widget") + +local record Button + enum Signal + "property::image" + "property::source_width" + "property::source_height" + "property::clip_shape" + "property::resize" + "property::upscale" + "property::downscale" + "property::stylesheet" + "property::dpi" + "property::auto_dpi" + "property::horizontal_fit_policy" + "property::vertical_fit_policy" + "property::valign" + "property::halign" + "property::max_scaling_factor" + "property::scaling_quality" + "property::children" + "property::all_children" + "property::forced_height" + "property::forced_width" + "property::opacity" + "property::visible" + "property::buttons" + "widget::layout_changed" + "widget::redraw_needed" + "button::press" + "button::release" + "mouse::enter" + "mouse::leave" + end + record Button_Args + image: string + buttons: table + end + metamethod __call: function(self: Button, args: Button_Args): Button + image: Image | nil + source_width: number + source_height: number + clip_shape: Gears_Shape_Function + resize: boolean + upscale: boolean + downscale: boolean + stylesheet: string + dpi: number | table + auto_dpi: boolean + enum Horizontal_fit_policy + "auto" + "none" + "fit" + "repeat" + "reflect" + "pad" + end + horizontal_fit_policy: Horizontal_fit_policy + enum Vertical_fit_policy + "auto" + "none" + "fit" + "fit" + "repeat" + "reflect" + "pad" + end + vertical_fit_policy: Vertical_fit_policy + enum Valign + "top" + "center" + "bottom" + end + valign: Valign + enum Halign + "left" + "center" + "right" + end + halign: Halign + max_scaling_factor: number + enum Scaling_quality + "fast" + "good" + "best" + "nearest" + "bilinear" + end + scaling_quality: Scaling_quality + children: table + all_children: table + forced_height: number | nil + forced_width: number | nil + opacity: number + visible: boolean + buttons: table + add_button: function(self: Button, button: Button) + emit_signal_recursive: function(self: Button, signal_name: string) + index: function(self: Button, widget: Widget, recursive: boolean): number, Widget, table + connect_signal: function(self: Button, name: string, func: function) + weak_connect_signal: function(self: Button, name: string, func: function) + disconnect_signal: function(self: Button, name: string, func: function) + emit_signal: function(self: Button, name: string) +end + +return Button diff --git a/types/awful/widget/calendar_popup.d.tl b/types/awful/widget/calendar_popup.d.tl new file mode 100644 index 0000000..dea9e2e --- /dev/null +++ b/types/awful/widget/calendar_popup.d.tl @@ -0,0 +1,56 @@ +-- This file was auto-generated. +local type Screen = require("awful.screen") +local type Wibox = require("wibox") + +local record Calendar_popup + enum Signal + end + record Month_Args + position: string + screen: Screen + opacity: number + bg: string + font: string + spacing: number + margin: number + week_numbers: boolean + start_sunday: boolean + long_weekdays: boolean + style_month: table + style_header: table + style_weekday: table + style_weeknumber: table + style_normal: table + style_focus: table + end + month: function(args: Month_Args): Wibox + record Year_Args + position: string + screen: Screen + opacity: number + bg: string + font: string + spacing: number + margin: number + week_numbers: boolean + start_sunday: boolean + long_weekdays: boolean + style_year: table + style_month: table + style_yearheader: table + style_header: table + style_weekday: table + style_weeknumber: table + style_normal: table + style_focus: table + end + year: function(args: Year_Args): Wibox + call_calendar: function(self: Calendar_popup, offset: number, position: string, screen: Screen): Wibox + toggle: function(self: Calendar_popup): boolean + record Attach_Args + on_hover: boolean + end + attach: function(self: Calendar_popup, widget: any, position: string, args: Attach_Args): Wibox +end + +return Calendar_popup diff --git a/types/awful/widget/clienticon.d.tl b/types/awful/widget/clienticon.d.tl new file mode 100644 index 0000000..7ecaae6 --- /dev/null +++ b/types/awful/widget/clienticon.d.tl @@ -0,0 +1,41 @@ +-- This file was auto-generated. +local type Button = require("awful.button") +local type Client = require("awful.client") +local type Widget = require("wibox.widget") + +local record Clienticon + enum Signal + "property::client" + "property::children" + "property::all_children" + "property::forced_height" + "property::forced_width" + "property::opacity" + "property::visible" + "property::buttons" + "widget::layout_changed" + "widget::redraw_needed" + "button::press" + "button::release" + "mouse::enter" + "mouse::leave" + end + metamethod __call: function(self: Clienticon, c: Client): Widget + client: Client | nil + children: table + all_children: table + forced_height: number | nil + forced_width: number | nil + opacity: number + visible: boolean + buttons: table + add_button: function(self: Clienticon, button: Button) + emit_signal_recursive: function(self: Clienticon, signal_name: string) + index: function(self: Clienticon, widget: Widget, recursive: boolean): number, Widget, table + connect_signal: function(self: Clienticon, name: string, func: function) + weak_connect_signal: function(self: Clienticon, name: string, func: function) + disconnect_signal: function(self: Clienticon, name: string, func: function) + emit_signal: function(self: Clienticon, name: string) +end + +return Clienticon diff --git a/types/awful/widget/common.d.tl b/types/awful/widget/common.d.tl new file mode 100644 index 0000000..9682ba0 --- /dev/null +++ b/types/awful/widget/common.d.tl @@ -0,0 +1,8 @@ +-- This file was auto-generated. + +local record Common + enum Signal + end +end + +return Common diff --git a/types/awful/widget/keyboardlayout.d.tl b/types/awful/widget/keyboardlayout.d.tl new file mode 100644 index 0000000..1056020 --- /dev/null +++ b/types/awful/widget/keyboardlayout.d.tl @@ -0,0 +1,40 @@ +-- This file was auto-generated. +local type Button = require("awful.button") +local type Widget = require("wibox.widget") + +local record Keyboardlayout + enum Signal + "property::children" + "property::all_children" + "property::forced_height" + "property::forced_width" + "property::opacity" + "property::visible" + "property::buttons" + "widget::layout_changed" + "widget::redraw_needed" + "button::press" + "button::release" + "mouse::enter" + "mouse::leave" + end + metamethod __call: function(self: Keyboardlayout): Keyboardlayout + get_groups_from_group_names: function(group_names: string): table + next_layout: function(self: Keyboardlayout) + add_button: function(self: Keyboardlayout, button: Button) + emit_signal_recursive: function(self: Keyboardlayout, signal_name: string) + index: function(self: Keyboardlayout, widget: Widget, recursive: boolean): number, Widget, table + connect_signal: function(self: Keyboardlayout, name: string, func: function) + weak_connect_signal: function(self: Keyboardlayout, name: string, func: function) + disconnect_signal: function(self: Keyboardlayout, name: string, func: function) + emit_signal: function(self: Keyboardlayout, name: string) + children: table + all_children: table + forced_height: number | nil + forced_width: number | nil + opacity: number + visible: boolean + buttons: table +end + +return Keyboardlayout diff --git a/types/awful/widget/launcher.d.tl b/types/awful/widget/launcher.d.tl new file mode 100644 index 0000000..ba3a0fc --- /dev/null +++ b/types/awful/widget/launcher.d.tl @@ -0,0 +1,110 @@ +-- This file was auto-generated. +local type Button = require("awful.button") +local type Widget = require("wibox.widget") +local type Menu = require("awful.menu") + +local record Launcher + enum Signal + "property::image" + "property::source_width" + "property::source_height" + "property::clip_shape" + "property::resize" + "property::upscale" + "property::downscale" + "property::stylesheet" + "property::dpi" + "property::auto_dpi" + "property::horizontal_fit_policy" + "property::vertical_fit_policy" + "property::valign" + "property::halign" + "property::max_scaling_factor" + "property::scaling_quality" + "property::children" + "property::all_children" + "property::forced_height" + "property::forced_width" + "property::opacity" + "property::visible" + "property::buttons" + "widget::layout_changed" + "widget::redraw_needed" + "button::press" + "button::release" + "mouse::enter" + "mouse::leave" + end + record Launcher_Args + image: Image + command: string + menu: Menu + end + metamethod __call: function(self: Launcher, args: Launcher_Args): Launcher + image: Image | nil + source_width: number + source_height: number + clip_shape: Gears_Shape_Function + resize: boolean + upscale: boolean + downscale: boolean + stylesheet: string + dpi: number | table + auto_dpi: boolean + enum Horizontal_fit_policy + "auto" + "none" + "fit" + "repeat" + "reflect" + "pad" + end + horizontal_fit_policy: Horizontal_fit_policy + enum Vertical_fit_policy + "auto" + "none" + "fit" + "fit" + "repeat" + "reflect" + "pad" + end + vertical_fit_policy: Vertical_fit_policy + enum Valign + "top" + "center" + "bottom" + end + valign: Valign + enum Halign + "left" + "center" + "right" + end + halign: Halign + max_scaling_factor: number + enum Scaling_quality + "fast" + "good" + "best" + "nearest" + "bilinear" + end + scaling_quality: Scaling_quality + children: table + all_children: table + forced_height: number | nil + forced_width: number | nil + opacity: number + visible: boolean + buttons: table + add_button: function(self: Launcher, button: Button) + emit_signal_recursive: function(self: Launcher, signal_name: string) + index: function(self: Launcher, widget: Widget, recursive: boolean): number, Widget, table + connect_signal: function(self: Launcher, name: string, func: function) + weak_connect_signal: function(self: Launcher, name: string, func: function) + disconnect_signal: function(self: Launcher, name: string, func: function) + emit_signal: function(self: Launcher, name: string) +end + +return Launcher diff --git a/types/awful/widget/layoutbox.d.tl b/types/awful/widget/layoutbox.d.tl new file mode 100644 index 0000000..2242c53 --- /dev/null +++ b/types/awful/widget/layoutbox.d.tl @@ -0,0 +1,58 @@ +-- This file was auto-generated. +local type Button = require("awful.button") +local type Screen = require("awful.screen") +local type Widget = require("wibox.widget") + +local record Layoutbox + enum Signal + "property::spacing_widget" + "property::fill_space" + "property::spacing" + "property::children" + "property::all_children" + "property::forced_height" + "property::forced_width" + "property::opacity" + "property::visible" + "property::buttons" + "widget::layout_changed" + "widget::redraw_needed" + "button::press" + "button::release" + "mouse::enter" + "mouse::leave" + end + record Layoutbox_Args + screen: Screen + buttons: table + end + metamethod __call: function(self: Layoutbox, args: Layoutbox_Args): Layoutbox + spacing_widget: Widget | nil + fill_space: boolean + spacing: number + children: table + all_children: table + forced_height: number | nil + forced_width: number | nil + opacity: number + visible: boolean + buttons: table + add: function(self: Layoutbox) + remove: function(self: Layoutbox, index: number): boolean + remove_widgets: function(self: Layoutbox): boolean + replace_widget: function(self: Layoutbox, widget: Widget, widget2: Widget, recursive: boolean): boolean + insert: function(self: Layoutbox, index: number, widget: Widget): boolean + set: function(self: Layoutbox, index: number, widget2: Widget): boolean + swap: function(self: Layoutbox, index1: number, index2: number): boolean + swap_widgets: function(self: Layoutbox, widget1: Widget, widget2: Widget, recursive: boolean): boolean + reset: function(self: Layoutbox) + add_button: function(self: Layoutbox, button: Button) + emit_signal_recursive: function(self: Layoutbox, signal_name: string) + index: function(self: Layoutbox, widget: Widget, recursive: boolean): number, Widget, table + connect_signal: function(self: Layoutbox, name: string, func: function) + weak_connect_signal: function(self: Layoutbox, name: string, func: function) + disconnect_signal: function(self: Layoutbox, name: string, func: function) + emit_signal: function(self: Layoutbox, name: string) +end + +return Layoutbox diff --git a/types/awful/widget/layoutlist.d.tl b/types/awful/widget/layoutlist.d.tl new file mode 100644 index 0000000..7c431ce --- /dev/null +++ b/types/awful/widget/layoutlist.d.tl @@ -0,0 +1,62 @@ +-- This file was auto-generated. +local type Button = require("awful.button") +local type Layout = require("awful.layout") +local type Screen = require("awful.screen") +local type Widget = require("wibox.widget") + +local record Layoutlist + enum Signal + "property::base_layout" + "property::widget_template" + "property::screen" + "property::source" + "property::layouts" + "property::current_layout" + "property::count" + "property::children" + "property::all_children" + "property::forced_height" + "property::forced_width" + "property::opacity" + "property::visible" + "property::buttons" + "widget::layout_changed" + "widget::redraw_needed" + "button::press" + "button::release" + "mouse::enter" + "mouse::leave" + end + record Layoutlist_Args + base_layout: Widget + buttons: table + source: function + widget_template: table + screen: Screen + style: table + end + metamethod __call: function(self: Layoutlist, args: Layoutlist_Args): Widget + base_layout: table + widget_template: table | nil + screen: Screen + source: function + layouts: table + current_layout: Layout | nil + count: number + children: table + all_children: table + forced_height: number | nil + forced_width: number | nil + opacity: number + visible: boolean + buttons: table + add_button: function(self: Layoutlist, button: Button) + emit_signal_recursive: function(self: Layoutlist, signal_name: string) + index: function(self: Layoutlist, widget: Widget, recursive: boolean): number, Widget, table + connect_signal: function(self: Layoutlist, name: string, func: function) + weak_connect_signal: function(self: Layoutlist, name: string, func: function) + disconnect_signal: function(self: Layoutlist, name: string, func: function) + emit_signal: function(self: Layoutlist, name: string) +end + +return Layoutlist diff --git a/types/awful/widget/only_on_screen.d.tl b/types/awful/widget/only_on_screen.d.tl new file mode 100644 index 0000000..6d5cc27 --- /dev/null +++ b/types/awful/widget/only_on_screen.d.tl @@ -0,0 +1,43 @@ +-- This file was auto-generated. +local type Button = require("awful.button") +local type Screen = require("awful.screen") +local type Widget = require("wibox.widget") + +local record Only_on_screen + enum Signal + "property::widget" + "property::screen" + "property::children" + "property::all_children" + "property::forced_height" + "property::forced_width" + "property::opacity" + "property::visible" + "property::buttons" + "widget::layout_changed" + "widget::redraw_needed" + "button::press" + "button::release" + "mouse::enter" + "mouse::leave" + end + metamethod __call: function(self: Only_on_screen, widget: Widget, s: Screen): table + widget: Widget | nil + screen: Screen + children: table + all_children: table + forced_height: number | nil + forced_width: number | nil + opacity: number + visible: boolean + buttons: table + add_button: function(self: Only_on_screen, button: Button) + emit_signal_recursive: function(self: Only_on_screen, signal_name: string) + index: function(self: Only_on_screen, widget: Widget, recursive: boolean): number, Widget, table + connect_signal: function(self: Only_on_screen, name: string, func: function) + weak_connect_signal: function(self: Only_on_screen, name: string, func: function) + disconnect_signal: function(self: Only_on_screen, name: string, func: function) + emit_signal: function(self: Only_on_screen, name: string) +end + +return Only_on_screen diff --git a/types/awful/widget/prompt.d.tl b/types/awful/widget/prompt.d.tl new file mode 100644 index 0000000..633d793 --- /dev/null +++ b/types/awful/widget/prompt.d.tl @@ -0,0 +1,84 @@ +-- This file was auto-generated. +local type Button = require("awful.button") +local type Widget = require("wibox.widget") + +local record Prompt + enum Signal + "property::with_shell" + "property::widget" + "property::stretch_horizontally" + "property::stretch_vertically" + "property::bg" + "property::fg" + "property::shape" + "property::border_width" + "property::border_color" + "property::border_strategy" + "property::children" + "property::all_children" + "property::forced_height" + "property::forced_width" + "property::opacity" + "property::visible" + "property::buttons" + "widget::layout_changed" + "widget::redraw_needed" + "button::press" + "button::release" + "mouse::enter" + "mouse::leave" + end + record Prompt_Args + prompt: string + bg: Color + fg: Color + fg_cursor: any + bg_cursor: any + ul_cursor: any + font: string + autoexec: boolean + highlighter: function + exe_callback: function + with_shell: boolean + completion_callback: function + history_path: string + history_max: integer + done_callback: function + changed_callback: function + keypressed_callback: function + keyreleased_callback: function + hooks: table + end + metamethod __call: function(self: Prompt, args: Prompt_Args): Prompt + with_shell: boolean + widget: Widget | nil + stretch_horizontally: boolean + stretch_vertically: boolean + bg: Color + fg: Color + shape: Gears_Shape_Function + border_width: number + border_color: Color + enum Border_strategy + "none" + "inner" + end + border_strategy: Border_strategy + children: table + all_children: table + forced_height: number | nil + forced_width: number | nil + opacity: number + visible: boolean + buttons: table + set_shape: function(self: Prompt, shape: Gears_Shape_Function) + add_button: function(self: Prompt, button: Button) + emit_signal_recursive: function(self: Prompt, signal_name: string) + index: function(self: Prompt, widget: Widget, recursive: boolean): number, Widget, table + connect_signal: function(self: Prompt, name: string, func: function) + weak_connect_signal: function(self: Prompt, name: string, func: function) + disconnect_signal: function(self: Prompt, name: string, func: function) + emit_signal: function(self: Prompt, name: string) +end + +return Prompt diff --git a/types/awful/widget/taglist.d.tl b/types/awful/widget/taglist.d.tl new file mode 100644 index 0000000..45cd629 --- /dev/null +++ b/types/awful/widget/taglist.d.tl @@ -0,0 +1,53 @@ +-- This file was auto-generated. +local type Button = require("awful.button") +local type Screen = require("awful.screen") +local type Widget = require("wibox.widget") + +local record Taglist + enum Signal + "property::screen" + "property::base_layout" + "property::count" + "property::update_function" + "property::filter" + "property::source" + "property::widget_template" + "property::children" + "property::all_children" + "property::forced_height" + "property::forced_width" + "property::opacity" + "property::visible" + "property::buttons" + "widget::layout_changed" + "widget::redraw_needed" + "button::press" + "button::release" + "mouse::enter" + "mouse::leave" + end + metamethod __call: function(self: Taglist, args: table, filter: any, buttons: any, style: any, update_function: any, base_widget: any): Taglist + screen: Screen + base_layout: table + count: number + update_function: function + filter: function | nil + source: function + widget_template: table | nil + children: table + all_children: table + forced_height: number | nil + forced_width: number | nil + opacity: number + visible: boolean + buttons: table + emit_signal: function(self: Taglist, name: string) + connect_signal: function(self: Taglist, name: string, func: function) + weak_connect_signal: function(self: Taglist, name: string, func: function) + add_button: function(self: Taglist, button: Button) + emit_signal_recursive: function(self: Taglist, signal_name: string) + index: function(self: Taglist, widget: Widget, recursive: boolean): number, Widget, table + disconnect_signal: function(self: Taglist, name: string, func: function) +end + +return Taglist diff --git a/types/awful/widget/tasklist.d.tl b/types/awful/widget/tasklist.d.tl new file mode 100644 index 0000000..a9485f7 --- /dev/null +++ b/types/awful/widget/tasklist.d.tl @@ -0,0 +1,53 @@ +-- This file was auto-generated. +local type Button = require("awful.button") +local type Screen = require("awful.screen") +local type Widget = require("wibox.widget") + +local record Tasklist + enum Signal + "property::count" + "property::base_layout" + "property::screen" + "property::filter" + "property::update_function" + "property::widget_template" + "property::source" + "property::children" + "property::all_children" + "property::forced_height" + "property::forced_width" + "property::opacity" + "property::visible" + "property::buttons" + "widget::layout_changed" + "widget::redraw_needed" + "button::press" + "button::release" + "mouse::enter" + "mouse::leave" + end + metamethod __call: function(self: Tasklist, args: table, filter: any, buttons: any, style: any, update_function: any, base_widget: any): Tasklist + count: number + base_layout: table + screen: Screen + filter: function + update_function: function | nil + widget_template: table | nil + source: function + children: table + all_children: table + forced_height: number | nil + forced_width: number | nil + opacity: number + visible: boolean + buttons: table + emit_signal: function(self: Tasklist, name: string) + connect_signal: function(self: Tasklist, name: string, func: function) + weak_connect_signal: function(self: Tasklist, name: string, func: function) + add_button: function(self: Tasklist, button: Button) + emit_signal_recursive: function(self: Tasklist, signal_name: string) + index: function(self: Tasklist, widget: Widget, recursive: boolean): number, Widget, table + disconnect_signal: function(self: Tasklist, name: string, func: function) +end + +return Tasklist diff --git a/types/awful/widget/watch.d.tl b/types/awful/widget/watch.d.tl new file mode 100644 index 0000000..63f95b4 --- /dev/null +++ b/types/awful/widget/watch.d.tl @@ -0,0 +1,38 @@ +-- This file was auto-generated. +local type Button = require("awful.button") +local type Widget = require("wibox.widget") + +local record Watch + enum Signal + "property::children" + "property::all_children" + "property::forced_height" + "property::forced_width" + "property::opacity" + "property::visible" + "property::buttons" + "widget::layout_changed" + "widget::redraw_needed" + "button::press" + "button::release" + "mouse::enter" + "mouse::leave" + end + metamethod __call: function(self: Watch, command: string | table, timeout: integer, callback: table, base_widget: Widget): Watch + emit_signal: function(self: Watch, name: string) + connect_signal: function(self: Watch, name: string, func: function) + weak_connect_signal: function(self: Watch, name: string, func: function) + add_button: function(self: Watch, button: Button) + emit_signal_recursive: function(self: Watch, signal_name: string) + index: function(self: Watch, widget: Widget, recursive: boolean): number, Widget, table + disconnect_signal: function(self: Watch, name: string, func: function) + children: table + all_children: table + forced_height: number | nil + forced_width: number | nil + opacity: number + visible: boolean + buttons: table +end + +return Watch diff --git a/types/beautiful.d.tl b/types/beautiful.d.tl new file mode 100644 index 0000000..42c8a21 --- /dev/null +++ b/types/beautiful.d.tl @@ -0,0 +1,27 @@ +-- This file was auto-generated. +local type Screen = require("awful.screen") + +local record Beautiful + enum Signal + end + get_theme_variables: function(): table + get_font: function(name: string | any): any + get_merged_font: function(name: string | any, merge: string): any + get_font_height: function(name: string): number + init: function(config: string | table): boolean | nil + get: function(): table + taglist_squares_sel: function(size: number, fg: Color) + taglist_squares_unsel: function(size: number, fg: Color) + gen_awesome_name: function(cr: any, height: number, bg: Color, fg: Color, alt_fg: Color) + gen_logo: function(cr: any, width: number, height: number, bg: Color, fg: Color) + awesome_icon: function(size: number, bg: Color, fg: Color) + wallpaper: function(bg: Color, fg: Color, alt_fg: Color, s: Screen) + recolor_titlebar: function(theme: table, color: Color, state: string, postfix: string, toggle_state: string): table + recolor_layout: function(theme: table, color: Color): table + get_current_theme: function(): table + set_dpi: function(dpi: number, s: integer) + apply_dpi: function(size: number, s: integer | Screen): integer + theme_path: string +end + +return Beautiful diff --git a/types/dbus.d.tl b/types/dbus.d.tl new file mode 100644 index 0000000..adbeb8c --- /dev/null +++ b/types/dbus.d.tl @@ -0,0 +1,8 @@ +-- This file was auto-generated. + +local record Dbus + enum Signal + end +end + +return Dbus diff --git a/types/gears.d.tl b/types/gears.d.tl new file mode 100644 index 0000000..2a72c91 --- /dev/null +++ b/types/gears.d.tl @@ -0,0 +1,38 @@ +-- This file was auto-generated. +local type Cache = require("gears.cache") +local type Debug = require("gears.debug") +local type Filesystem = require("gears.filesystem") +local type Geometry = require("gears.geometry") +local type Matcher = require("gears.matcher") +local type Math = require("gears.math") +local type Matrix = require("gears.matrix") +local type Object = require("gears.object") +local type Protected_call = require("gears.protected_call") +local type Shape = require("gears.shape") +local type Sort = require("gears.sort") +local type String = require("gears.string") +local type Surface = require("gears.surface") +local type Table = require("gears.table") +local type Timer = require("gears.timer") +local type Wallpaper = require("gears.wallpaper") + +local record Gears + cache: Cache + debug: Debug + filesystem: Filesystem + geometry: Geometry + matcher: Matcher + math: Math + matrix: Matrix + object: Object + protected_call: Protected_call + shape: Shape + sort: Sort + string: String + surface: Surface + table: Table + timer: Timer + wallpaper: Wallpaper +end + +return Gears diff --git a/types/gears/cache.d.tl b/types/gears/cache.d.tl new file mode 100644 index 0000000..9aaa7bd --- /dev/null +++ b/types/gears/cache.d.tl @@ -0,0 +1,9 @@ +-- This file was auto-generated. + +local record Cache + enum Signal + end + metamethod __call: function(self: Cache, creation_cb: any): Cache +end + +return Cache diff --git a/types/gears/debug.d.tl b/types/gears/debug.d.tl new file mode 100644 index 0000000..b3aa983 --- /dev/null +++ b/types/gears/debug.d.tl @@ -0,0 +1,21 @@ +-- This file was auto-generated. + +local record Debug + enum Signal + end + dump_return: function(data: any, tag: any, depth: integer): string + dump: function(data: any, tag: any, depth: integer) + print_warning: function(message: string) + print_error: function(message: string) + record Deprecate_Args + raw: boolean + deprecated_in: integer + end + deprecate: function(see: any, args: Deprecate_Args) + record Deprecate_class_Args + deprecated_in: number + end + deprecate_class: function(fallback: table, old_name: string, new_name: string, args: Deprecate_class_Args): table +end + +return Debug diff --git a/types/gears/filesystem.d.tl b/types/gears/filesystem.d.tl new file mode 100644 index 0000000..59db005 --- /dev/null +++ b/types/gears/filesystem.d.tl @@ -0,0 +1,25 @@ +-- This file was auto-generated. + +local record Filesystem + enum Signal + end + make_directories: function(dir: string) + make_parent_directories: function(path: string) + file_readable: function(filename: string): boolean + file_executable: function(filename: string): boolean + dir_readable: function(path: string): boolean + dir_writable: function(path: string): boolean + is_dir: function(path: string): boolean + get_xdg_config_home: function() + get_xdg_cache_home: function() + get_xdg_data_home: function(): string + get_xdg_data_dirs: function(): table + get_configuration_dir: function() + get_cache_dir: function() + get_themes_dir: function(): string + get_awesome_icon_dir: function() + get_dir: function(d: any) + get_random_file_from_dir: function(path: string, exts: table, absolute_path: boolean): string | nil +end + +return Filesystem diff --git a/types/gears/geometry.d.tl b/types/gears/geometry.d.tl new file mode 100644 index 0000000..9dadb55 --- /dev/null +++ b/types/gears/geometry.d.tl @@ -0,0 +1,29 @@ +-- This file was auto-generated. + +local record Geometry + enum Signal + end + get_square_distance: function(geom: table, x: number, y: number): number + get_closest_by_coord: function(list: table, x: number, y: number) + get_by_coord: function(list: table, x: number, y: number) + get_in_direction: function(dir: string, recttbl: table, cur: table) + are_equal: function(a: table, b: table): boolean + is_inside: function(a: table, b: table): boolean + area_intersect_area: function(a: table, b: table) + record Get_intersection_B + x: number + y: number + width: number + height: number + end + get_intersection: function(a: table, b: Get_intersection_B): table + record Area_remove_Elem + x: number + y: number + width: number + height: number + end + area_remove: function(areas: table, elem: Area_remove_Elem) +end + +return Geometry diff --git a/types/gears/matcher.d.tl b/types/gears/matcher.d.tl new file mode 100644 index 0000000..f3405fc --- /dev/null +++ b/types/gears/matcher.d.tl @@ -0,0 +1,29 @@ +-- This file was auto-generated. + +local record Matcher + enum Signal + "rule::appended" + "rule::removed" + "matching_function::added" + "matching_rules::added" + "matching_source::removed" + end + metamethod __call: function(self: Matcher): Matcher + matches_rule: function(self: Matcher, o: any, entry: table): boolean + matching_rules: function(self: Matcher, o: any, rules: table): table + matches_rules: function(self: Matcher, o: any, rules: table): boolean + add_property_matcher: function(self: Matcher, name: string, f: function) + add_property_setter: function(self: Matcher, name: string, f: function) + add_matching_rules: function(self: Matcher, name: string, rules: table, depends_on: table, precede: table): boolean + add_matching_function: function(self: Matcher, name: string, callback: table, depends_on: table, precede: table): boolean + remove_matching_source: function(self: Matcher, name: string): boolean + apply: function(self: Matcher, o: any) + append_rule: function(self: Matcher, source: string, rule: table) + append_rules: function(self: Matcher, source: string, rules: table) + remove_rule: function(self: Matcher, source: string, rule: string | table): boolean + emit_signal: function(self: Matcher, name: string) + connect_signal: function(self: Matcher, name: string, func: function) + weak_connect_signal: function(self: Matcher, name: string, func: function) +end + +return Matcher diff --git a/types/gears/math.d.tl b/types/gears/math.d.tl new file mode 100644 index 0000000..dffc17c --- /dev/null +++ b/types/gears/math.d.tl @@ -0,0 +1,12 @@ +-- This file was auto-generated. + +local record Math + enum Signal + end + subsets: function(set: any) + cycle: function(t: any, i: any) + round: function(x: number): integer + sign: function(x: number): integer +end + +return Math diff --git a/types/gears/matrix.d.tl b/types/gears/matrix.d.tl new file mode 100644 index 0000000..a2d7992 --- /dev/null +++ b/types/gears/matrix.d.tl @@ -0,0 +1,14 @@ +-- This file was auto-generated. + +local record Matrix + enum Signal + end + create: function(xx: number, yx: number, xy: number, yy: number, x0: number, y0: number) + create_translate: function(x: number, y: number) + create_scale: function(sx: number, sy: number) + create_rotate: function(angle: number) + create_rotate_at: function(x: number, y: number, angle: number) + identity: Matrix +end + +return Matrix diff --git a/types/gears/object.d.tl b/types/gears/object.d.tl new file mode 100644 index 0000000..6072ecb --- /dev/null +++ b/types/gears/object.d.tl @@ -0,0 +1,19 @@ +-- This file was auto-generated. + +local record Object + enum Signal + end + record Object_Args + enable_properties: boolean + enable_auto_signals: boolean + class: table + end + metamethod __call: function(self: Object, args: Object_Args): table + modulename: function(level: integer): string + connect_signal: function(self: Object, name: string, func: function) + weak_connect_signal: function(self: Object, name: string, func: function) + disconnect_signal: function(self: Object, name: string, func: function) + emit_signal: function(self: Object, name: string) +end + +return Object diff --git a/types/gears/protected_call.d.tl b/types/gears/protected_call.d.tl new file mode 100644 index 0000000..3c223f8 --- /dev/null +++ b/types/gears/protected_call.d.tl @@ -0,0 +1,9 @@ +-- This file was auto-generated. + +local record Protected_call + enum Signal + end + protected_call: function(func: function) +end + +return Protected_call diff --git a/types/gears/shape.d.tl b/types/gears/shape.d.tl new file mode 100644 index 0000000..513f17c --- /dev/null +++ b/types/gears/shape.d.tl @@ -0,0 +1,31 @@ +-- This file was auto-generated. + +local record Shape + enum Signal + end + partial_squircle: function(cr: any, width: number, height: number, tl: boolean, tr: boolean, br: boolean, bl: boolean, rate: number, delta: number) + squircle: function(cr: any, width: number, height: number, rate: number, delta: number) + star: function(cr: any, width: number, height: number, n: number) + rounded_rect: function(cr: any, width: number, height: number, radius: number) + rounded_bar: function(cr: any, width: any, height: any) + partially_rounded_rect: function(cr: any, width: number, height: number, tl: boolean, tr: boolean, br: boolean, bl: boolean, rad: number) + infobubble: function(cr: any, width: number, height: number, corner_radius: number, arrow_size: number, arrow_position: number) + rectangular_tag: function(cr: any, width: number, height: number, arrow_length: number) + arrow: function(cr: any, width: number, height: number, head_width: number, shaft_width: number, shaft_length: number) + hexagon: function(cr: any, width: number, height: number) + powerline: function(cr: any, width: number, height: number, arrow_depth: number) + isosceles_triangle: function(cr: any, width: number, height: number) + cross: function(cr: any, width: number, height: number, thickness: number) + octogon: function(cr: any, width: number, height: number, corner_radius: number) + circle: function(cr: any, width: number, height: number, radius: number) + rectangle: function(cr: any, width: number, height: number) + parallelogram: function(cr: any, width: number, height: number, base_width: number) + losange: function(cr: any, width: number, height: number) + pie: function(cr: any, width: number, height: number, start_angle: number, end_angle: number, radius: number) + arc: function(cr: any, width: number, height: number, thickness: number, start_angle: number, end_angle: number, start_rounded: boolean, end_rounded: boolean) + solid_rectangle_shadow: function(cr: any, width: number, height: number, x_offset: number, y_offset: number) + radial_progress: function(cr: any, w: number, h: number, percent: number, hide_left: boolean) + transform: function(shape: any) +end + +return Shape diff --git a/types/gears/sort.d.tl b/types/gears/sort.d.tl new file mode 100644 index 0000000..f04f103 --- /dev/null +++ b/types/gears/sort.d.tl @@ -0,0 +1,8 @@ +-- This file was auto-generated. + +local record Sort + enum Signal + end +end + +return Sort diff --git a/types/gears/string.d.tl b/types/gears/string.d.tl new file mode 100644 index 0000000..c2ba4f7 --- /dev/null +++ b/types/gears/string.d.tl @@ -0,0 +1,17 @@ +-- This file was auto-generated. + +local record String + enum Signal + end + xml_escape: function(text: string): string + xml_unescape: function(text: string): string + linecount: function(text: string): integer + linewrap: function(text: string, width: number, indent: number): string + quote_pattern: function(s: string): string + query_to_pattern: function(q: string): string + split: function(s: string, sep: string): table + startswith: function(str: string, sub: string): boolean + endswith: function(str: string, sub: string): boolean +end + +return String diff --git a/types/gears/surface.d.tl b/types/gears/surface.d.tl new file mode 100644 index 0000000..6d6ef61 --- /dev/null +++ b/types/gears/surface.d.tl @@ -0,0 +1,25 @@ +-- This file was auto-generated. + +local record Surface + enum Signal + end + load_uncached_silently: function(surface: any, default: any) + load_silently: function(surface: any, default: any) + load_uncached: function(surface: any) + surface: function(surface: any) + get_size: function(surf: any) + duplicate_surface: function(s: any) + load_from_shape: function(width: number, height: number, shape: any, shape_color: any, bg_color: any): Cairo_Surface + apply_shape_bounding: function(draw: any, shape: Gears_Shape_Function, ...: any) + record Crop_surface_Args + left: integer + right: integer + top: integer + bottom: integer + ratio: number | nil + surface: Cairo_Surface + end + crop_surface: function(args: Crop_surface_Args) +end + +return Surface diff --git a/types/gears/table.d.tl b/types/gears/table.d.tl new file mode 100644 index 0000000..e3bd9a4 --- /dev/null +++ b/types/gears/table.d.tl @@ -0,0 +1,24 @@ +-- This file was auto-generated. + +local record Table + enum Signal + end + join: function(): table + crush: function(target: table, source: table, raw: boolean): table + from_sparse: function(t: table): table + hasitem: function(t: table, item: any): string | number + find_keys: function(t: table, matcher: function, ordered: boolean, max: number): table | nil + find_first_key: function(t: table, matcher: function, ordered: boolean) + keys: function(t: table): table + count_keys: function(t: table): number + keys_filter: function(t: table): table + reverse: function(t: table): table + clone: function(t: table, deep: boolean): table + cycle_value: function(t: table, value: any, step_size: number, filter: function, start_at: number): number | nil + iterate: function(t: table, filter: function, start: integer): function + merge: function(target: table, source: table): table + diff_merge: function(target: table, new: table, identifier: function, merger: function): table, table, table, table + map: function(f: function, tbl: table): table +end + +return Table diff --git a/types/gears/timer.d.tl b/types/gears/timer.d.tl new file mode 100644 index 0000000..0e22e3f --- /dev/null +++ b/types/gears/timer.d.tl @@ -0,0 +1,33 @@ +-- This file was auto-generated. + +local record Timer + enum Signal + "property::started" + "property::timeout" + "start" + "stop" + "timeout" + end + record Timer_Args + timeout: number + autostart: boolean + call_now: boolean + callback: function + single_shot: boolean + end + metamethod __call: function(self: Timer, args: Timer_Args): Timer + start_new: function(timeout: number, callback: function): Timer + weak_start_new: function(timeout: number, callback: function): Timer + run_delayed_calls_now: function() + delayed_call: function(callback: function) + started: boolean + timeout: number + start: function(self: Timer) + stop: function(self: Timer) + again: function(self: Timer) + emit_signal: function(self: Timer, name: string) + connect_signal: function(self: Timer, name: string, func: function) + weak_connect_signal: function(self: Timer, name: string, func: function) +end + +return Timer diff --git a/types/gears/wallpaper.d.tl b/types/gears/wallpaper.d.tl new file mode 100644 index 0000000..8f4337f --- /dev/null +++ b/types/gears/wallpaper.d.tl @@ -0,0 +1,8 @@ +-- This file was auto-generated. + +local record Wallpaper + enum Signal + end +end + +return Wallpaper diff --git a/types/global_env_def.d.tl b/types/global_env_def.d.tl new file mode 100644 index 0000000..2871370 --- /dev/null +++ b/types/global_env_def.d.tl @@ -0,0 +1,109 @@ + +global type Gears_Shape_Function = (function(cr: any, width: integer, height: integer)) + +global type Color = any + +global type Cairo_Surface = any + +global type Cairo_Context = any + +global type Image = any + +global type Awful_Placement_Function = function(d: any, args: table) + +global record client + instances: function(): integer + get: function(screen: integer | screen, stacked: boolean): table + disconnect_signal: function(name: string, func: function) + emit_signal: function(name: string) + connect_signal: function(name: string, func: function) +end + +global record screen + instances: function(): table + screen: function(): function + count: function(): number + disconnect_signal: function(name: string, func: function) + emit_signal: function(name: string) + connect_signal: function(name: string, func: function) +end + +global record Drawable + enum Signal + "property::image" + "button::press" + "button::release" + "mouse::enter" + "mouse::leave" + "mouse::move" + "property::geometry" + "property::height" + "property::width" + "property::x" + "property::y" + "property::surface" + end + instances: function() + disconnect_signal: function(name: string, func: function) + emit_signal: function(name: string) + connect_signal: function(name: string, func: function) + image: Image + refresh: function(self: Drawable) + geometry: function(self: Drawable): table +end + +global record awesome + enum Signal + "debug::error" + "debug::deprecation" + "debug::index::miss" + "debug::newindex::miss" + "systray::update" + "wallpaper_changed" + "xkb::map_changed" + "xkb::group_changed." + "refresh" + "startup" + "exit" + "screen::change" + "spawn::canceled" + "spawn::change" + "spawn::completed" + "spawn::initiated" + "spawn::timeout" + end + register_xproperty: function(name: string, type: string) + quit: function(code: integer) + exec: function(cmd: string) + restart: function() + kill: function(pid: integer, sig: integer): boolean + sync: function() + pixbuf_to_surface: function(pixbuf: any, path: any): Cairo_Surface + load_image: function(name: string): Cairo_Surface, nil | string + set_preferred_icon_size: function(size: integer) + connect_signal: function(name: string, func: function) + disconnect_signal: function(name: string, func: function) + emit_signal: function(name: function) + spawn: function(cmd: table, use_sn: boolean, stdin: boolean, stdout: boolean, stderr: boolean, exit_callback: function, cmd: table): integer, string, integer, integer, integer + xkb_set_layout_group: function(num: integer) + xkb_get_layout_group: function(): integer + xkb_get_group_names: function(): string + version: string + release: string + api_level: string + conffile: string + startup: boolean + startup_errors: string + composite_manager_running: boolean + unix_signal: table + hostname: string + themes_path: string + icon_path: string +end + +global record tag + instances: function(): table + disconnect_signal: function(name: string, func: function) + emit_signal: function(name: string) + connect_signal: function(name: string, func: function) +end diff --git a/types/menubar.d.tl b/types/menubar.d.tl new file mode 100644 index 0000000..3e09381 --- /dev/null +++ b/types/menubar.d.tl @@ -0,0 +1,26 @@ +-- This file was auto-generated. +local type Icon_theme = require("menubar.icon_theme") +local type Index_theme = require("menubar.index_theme") +local type Menu_gen = require("menubar.menu_gen") +local type Screen = require("awful.screen") +local type Utils = require("menubar.utils") + +local record Menubar + icon_theme: Icon_theme + index_theme: Index_theme + menu_gen: Menu_gen + utils: Utils + enum Signal + end + refresh: function(scr: Screen) + show: function(scr: Screen) + hide: function() + cache_entries: boolean + show_categories: boolean + match_empty: boolean + right_margin: number + right_label: string + left_label: string +end + +return Menubar diff --git a/types/menubar/icon_theme.d.tl b/types/menubar/icon_theme.d.tl new file mode 100644 index 0000000..d4e948f --- /dev/null +++ b/types/menubar/icon_theme.d.tl @@ -0,0 +1,8 @@ +-- This file was auto-generated. + +local record Icon_theme + enum Signal + end +end + +return Icon_theme diff --git a/types/menubar/index_theme.d.tl b/types/menubar/index_theme.d.tl new file mode 100644 index 0000000..96e3818 --- /dev/null +++ b/types/menubar/index_theme.d.tl @@ -0,0 +1,8 @@ +-- This file was auto-generated. + +local record Index_theme + enum Signal + end +end + +return Index_theme diff --git a/types/menubar/menu_gen.d.tl b/types/menubar/menu_gen.d.tl new file mode 100644 index 0000000..a977ff3 --- /dev/null +++ b/types/menubar/menu_gen.d.tl @@ -0,0 +1,13 @@ +-- This file was auto-generated. + +local record Menu_gen + enum Signal + end + record Generate_Callback + entries: table + end + generate: function(callback: Generate_Callback) + all_menu_dirs: any +end + +return Menu_gen diff --git a/types/menubar/utils.d.tl b/types/menubar/utils.d.tl new file mode 100644 index 0000000..d1af40d --- /dev/null +++ b/types/menubar/utils.d.tl @@ -0,0 +1,18 @@ +-- This file was auto-generated. + +local record Utils + enum Signal + end + rtrim: function(s: string): string + lookup_icon_uncached: function(icon_file: string): string | boolean + lookup_icon: function(icon: any) + parse_desktop_file: function(file: any) + record Parse_dir_Callback + programs: table + end + parse_dir: function(dir_path: string, callback: Parse_dir_Callback) + terminal: string + wm_name: string +end + +return Utils diff --git a/types/mouse.d.tl b/types/mouse.d.tl new file mode 100644 index 0000000..17ae9fe --- /dev/null +++ b/types/mouse.d.tl @@ -0,0 +1,47 @@ +-- This file was auto-generated. +local type Button = require("awful.button") +local type Client = require("awful.client") +local type Screen = require("awful.screen") +local type Wibox = require("wibox") +local type Widget = require("wibox.widget") + +local record Mouse + enum Signal + "property::screen" + "property::current_client" + "property::current_wibox" + "property::current_widgets" + "property::current_widget" + "property::current_widget_geometry" + "property::current_widget_geometries" + "property::is_left_mouse_button_pressed" + "property::is_right_mouse_button_pressed" + "property::is_middle_mouse_button_pressed" + end + object_under_pointer: function(): Client | Wibox | nil + move: function(w: Wibox) + append_global_mousebinding: function(button: Button) + append_global_mousebindings: function(buttons: table) + remove_global_mousebinding: function(button: Button) + append_client_mousebinding: function(button: Button) + append_client_mousebindings: function(buttons: table) + remove_client_mousebinding: function(button: Button): boolean + coords: function(coords_table: table, silent: boolean): table + screen: Screen | nil + current_client: Client | nil + current_wibox: Wibox | nil + current_widgets: nil | table + current_widget: Widget | nil + current_widget_geometry: table | nil + current_widget_geometries: table | nil + is_left_mouse_button_pressed: boolean + is_right_mouse_button_pressed: boolean + is_middle_mouse_button_pressed: boolean + default_distance: integer + aerosnap_distance: integer + edge_enabled: boolean + client_enabled: boolean + enabled: boolean +end + +return Mouse diff --git a/types/mousegrabber.d.tl b/types/mousegrabber.d.tl new file mode 100644 index 0000000..1324e21 --- /dev/null +++ b/types/mousegrabber.d.tl @@ -0,0 +1,11 @@ +-- This file was auto-generated. + +local record Mousegrabber + enum Signal + end + run: function(func: function, cursor: string | nil) + stop: function() + isrunning: function(): boolean +end + +return Mousegrabber diff --git a/types/naughty.d.tl b/types/naughty.d.tl new file mode 100644 index 0000000..47c57d2 --- /dev/null +++ b/types/naughty.d.tl @@ -0,0 +1,46 @@ +-- This file was auto-generated. +local type Action = require("naughty.action") +local type Layout = require("naughty.layout") +local type List = require("naughty.list") +local type Notification = require("naughty.notification") +local type Screen = require("awful.screen") +local type Widget = require("naughty.widget") + +local record Naughty + action: Action + layout: Layout + list: List + notification: Notification + widget: Widget + enum Signal + "property::suspended" + "property::expiration_paused" + "property::active" + "property::has_display_handler" + "property::auto_reset_timeout" + "property::image_animations_enabled" + "property::persistence_enabled" + "request::display_error" + "added" + "destroyed" + "request::display" + "request::preset" + "request::action_icon" + "request::icon" + "request::screen" + end + destroy_all_notifications: function(screens: table, reason: number): boolean | nil + get_by_id: function(id: integer): Notification | nil + connect_signal: function(name: string, func: function) + emit_signal: function(name: string) + disconnect_signal: function(name: string, func: function): boolean + suspended: boolean + expiration_paused: boolean + active: table + has_display_handler: boolean + auto_reset_timeout: boolean + image_animations_enabled: boolean + persistence_enabled: boolean +end + +return Naughty diff --git a/types/naughty/action.d.tl b/types/naughty/action.d.tl new file mode 100644 index 0000000..4c892c0 --- /dev/null +++ b/types/naughty/action.d.tl @@ -0,0 +1,28 @@ +-- This file was auto-generated. +local type Notification = require("naughty.notification") + +local record Action + enum Signal + "property::position" + "property::icon" + "property::icon_only" + "invoked" + end + record Action_Args + name: string + position: string + icon: string + notification: Notification + selected: boolean + end + metamethod __call: function(self: Action, args: Action_Args): Action + position: integer + icon: Image | string | nil + icon_only: boolean + invoke: function(self: Action, notif: Notification) + emit_signal: function(self: Action, name: string) + connect_signal: function(self: Action, name: string, func: function) + weak_connect_signal: function(self: Action, name: string, func: function) +end + +return Action diff --git a/types/naughty/layout.d.tl b/types/naughty/layout.d.tl new file mode 100644 index 0000000..0537fe0 --- /dev/null +++ b/types/naughty/layout.d.tl @@ -0,0 +1,11 @@ +-- This file was auto-generated. +local type Box = require("naughty.layout.box") +local type Legacy = require("naughty.layout.legacy") +local type Screen = require("awful.screen") + +local record Layout + box: Box + legacy: Legacy +end + +return Layout diff --git a/types/naughty/layout/box.d.tl b/types/naughty/layout/box.d.tl new file mode 100644 index 0000000..d869002 --- /dev/null +++ b/types/naughty/layout/box.d.tl @@ -0,0 +1,131 @@ +-- This file was auto-generated. +local type Notification = require("naughty.notification") +local type Screen = require("awful.screen") +local type Widget = require("wibox.widget") + +local record Box + enum Signal + "property::notification" + "property::widget_template" + "property::preferred_positions" + "property::preferred_anchors" + "property::current_position" + "property::current_anchor" + "property::hide_on_right_click" + "property::minimum_width" + "property::minimum_height" + "property::maximum_width" + "property::maximum_height" + "property::offset" + "property::placement" + "property::border_width" + "property::border_color" + "property::ontop" + "property::cursor" + "property::visible" + "property::opacity" + "property::type" + "property::x" + "property::y" + "property::width" + "property::height" + "property::screen" + "property::widget" + "property::window" + "property::shape_bounding" + "property::shape_clip" + "property::shape_input" + "property::shape" + "property::input_passthrough" + "property::buttons" + "property::bg" + "property::bgimage" + "property::fg" + end + record Box_Args + widget_template: table + notification: Notification + position: string + border_width: integer + border_color: string + ontop: boolean + cursor: string + visible: boolean + opacity: number + type: string + x: integer + y: integer + width: integer + height: integer + screen: Screen + widget: Widget + shape_bounding: any + shape_clip: any + shape_input: any + bg: Color + bgimage: Cairo_Surface + fg: Color + shape: Gears_Shape_Function + input_passthrough: boolean + end + metamethod __call: function(self: Box, args: Box_Args): Box + notification: Notification + widget_template: table | nil + preferred_positions: table | string + preferred_anchors: table | string + enum Current_position + "left" + "right" + "top" + "bottom" + end + current_position: Current_position + enum Current_anchor + "front" + "middle" + "back" + end + current_anchor: Current_anchor + hide_on_right_click: boolean + minimum_width: integer + minimum_height: integer + maximum_width: integer + maximum_height: integer + offset: table | integer + placement: Awful_Placement_Function | string | boolean + border_width: integer + border_color: string + ontop: boolean + cursor: string | nil + visible: boolean + opacity: number + type: string + x: integer + y: integer + width: integer + height: integer + screen: Screen + widget: Widget | nil + window: string + shape_bounding: Cairo_Surface + shape_clip: Cairo_Surface + shape_input: Cairo_Surface + shape: Gears_Shape_Function + input_passthrough: boolean + buttons: table + bg: Color + bgimage: Image | nil + fg: Color + move_next_to: function(self: Box, obj: any): table + bind_to_widget: function(self: Box, widget: Widget, button: number) + unbind_to_widget: function(self: Box, widget: Widget) + geometry: function(self: Box, geo: table | nil): table + struts: function(self: Box, struts: table) + setup: function(self: Box, args: any) + find_widgets: function(self: Box, x: number, y: number): table + to_widget: function(self: Box): Widget + save_to_svg: function(self: Box, path: string, context: table) + draw: function(self: Box, wibox: any) +end + +return Box diff --git a/types/naughty/layout/legacy.d.tl b/types/naughty/layout/legacy.d.tl new file mode 100644 index 0000000..cdcdebe --- /dev/null +++ b/types/naughty/layout/legacy.d.tl @@ -0,0 +1,8 @@ +-- This file was auto-generated. + +local record Legacy + enum Signal + end +end + +return Legacy diff --git a/types/naughty/list.d.tl b/types/naughty/list.d.tl new file mode 100644 index 0000000..d7a0485 --- /dev/null +++ b/types/naughty/list.d.tl @@ -0,0 +1,10 @@ +-- This file was auto-generated. +local type Actions = require("naughty.list.actions") +local type Notifications = require("naughty.list.notifications") + +local record List + actions: Actions + notifications: Notifications +end + +return List diff --git a/types/naughty/list/actions.d.tl b/types/naughty/list/actions.d.tl new file mode 100644 index 0000000..b215f44 --- /dev/null +++ b/types/naughty/list/actions.d.tl @@ -0,0 +1,47 @@ +-- This file was auto-generated. +local type Button = require("awful.button") +local type Notification = require("naughty.notification") +local type Widget = require("wibox.widget") + +local record Actions + enum Signal + "property::notification" + "property::base_layout" + "property::widget_template" + "property::style" + "property::children" + "property::all_children" + "property::forced_height" + "property::forced_width" + "property::opacity" + "property::visible" + "property::buttons" + "widget::layout_changed" + "widget::redraw_needed" + "button::press" + "button::release" + "mouse::enter" + "mouse::leave" + end + metamethod __call: function(self: Actions, args: table, widget_template: table): Widget + notification: Notification | nil + base_layout: Widget + widget_template: table | nil + style: table | nil + children: table + all_children: table + forced_height: number | nil + forced_width: number | nil + opacity: number + visible: boolean + buttons: table + emit_signal: function(self: Actions, name: string) + connect_signal: function(self: Actions, name: string, func: function) + weak_connect_signal: function(self: Actions, name: string, func: function) + add_button: function(self: Actions, button: Button) + emit_signal_recursive: function(self: Actions, signal_name: string) + index: function(self: Actions, widget: Widget, recursive: boolean): number, Widget, table + disconnect_signal: function(self: Actions, name: string, func: function) +end + +return Actions diff --git a/types/naughty/list/notifications.d.tl b/types/naughty/list/notifications.d.tl new file mode 100644 index 0000000..ae76559 --- /dev/null +++ b/types/naughty/list/notifications.d.tl @@ -0,0 +1,55 @@ +-- This file was auto-generated. +local type Button = require("awful.button") +local type Notification = require("naughty.notification") +local type Widget = require("wibox.widget") + +local record Notifications + enum Signal + "property::notification" + "property::base_layout" + "property::widget_template" + "property::style" + "property::filter" + "property::children" + "property::all_children" + "property::forced_height" + "property::forced_width" + "property::opacity" + "property::visible" + "property::buttons" + "widget::layout_changed" + "widget::redraw_needed" + "button::press" + "button::release" + "mouse::enter" + "mouse::leave" + end + record Notifications_Args + base_layout: Widget + filter: Widget + style: table + widget_template: table + end + metamethod __call: function(self: Notifications, args: Notifications_Args): Widget + notification: Notification + base_layout: Widget + widget_template: table | nil + style: table | nil + filter: function | nil + children: table + all_children: table + forced_height: number | nil + forced_width: number | nil + opacity: number + visible: boolean + buttons: table + emit_signal: function(self: Notifications, name: string) + connect_signal: function(self: Notifications, name: string, func: function) + weak_connect_signal: function(self: Notifications, name: string, func: function) + add_button: function(self: Notifications, button: Button) + emit_signal_recursive: function(self: Notifications, signal_name: string) + index: function(self: Notifications, widget: Widget, recursive: boolean): number, Widget, table + disconnect_signal: function(self: Notifications, name: string, func: function) +end + +return Notifications diff --git a/types/naughty/notification.d.tl b/types/naughty/notification.d.tl new file mode 100644 index 0000000..5572454 --- /dev/null +++ b/types/naughty/notification.d.tl @@ -0,0 +1,121 @@ +-- This file was auto-generated. +local type Screen = require("awful.screen") + +local record Notification + enum Signal + "property::title" + "property::timeout" + "property::urgency" + "property::category" + "property::resident" + "property::hover_timeout" + "property::screen" + "property::position" + "property::ontop" + "property::height" + "property::width" + "property::font" + "property::icon" + "property::icon_size" + "property::app_icon" + "property::image" + "property::images" + "property::fg" + "property::bg" + "property::border_width" + "property::border_color" + "property::shape" + "property::opacity" + "property::margin" + "property::preset" + "property::callback" + "property::actions" + "property::ignore" + "property::suspended" + "property::is_expired" + "property::auto_reset_timeout" + "property::clients" + "property::max_width" + "property::app_name" + "property::widget_template" + "destroyed" + end + record Notification_Args + text: string + title: string + timeout: integer + hover_timeout: number + screen: integer | Screen + position: string + ontop: boolean + height: integer + width: integer + font: string | any + icon: Image + icon_size: integer + fg: string + bg: string + border_width: integer + border_color: any + shape: Gears_Shape_Function + opacity: number + margin: number + run: function + destroy: function + preset: table + callback: function + actions: table + ignore_suspend: boolean + end + metamethod __call: function(self: Notification, args: Notification_Args): Notification + title: string + timeout: number + enum Urgency + "low" + "normal" + "critical" + end + urgency: Urgency + category: string | nil + resident: boolean + hover_timeout: number | nil + screen: Screen + position: string | nil + ontop: boolean + height: number | nil + width: number | nil + font: string | nil + icon: Image | nil + icon_size: integer | nil + app_icon: string | nil + image: Image | nil + images: nil | table + fg: Color | nil + bg: Color | nil + border_width: number | nil + border_color: string | nil + shape: Gears_Shape_Function | nil + opacity: number | nil + margin: number | table | nil + preset: table | nil + callback: function | nil + actions: table + ignore: boolean + suspended: boolean + is_expired: boolean + auto_reset_timeout: boolean + clients: table + max_width: number | nil + app_name: string | nil + widget_template: table | nil + destroy: function(self: Notification, reason: string, keep_visible: boolean): boolean + reset_timeout: function(self: Notification, new_timeout: number) + append_actions: function(self: Notification, new_actions: table) + grant: function(self: Notification, permission: string, context: string) + deny: function(self: Notification, permission: string, context: string) + emit_signal: function(self: Notification, name: string) + connect_signal: function(self: Notification, name: string, func: function) + weak_connect_signal: function(self: Notification, name: string, func: function) +end + +return Notification diff --git a/types/naughty/widget.d.tl b/types/naughty/widget.d.tl new file mode 100644 index 0000000..b553965 --- /dev/null +++ b/types/naughty/widget.d.tl @@ -0,0 +1,15 @@ +-- This file was auto-generated. +local type Background = require("naughty.widget.background") +local type Icon = require("naughty.widget.icon") +local type Message = require("naughty.widget.message") +local type Screen = require("awful.screen") +local type Title = require("naughty.widget.title") + +local record Widget + background: Background + icon: Icon + message: Message + title: Title +end + +return Widget diff --git a/types/naughty/widget/background.d.tl b/types/naughty/widget/background.d.tl new file mode 100644 index 0000000..6ab78ce --- /dev/null +++ b/types/naughty/widget/background.d.tl @@ -0,0 +1,67 @@ +-- This file was auto-generated. +local type Button = require("awful.button") +local type Notification = require("naughty.notification") +local type Widget = require("wibox.widget") + +local record Background + enum Signal + "property::notification" + "property::widget" + "property::stretch_horizontally" + "property::stretch_vertically" + "property::bg" + "property::fg" + "property::shape" + "property::border_width" + "property::border_color" + "property::border_strategy" + "property::children" + "property::all_children" + "property::forced_height" + "property::forced_width" + "property::opacity" + "property::visible" + "property::buttons" + "widget::layout_changed" + "widget::redraw_needed" + "button::press" + "button::release" + "mouse::enter" + "mouse::leave" + end + record Background_Args + notification: Notification + end + metamethod __call: function(self: Background, args: Background_Args): Background + notification: Notification + widget: Widget | nil + stretch_horizontally: boolean + stretch_vertically: boolean + bg: Color + fg: Color + shape: Gears_Shape_Function + border_width: number + border_color: Color + enum Border_strategy + "none" + "inner" + end + border_strategy: Border_strategy + children: table + all_children: table + forced_height: number | nil + forced_width: number | nil + opacity: number + visible: boolean + buttons: table + emit_signal: function(self: Background, name: string) + connect_signal: function(self: Background, name: string, func: function) + weak_connect_signal: function(self: Background, name: string, func: function) + set_shape: function(self: Background, shape: Gears_Shape_Function) + add_button: function(self: Background, button: Button) + emit_signal_recursive: function(self: Background, signal_name: string) + index: function(self: Background, widget: Widget, recursive: boolean): number, Widget, table + disconnect_signal: function(self: Background, name: string, func: function) +end + +return Background diff --git a/types/naughty/widget/icon.d.tl b/types/naughty/widget/icon.d.tl new file mode 100644 index 0000000..8416445 --- /dev/null +++ b/types/naughty/widget/icon.d.tl @@ -0,0 +1,117 @@ +-- This file was auto-generated. +local type Button = require("awful.button") +local type Notification = require("naughty.notification") +local type Widget = require("wibox.widget") + +local record Icon + enum Signal + "property::notification" + "property::resize_strategy" + "property::image" + "property::source_width" + "property::source_height" + "property::clip_shape" + "property::resize" + "property::upscale" + "property::downscale" + "property::stylesheet" + "property::dpi" + "property::auto_dpi" + "property::horizontal_fit_policy" + "property::vertical_fit_policy" + "property::valign" + "property::halign" + "property::max_scaling_factor" + "property::scaling_quality" + "property::children" + "property::all_children" + "property::forced_height" + "property::forced_width" + "property::opacity" + "property::visible" + "property::buttons" + "widget::layout_changed" + "widget::redraw_needed" + "button::press" + "button::release" + "mouse::enter" + "mouse::leave" + end + record Icon_Args + notification: Notification + end + metamethod __call: function(self: Icon, args: Icon_Args): Icon + notification: Notification + enum Resize_strategy + "scale" + "center" + "resize" + end + resize_strategy: Resize_strategy + image: Image | nil + source_width: number + source_height: number + clip_shape: Gears_Shape_Function + resize: boolean + upscale: boolean + downscale: boolean + stylesheet: string + dpi: number | table + auto_dpi: boolean + enum Horizontal_fit_policy + "auto" + "none" + "fit" + "repeat" + "reflect" + "pad" + end + horizontal_fit_policy: Horizontal_fit_policy + enum Vertical_fit_policy + "auto" + "none" + "fit" + "fit" + "repeat" + "reflect" + "pad" + end + vertical_fit_policy: Vertical_fit_policy + enum Valign + "top" + "center" + "bottom" + end + valign: Valign + enum Halign + "left" + "center" + "right" + end + halign: Halign + max_scaling_factor: number + enum Scaling_quality + "fast" + "good" + "best" + "nearest" + "bilinear" + end + scaling_quality: Scaling_quality + children: table + all_children: table + forced_height: number | nil + forced_width: number | nil + opacity: number + visible: boolean + buttons: table + emit_signal: function(self: Icon, name: string) + connect_signal: function(self: Icon, name: string, func: function) + weak_connect_signal: function(self: Icon, name: string, func: function) + add_button: function(self: Icon, button: Button) + emit_signal_recursive: function(self: Icon, signal_name: string) + index: function(self: Icon, widget: Widget, recursive: boolean): number, Widget, table + disconnect_signal: function(self: Icon, name: string, func: function) +end + +return Icon diff --git a/types/naughty/widget/message.d.tl b/types/naughty/widget/message.d.tl new file mode 100644 index 0000000..d28a8e0 --- /dev/null +++ b/types/naughty/widget/message.d.tl @@ -0,0 +1,91 @@ +-- This file was auto-generated. +local type Button = require("awful.button") +local type Notification = require("naughty.notification") +local type Screen = require("awful.screen") +local type Widget = require("wibox.widget") + +local record Message + enum Signal + "property::notification" + "property::markup" + "property::text" + "property::ellipsize" + "property::wrap" + "property::valign" + "property::halign" + "property::font" + "property::line_spacing_factor" + "property::justify" + "property::indent" + "property::children" + "property::all_children" + "property::forced_height" + "property::forced_width" + "property::opacity" + "property::visible" + "property::buttons" + "widget::layout_changed" + "widget::redraw_needed" + "button::press" + "button::release" + "mouse::enter" + "mouse::leave" + end + record Message_Args + notification: Notification + end + metamethod __call: function(self: Message, args: Message_Args): Message + notification: Notification + markup: string + text: string + enum Ellipsize + "start" + "middle" + "end" + "none" + end + ellipsize: Ellipsize + enum Wrap + "word" + "char" + "word_char" + end + wrap: Wrap + enum Valign + "top" + "center" + "bottom" + end + valign: Valign + enum Halign + "left" + "center" + "right" + end + halign: Halign + font: string + line_spacing_factor: number | nil + justify: boolean + indent: number + children: table + all_children: table + forced_height: number | nil + forced_width: number | nil + opacity: number + visible: boolean + buttons: table + emit_signal: function(self: Message, name: string) + connect_signal: function(self: Message, name: string, func: function) + weak_connect_signal: function(self: Message, name: string, func: function) + get_preferred_size: function(self: Message, s: integer | Screen): number, number + get_height_for_width: function(self: Message, width: number, s: integer | Screen): number + get_preferred_size_at_dpi: function(self: Message, dpi: number): number, number + get_height_for_width_at_dpi: function(self: Message, width: number, dpi: number): number + set_markup_silently: function(self: Message, text: string): boolean + add_button: function(self: Message, button: Button) + emit_signal_recursive: function(self: Message, signal_name: string) + index: function(self: Message, widget: Widget, recursive: boolean): number, Widget, table + disconnect_signal: function(self: Message, name: string, func: function) +end + +return Message diff --git a/types/naughty/widget/title.d.tl b/types/naughty/widget/title.d.tl new file mode 100644 index 0000000..6d3e400 --- /dev/null +++ b/types/naughty/widget/title.d.tl @@ -0,0 +1,91 @@ +-- This file was auto-generated. +local type Button = require("awful.button") +local type Notification = require("naughty.notification") +local type Screen = require("awful.screen") +local type Widget = require("wibox.widget") + +local record Title + enum Signal + "property::notification" + "property::markup" + "property::text" + "property::ellipsize" + "property::wrap" + "property::valign" + "property::halign" + "property::font" + "property::line_spacing_factor" + "property::justify" + "property::indent" + "property::children" + "property::all_children" + "property::forced_height" + "property::forced_width" + "property::opacity" + "property::visible" + "property::buttons" + "widget::layout_changed" + "widget::redraw_needed" + "button::press" + "button::release" + "mouse::enter" + "mouse::leave" + end + record Title_Args + notification: Notification + end + metamethod __call: function(self: Title, args: Title_Args): Title + notification: Notification + markup: string + text: string + enum Ellipsize + "start" + "middle" + "end" + "none" + end + ellipsize: Ellipsize + enum Wrap + "word" + "char" + "word_char" + end + wrap: Wrap + enum Valign + "top" + "center" + "bottom" + end + valign: Valign + enum Halign + "left" + "center" + "right" + end + halign: Halign + font: string + line_spacing_factor: number | nil + justify: boolean + indent: number + children: table + all_children: table + forced_height: number | nil + forced_width: number | nil + opacity: number + visible: boolean + buttons: table + emit_signal: function(self: Title, name: string) + connect_signal: function(self: Title, name: string, func: function) + weak_connect_signal: function(self: Title, name: string, func: function) + get_preferred_size: function(self: Title, s: integer | Screen): number, number + get_height_for_width: function(self: Title, width: number, s: integer | Screen): number + get_preferred_size_at_dpi: function(self: Title, dpi: number): number, number + get_height_for_width_at_dpi: function(self: Title, width: number, dpi: number): number + set_markup_silently: function(self: Title, text: string): boolean + add_button: function(self: Title, button: Button) + emit_signal_recursive: function(self: Title, signal_name: string) + index: function(self: Title, widget: Widget, recursive: boolean): number, Widget, table + disconnect_signal: function(self: Title, name: string, func: function) +end + +return Title diff --git a/types/root.d.tl b/types/root.d.tl new file mode 100644 index 0000000..e2aa297 --- /dev/null +++ b/types/root.d.tl @@ -0,0 +1,20 @@ +-- This file was auto-generated. + +local record Root + enum Signal + "property::keys" + "property::buttons" + "property::content" + end + fake_input: function() + cursor: function(cursor_name: string) + drawins: function(): table + size: function(): integer, integer + size_mm: function(): integer, integer + tags: function(): table + keys: table + buttons: table + content: Cairo_Surface +end + +return Root diff --git a/types/ruled.d.tl b/types/ruled.d.tl new file mode 100644 index 0000000..4476bad --- /dev/null +++ b/types/ruled.d.tl @@ -0,0 +1,10 @@ +-- This file was auto-generated. +local type Client = require("ruled.client") +local type Notifications = require("ruled.notifications") + +local record Ruled + client: Client + notifications: Notifications +end + +return Ruled diff --git a/types/ruled/client.d.tl b/types/ruled/client.d.tl new file mode 100644 index 0000000..d212ec8 --- /dev/null +++ b/types/ruled/client.d.tl @@ -0,0 +1,17 @@ +-- This file was auto-generated. + +local record Client + enum Signal + end + match: function(c: Client, rule: table): boolean + match_any: function(c: Client, rule: table): boolean + matches: function(c: Client, entry: table): boolean + matching_rules: function(c: Client, rules: table): table + matches_list: function(c: Client, rules: table): boolean + remove_rule_source: function(name: string): boolean + apply: function(c: Client) + add_rule_source: function(name: string, callback: table, depends_on: table, precede: table): boolean + execute: function(c: Client, props: table, callbacks: table) +end + +return Client diff --git a/types/ruled/notifications.d.tl b/types/ruled/notifications.d.tl new file mode 100644 index 0000000..e6cf0fc --- /dev/null +++ b/types/ruled/notifications.d.tl @@ -0,0 +1,15 @@ +-- This file was auto-generated. +local type Notification = require("naughty.notification") + +local record Notifications + enum Signal + end + remove_rule_source: function(name: string): boolean + apply: function(n: Notification) + append_rule: function(rule: table) + append_rules: function(rule: table) + remove_rule: function(rule: table): boolean + add_rule_source: function(name: string, callback: table, depends_on: table, precede: table): boolean +end + +return Notifications diff --git a/types/selection.d.tl b/types/selection.d.tl new file mode 100644 index 0000000..8d6f383 --- /dev/null +++ b/types/selection.d.tl @@ -0,0 +1,9 @@ +-- This file was auto-generated. + +local record Selection + enum Signal + end + selection: function() +end + +return Selection diff --git a/types/wibox.d.tl b/types/wibox.d.tl new file mode 100644 index 0000000..ca74b1d --- /dev/null +++ b/types/wibox.d.tl @@ -0,0 +1,96 @@ +-- This file was auto-generated. +local type Container = require("wibox.container") +local type Hierarchy = require("wibox.hierarchy") +local type Layout = require("wibox.layout") +local type Screen = require("awful.screen") +local type Widget = require("wibox.widget") + +local record Wibox + container: Container + hierarchy: Hierarchy + layout: Layout + enum Signal + "property::border_width" + "property::border_color" + "property::ontop" + "property::cursor" + "property::visible" + "property::opacity" + "property::type" + "property::x" + "property::y" + "property::width" + "property::height" + "property::screen" + "property::widget" + "property::window" + "property::shape_bounding" + "property::shape_clip" + "property::shape_input" + "property::shape" + "property::input_passthrough" + "property::buttons" + "property::bg" + "property::bgimage" + "property::fg" + end + record Wibox_Args + border_width: integer + border_color: string + ontop: boolean + cursor: string + visible: boolean + opacity: number + type: string + x: integer + y: integer + width: integer + height: integer + screen: Screen + widget: Widget + shape_bounding: any + shape_clip: any + shape_input: any + bg: Color + bgimage: Cairo_Surface + fg: Color + shape: Gears_Shape_Function + input_passthrough: boolean + end + metamethod __call: function(self: Wibox, args: Wibox_Args): Wibox + connect_signal: function(name: string, func: function) + emit_signal: function(name: string) + disconnect_signal: function(name: string, func: function): boolean + border_width: integer + border_color: string + ontop: boolean + cursor: string | nil + visible: boolean + opacity: number + type: string + x: integer + y: integer + width: integer + height: integer + screen: Screen + widget: Widget | nil + window: string + shape_bounding: Cairo_Surface + shape_clip: Cairo_Surface + shape_input: Cairo_Surface + shape: Gears_Shape_Function + input_passthrough: boolean + buttons: table + bg: Color + bgimage: Image | nil + fg: Color + geometry: function(self: Wibox, geo: table | nil): table + struts: function(self: Wibox, struts: table) + setup: function(self: Wibox, args: any) + find_widgets: function(self: Wibox, x: number, y: number): table + to_widget: function(self: Wibox): Widget + save_to_svg: function(self: Wibox, path: string, context: table) + draw: function(self: Wibox, wibox: any) +end + +return Wibox diff --git a/types/wibox/container.d.tl b/types/wibox/container.d.tl new file mode 100644 index 0000000..ff737e1 --- /dev/null +++ b/types/wibox/container.d.tl @@ -0,0 +1,28 @@ +-- This file was auto-generated. +local type Arcchart = require("wibox.container.arcchart") +local type Background = require("wibox.container.background") +local type Border = require("wibox.container.border") +local type Constraint = require("wibox.container.constraint") +local type Margin = require("wibox.container.margin") +local type Mirror = require("wibox.container.mirror") +local type Place = require("wibox.container.place") +local type Radialprogressbar = require("wibox.container.radialprogressbar") +local type Rotate = require("wibox.container.rotate") +local type Scroll = require("wibox.container.scroll") +local type Tile = require("wibox.container.tile") + +local record Container + arcchart: Arcchart + background: Background + border: Border + constraint: Constraint + margin: Margin + mirror: Mirror + place: Place + radialprogressbar: Radialprogressbar + rotate: Rotate + scroll: Scroll + tile: Tile +end + +return Container diff --git a/types/wibox/container/arcchart.d.tl b/types/wibox/container/arcchart.d.tl new file mode 100644 index 0000000..fd057a8 --- /dev/null +++ b/types/wibox/container/arcchart.d.tl @@ -0,0 +1,65 @@ +-- This file was auto-generated. +local type Button = require("awful.button") +local type Widget = require("wibox.widget") + +local record Arcchart + enum Signal + "property::widget" + "property::paddings" + "property::border_color" + "property::colors" + "property::border_width" + "property::min_value" + "property::max_value" + "property::bg" + "property::value" + "property::values" + "property::rounded_edge" + "property::thickness" + "property::start_angle" + "property::children" + "property::all_children" + "property::forced_height" + "property::forced_width" + "property::opacity" + "property::visible" + "property::buttons" + "widget::layout_changed" + "widget::redraw_needed" + "button::press" + "button::release" + "mouse::enter" + "mouse::leave" + end + metamethod __call: function(self: Arcchart, widget: Widget): Arcchart + widget: Widget | nil + paddings: table | number + border_color: Color | nil + colors: table + border_width: number | nil + min_value: number + max_value: number + bg: Color | nil + value: number + values: table + rounded_edge: boolean | nil + thickness: number | nil + start_angle: number + children: table + all_children: table + forced_height: number | nil + forced_width: number | nil + opacity: number + visible: boolean + buttons: table + reset: function(self: Arcchart) + add_button: function(self: Arcchart, button: Button) + emit_signal_recursive: function(self: Arcchart, signal_name: string) + index: function(self: Arcchart, widget: Widget, recursive: boolean): number, Widget, table + connect_signal: function(self: Arcchart, name: string, func: function) + weak_connect_signal: function(self: Arcchart, name: string, func: function) + disconnect_signal: function(self: Arcchart, name: string, func: function) + emit_signal: function(self: Arcchart, name: string) +end + +return Arcchart diff --git a/types/wibox/container/background.d.tl b/types/wibox/container/background.d.tl new file mode 100644 index 0000000..e6ce7bb --- /dev/null +++ b/types/wibox/container/background.d.tl @@ -0,0 +1,61 @@ +-- This file was auto-generated. +local type Button = require("awful.button") +local type Widget = require("wibox.widget") + +local record Background + enum Signal + "property::widget" + "property::stretch_horizontally" + "property::stretch_vertically" + "property::bg" + "property::fg" + "property::shape" + "property::border_width" + "property::border_color" + "property::border_strategy" + "property::children" + "property::all_children" + "property::forced_height" + "property::forced_width" + "property::opacity" + "property::visible" + "property::buttons" + "widget::layout_changed" + "widget::redraw_needed" + "button::press" + "button::release" + "mouse::enter" + "mouse::leave" + end + metamethod __call: function(self: Background, widget: Widget, bg: Color, shape: Gears_Shape_Function): Background + widget: Widget | nil + stretch_horizontally: boolean + stretch_vertically: boolean + bg: Color + fg: Color + shape: Gears_Shape_Function + border_width: number + border_color: Color + enum Border_strategy + "none" + "inner" + end + border_strategy: Border_strategy + children: table + all_children: table + forced_height: number | nil + forced_width: number | nil + opacity: number + visible: boolean + buttons: table + set_shape: function(self: Background, shape: Gears_Shape_Function) + add_button: function(self: Background, button: Button) + emit_signal_recursive: function(self: Background, signal_name: string) + index: function(self: Background, widget: Widget, recursive: boolean): number, Widget, table + connect_signal: function(self: Background, name: string, func: function) + weak_connect_signal: function(self: Background, name: string, func: function) + disconnect_signal: function(self: Background, name: string, func: function) + emit_signal: function(self: Background, name: string) +end + +return Background diff --git a/types/wibox/container/border.d.tl b/types/wibox/container/border.d.tl new file mode 100644 index 0000000..ae210ef --- /dev/null +++ b/types/wibox/container/border.d.tl @@ -0,0 +1,97 @@ +-- This file was auto-generated. +local type Button = require("awful.button") +local type Widget = require("wibox.widget") + +local record Border + enum Signal + "property::widget" + "property::border_image" + "property::slice" + "property::border_image_stylesheet" + "property::image_scaling_quality" + "property::border_images" + "property::borders" + "property::sides_fit_policy" + "property::filling_fit_policy" + "property::corners_fit_policy" + "property::honor_borders" + "property::ontop" + "property::fill" + "property::paddings" + "property::border_widgets" + "property::border_merging" + "property::expand_corners" + "property::children" + "property::all_children" + "property::forced_height" + "property::forced_width" + "property::opacity" + "property::visible" + "property::buttons" + "widget::layout_changed" + "widget::redraw_needed" + "button::press" + "button::release" + "mouse::enter" + "mouse::leave" + end + widget: Widget | nil + border_image: string | Image | nil + slice: boolean + border_image_stylesheet: string + enum Image_scaling_quality + "fast" + "good" + "best" + "nearest" + "bilinear" + end + image_scaling_quality: Image_scaling_quality + border_images: table | Image | nil + borders: table | number + enum Sides_fit_policy + "fit" + "repeat" + "reflect" + "pad" + end + sides_fit_policy: Sides_fit_policy + enum Filling_fit_policy + "fit" + "repeat" + "reflect" + "pad" + end + filling_fit_policy: Filling_fit_policy + enum Corners_fit_policy + "fit" + "repeat" + "reflect" + "pad" + end + corners_fit_policy: Corners_fit_policy + honor_borders: boolean + ontop: boolean + fill: boolean + paddings: number | table + border_widgets: table | nil + border_merging: table | nil + expand_corners: boolean + children: table + all_children: table + forced_height: number | nil + forced_width: number | nil + opacity: number + visible: boolean + buttons: table + reset: function(self: Border) + add_button: function(self: Border, button: Button) + emit_signal_recursive: function(self: Border, signal_name: string) + index: function(self: Border, widget: Widget, recursive: boolean): number, Widget, table + connect_signal: function(self: Border, name: string, func: function) + weak_connect_signal: function(self: Border, name: string, func: function) + disconnect_signal: function(self: Border, name: string, func: function) + emit_signal: function(self: Border, name: string) +end + +return Border diff --git a/types/wibox/container/constraint.d.tl b/types/wibox/container/constraint.d.tl new file mode 100644 index 0000000..d5b85ed --- /dev/null +++ b/types/wibox/container/constraint.d.tl @@ -0,0 +1,52 @@ +-- This file was auto-generated. +local type Button = require("awful.button") +local type Widget = require("wibox.widget") + +local record Constraint + enum Signal + "property::widget" + "property::strategy" + "property::width" + "property::height" + "property::children" + "property::all_children" + "property::forced_height" + "property::forced_width" + "property::opacity" + "property::visible" + "property::buttons" + "widget::layout_changed" + "widget::redraw_needed" + "button::press" + "button::release" + "mouse::enter" + "mouse::leave" + end + metamethod __call: function(self: Constraint, widget: any, strategy: any, width: any, height: any): table + widget: Widget | nil + enum Strategy + "max" + "min" + "exact" + end + strategy: Strategy + width: number | nil + height: number | nil + children: table + all_children: table + forced_height: number | nil + forced_width: number | nil + opacity: number + visible: boolean + buttons: table + reset: function(self: Constraint) + add_button: function(self: Constraint, button: Button) + emit_signal_recursive: function(self: Constraint, signal_name: string) + index: function(self: Constraint, widget: Widget, recursive: boolean): number, Widget, table + connect_signal: function(self: Constraint, name: string, func: function) + weak_connect_signal: function(self: Constraint, name: string, func: function) + disconnect_signal: function(self: Constraint, name: string, func: function) + emit_signal: function(self: Constraint, name: string) +end + +return Constraint diff --git a/types/wibox/container/margin.d.tl b/types/wibox/container/margin.d.tl new file mode 100644 index 0000000..f773d54 --- /dev/null +++ b/types/wibox/container/margin.d.tl @@ -0,0 +1,55 @@ +-- This file was auto-generated. +local type Button = require("awful.button") +local type Widget = require("wibox.widget") + +local record Margin + enum Signal + "property::widget" + "property::margins" + "property::color" + "property::draw_empty" + "property::left" + "property::right" + "property::top" + "property::bottom" + "property::children" + "property::all_children" + "property::forced_height" + "property::forced_width" + "property::opacity" + "property::visible" + "property::buttons" + "widget::layout_changed" + "widget::redraw_needed" + "button::press" + "button::release" + "mouse::enter" + "mouse::leave" + end + metamethod __call: function(self: Margin, widget: Widget, left: number, right: number, top: number, bottom: number, color: any, draw_empty: boolean): table + widget: Widget | nil + margins: number | table + color: Color | nil + draw_empty: boolean + left: number + right: number + top: number + bottom: number + children: table + all_children: table + forced_height: number | nil + forced_width: number | nil + opacity: number + visible: boolean + buttons: table + reset: function(self: Margin) + add_button: function(self: Margin, button: Button) + emit_signal_recursive: function(self: Margin, signal_name: string) + index: function(self: Margin, widget: Widget, recursive: boolean): number, Widget, table + connect_signal: function(self: Margin, name: string, func: function) + weak_connect_signal: function(self: Margin, name: string, func: function) + disconnect_signal: function(self: Margin, name: string, func: function) + emit_signal: function(self: Margin, name: string) +end + +return Margin diff --git a/types/wibox/container/mirror.d.tl b/types/wibox/container/mirror.d.tl new file mode 100644 index 0000000..592f9b3 --- /dev/null +++ b/types/wibox/container/mirror.d.tl @@ -0,0 +1,43 @@ +-- This file was auto-generated. +local type Button = require("awful.button") +local type Widget = require("wibox.widget") + +local record Mirror + enum Signal + "property::widget" + "property::reflection" + "property::children" + "property::all_children" + "property::forced_height" + "property::forced_width" + "property::opacity" + "property::visible" + "property::buttons" + "widget::layout_changed" + "widget::redraw_needed" + "button::press" + "button::release" + "mouse::enter" + "mouse::leave" + end + metamethod __call: function(self: Mirror, widget: Widget, reflection: table): table + widget: Widget | nil + reflection: table + children: table + all_children: table + forced_height: number | nil + forced_width: number | nil + opacity: number + visible: boolean + buttons: table + reset: function(self: Mirror) + add_button: function(self: Mirror, button: Button) + emit_signal_recursive: function(self: Mirror, signal_name: string) + index: function(self: Mirror, widget: Widget, recursive: boolean): number, Widget, table + connect_signal: function(self: Mirror, name: string, func: function) + weak_connect_signal: function(self: Mirror, name: string, func: function) + disconnect_signal: function(self: Mirror, name: string, func: function) + emit_signal: function(self: Mirror, name: string) +end + +return Mirror diff --git a/types/wibox/container/place.d.tl b/types/wibox/container/place.d.tl new file mode 100644 index 0000000..e5bc6a9 --- /dev/null +++ b/types/wibox/container/place.d.tl @@ -0,0 +1,63 @@ +-- This file was auto-generated. +local type Button = require("awful.button") +local type Widget = require("wibox.widget") + +local record Place + enum Signal + "property::widget" + "property::valign" + "property::halign" + "property::fill_vertical" + "property::fill_horizontal" + "property::content_fill_vertical" + "property::content_fill_horizontal" + "property::children" + "property::all_children" + "property::forced_height" + "property::forced_width" + "property::opacity" + "property::visible" + "property::buttons" + "widget::layout_changed" + "widget::redraw_needed" + "button::press" + "button::release" + "mouse::enter" + "mouse::leave" + end + metamethod __call: function(self: Place, widget: Widget, halign: string, valign: string): table + widget: Widget | nil + enum Valign + "top" + "center" + "bottom" + end + valign: Valign + enum Halign + "left" + "center" + "right" + end + halign: Halign + fill_vertical: boolean + fill_horizontal: boolean + content_fill_vertical: boolean + content_fill_horizontal: boolean + children: table + all_children: table + forced_height: number | nil + forced_width: number | nil + opacity: number + visible: boolean + buttons: table + reset: function(self: Place) + add_button: function(self: Place, button: Button) + emit_signal_recursive: function(self: Place, signal_name: string) + index: function(self: Place, widget: Widget, recursive: boolean): number, Widget, table + connect_signal: function(self: Place, name: string, func: function) + weak_connect_signal: function(self: Place, name: string, func: function) + disconnect_signal: function(self: Place, name: string, func: function) + emit_signal: function(self: Place, name: string) +end + +return Place diff --git a/types/wibox/container/radialprogressbar.d.tl b/types/wibox/container/radialprogressbar.d.tl new file mode 100644 index 0000000..9680742 --- /dev/null +++ b/types/wibox/container/radialprogressbar.d.tl @@ -0,0 +1,55 @@ +-- This file was auto-generated. +local type Button = require("awful.button") +local type Widget = require("wibox.widget") + +local record Radialprogressbar + enum Signal + "property::widget" + "property::paddings" + "property::value" + "property::border_color" + "property::color" + "property::border_width" + "property::min_value" + "property::max_value" + "property::children" + "property::all_children" + "property::forced_height" + "property::forced_width" + "property::opacity" + "property::visible" + "property::buttons" + "widget::layout_changed" + "widget::redraw_needed" + "button::press" + "button::release" + "mouse::enter" + "mouse::leave" + end + metamethod __call: function(self: Radialprogressbar, widget: Widget): Radialprogressbar + widget: Widget | nil + paddings: table | number | nil + value: number + border_color: Color | nil + color: Color | nil + border_width: number | nil + min_value: number + max_value: number + children: table + all_children: table + forced_height: number | nil + forced_width: number | nil + opacity: number + visible: boolean + buttons: table + reset: function(self: Radialprogressbar) + add_button: function(self: Radialprogressbar, button: Button) + emit_signal_recursive: function(self: Radialprogressbar, signal_name: string) + index: function(self: Radialprogressbar, widget: Widget, recursive: boolean): number, Widget, table + connect_signal: function(self: Radialprogressbar, name: string, func: function) + weak_connect_signal: function(self: Radialprogressbar, name: string, func: function) + disconnect_signal: function(self: Radialprogressbar, name: string, func: function) + emit_signal: function(self: Radialprogressbar, name: string) +end + +return Radialprogressbar diff --git a/types/wibox/container/rotate.d.tl b/types/wibox/container/rotate.d.tl new file mode 100644 index 0000000..761a051 --- /dev/null +++ b/types/wibox/container/rotate.d.tl @@ -0,0 +1,49 @@ +-- This file was auto-generated. +local type Button = require("awful.button") +local type Widget = require("wibox.widget") + +local record Rotate + enum Signal + "property::widget" + "property::direction" + "property::children" + "property::all_children" + "property::forced_height" + "property::forced_width" + "property::opacity" + "property::visible" + "property::buttons" + "widget::layout_changed" + "widget::redraw_needed" + "button::press" + "button::release" + "mouse::enter" + "mouse::leave" + end + metamethod __call: function(self: Rotate, widget: Widget, dir: string): table + widget: Widget | nil + enum Direction + "north" + "east" + "south" + "north" + end + direction: Direction + children: table + all_children: table + forced_height: number | nil + forced_width: number | nil + opacity: number + visible: boolean + buttons: table + reset: function(self: Rotate) + add_button: function(self: Rotate, button: Button) + emit_signal_recursive: function(self: Rotate, signal_name: string) + index: function(self: Rotate, widget: Widget, recursive: boolean): number, Widget, table + connect_signal: function(self: Rotate, name: string, func: function) + weak_connect_signal: function(self: Rotate, name: string, func: function) + disconnect_signal: function(self: Rotate, name: string, func: function) + emit_signal: function(self: Rotate, name: string) +end + +return Rotate diff --git a/types/wibox/container/scroll.d.tl b/types/wibox/container/scroll.d.tl new file mode 100644 index 0000000..017cb67 --- /dev/null +++ b/types/wibox/container/scroll.d.tl @@ -0,0 +1,52 @@ +-- This file was auto-generated. +local type Button = require("awful.button") +local type Widget = require("wibox.widget") + +local record Scroll + enum Signal + "property::widget" + "property::children" + "property::all_children" + "property::forced_height" + "property::forced_width" + "property::opacity" + "property::visible" + "property::buttons" + "widget::layout_changed" + "widget::redraw_needed" + "button::press" + "button::release" + "mouse::enter" + "mouse::leave" + end + horizontal: function(widget: any, fps: any, speed: any, extra_space: any, expand: boolean, max_size: any, step_function: any, space_for_scrolling: any) + vertical: function(widget: any, fps: any, speed: any, extra_space: any, expand: boolean, max_size: any, step_function: any, space_for_scrolling: any) + widget: Widget | nil + children: table + all_children: table + forced_height: number | nil + forced_width: number | nil + opacity: number + visible: boolean + buttons: table + pause: function(self: Scroll) + continue: function(self: Scroll) + reset_scrolling: function(self: Scroll) + set_direction: function(self: Scroll, dir: any) + set_expand: function(self: Scroll, expand: boolean) + set_fps: function(self: Scroll, fps: number) + set_extra_space: function(self: Scroll, extra_space: number) + set_speed: function(self: Scroll, speed: number) + set_max_size: function(self: Scroll, max_size: number) + set_step_function: function(self: Scroll, step_function: function) + set_space_for_scrolling: function(self: Scroll, space_for_scrolling: number) + add_button: function(self: Scroll, button: Button) + emit_signal_recursive: function(self: Scroll, signal_name: string) + index: function(self: Scroll, widget: Widget, recursive: boolean): number, Widget, table + connect_signal: function(self: Scroll, name: string, func: function) + weak_connect_signal: function(self: Scroll, name: string, func: function) + disconnect_signal: function(self: Scroll, name: string, func: function) + emit_signal: function(self: Scroll, name: string) +end + +return Scroll diff --git a/types/wibox/container/tile.d.tl b/types/wibox/container/tile.d.tl new file mode 100644 index 0000000..9f50121 --- /dev/null +++ b/types/wibox/container/tile.d.tl @@ -0,0 +1,87 @@ +-- This file was auto-generated. +local type Button = require("awful.button") +local type Widget = require("wibox.widget") + +local record Tile + enum Signal + "property::horizontal_spacing" + "property::vertical_spacing" + "property::horizontal_crop" + "property::vertical_crop" + "property::tiled" + "property::widget" + "property::valign" + "property::halign" + "property::fill_vertical" + "property::fill_horizontal" + "property::content_fill_vertical" + "property::content_fill_horizontal" + "property::children" + "property::all_children" + "property::forced_height" + "property::forced_width" + "property::opacity" + "property::visible" + "property::buttons" + "widget::layout_changed" + "widget::redraw_needed" + "button::press" + "button::release" + "mouse::enter" + "mouse::leave" + end + record Tile_Args + widget: Widget + halign: string + valign: string + horizontal_spacing: number + vertical_spacing: number + horizontal_crop: boolean + vertical_crop: boolean + tiled: boolean + fill_vertical: boolean + fill_horizontal: boolean + content_fill_vertical: boolean + content_fill_horizontal: boolean + end + metamethod __call: function(self: Tile, args: Tile_Args): Tile + horizontal_spacing: number + vertical_spacing: number + horizontal_crop: boolean + vertical_crop: boolean + tiled: boolean + widget: Widget | nil + enum Valign + "top" + "center" + "bottom" + end + valign: Valign + enum Halign + "left" + "center" + "right" + end + halign: Halign + fill_vertical: boolean + fill_horizontal: boolean + content_fill_vertical: boolean + content_fill_horizontal: boolean + children: table + all_children: table + forced_height: number | nil + forced_width: number | nil + opacity: number + visible: boolean + buttons: table + reset: function(self: Tile) + add_button: function(self: Tile, button: Button) + emit_signal_recursive: function(self: Tile, signal_name: string) + index: function(self: Tile, widget: Widget, recursive: boolean): number, Widget, table + connect_signal: function(self: Tile, name: string, func: function) + weak_connect_signal: function(self: Tile, name: string, func: function) + disconnect_signal: function(self: Tile, name: string, func: function) + emit_signal: function(self: Tile, name: string) +end + +return Tile diff --git a/types/wibox/hierarchy.d.tl b/types/wibox/hierarchy.d.tl new file mode 100644 index 0000000..0e445c4 --- /dev/null +++ b/types/wibox/hierarchy.d.tl @@ -0,0 +1,22 @@ +-- This file was auto-generated. +local type Widget = require("wibox.widget") + +local record Hierarchy + enum Signal + end + new: function(context: any, widget: any, width: any, height: any, redraw_callback: any, layout_callback: any, callback_arg: any) + count_widget: function(widget: any) + update: function(self: Hierarchy, context: any, widget: any, width: any, height: any, region: any) + get_widget: function(self: Hierarchy): Widget + get_matrix_to_parent: function(self: Hierarchy) + get_matrix_to_device: function(self: Hierarchy) + get_matrix_from_parent: function(self: Hierarchy) + get_matrix_from_device: function(self: Hierarchy) + get_draw_extents: function(self: Hierarchy) + get_size: function(self: Hierarchy) + get_children: function(self: Hierarchy) + get_count: function(self: Hierarchy, widget: any) + draw: function(self: Hierarchy, context: any, cr: any) +end + +return Hierarchy diff --git a/types/wibox/layout.d.tl b/types/wibox/layout.d.tl new file mode 100644 index 0000000..bcda18c --- /dev/null +++ b/types/wibox/layout.d.tl @@ -0,0 +1,20 @@ +-- This file was auto-generated. +local type Align = require("wibox.layout.align") +local type Fixed = require("wibox.layout.fixed") +local type Flex = require("wibox.layout.flex") +local type Grid = require("wibox.layout.grid") +local type Manual = require("wibox.layout.manual") +local type Ratio = require("wibox.layout.ratio") +local type Stack = require("wibox.layout.stack") + +local record Layout + align: Align + fixed: Fixed + flex: Flex + grid: Grid + manual: Manual + ratio: Ratio + stack: Stack +end + +return Layout diff --git a/types/wibox/layout/align.d.tl b/types/wibox/layout/align.d.tl new file mode 100644 index 0000000..e3e6a61 --- /dev/null +++ b/types/wibox/layout/align.d.tl @@ -0,0 +1,57 @@ +-- This file was auto-generated. +local type Button = require("awful.button") +local type Widget = require("wibox.widget") + +local record Align + enum Signal + "property::first" + "property::second" + "property::third" + "property::expand" + "property::children" + "property::all_children" + "property::forced_height" + "property::forced_width" + "property::opacity" + "property::visible" + "property::buttons" + "widget::layout_changed" + "widget::redraw_needed" + "button::press" + "button::release" + "mouse::enter" + "mouse::leave" + end + horizontal: function(left: Widget, middle: Widget, right: Widget) + vertical: function(top: Widget, middle: Widget, bottom: Widget) + first: Widget | nil + second: Widget | nil + third: Widget | nil + enum Expand + "inside" + "outside" + "none" + end + expand: Expand + children: table + all_children: table + forced_height: number | nil + forced_width: number | nil + opacity: number + visible: boolean + buttons: table + set: function(self: Align, index: number, widget2: Widget): boolean + replace_widget: function(self: Align, widget: Widget, widget2: Widget, recursive: boolean): boolean + swap: function(self: Align, index1: number, index2: number): boolean + swap_widgets: function(self: Align, widget1: Widget, widget2: Widget, recursive: boolean): boolean + reset: function(self: Align) + add_button: function(self: Align, button: Button) + emit_signal_recursive: function(self: Align, signal_name: string) + index: function(self: Align, widget: Widget, recursive: boolean): number, Widget, table + connect_signal: function(self: Align, name: string, func: function) + weak_connect_signal: function(self: Align, name: string, func: function) + disconnect_signal: function(self: Align, name: string, func: function) + emit_signal: function(self: Align, name: string) +end + +return Align diff --git a/types/wibox/layout/fixed.d.tl b/types/wibox/layout/fixed.d.tl new file mode 100644 index 0000000..b38308a --- /dev/null +++ b/types/wibox/layout/fixed.d.tl @@ -0,0 +1,54 @@ +-- This file was auto-generated. +local type Button = require("awful.button") +local type Widget = require("wibox.widget") + +local record Fixed + enum Signal + "property::spacing_widget" + "property::fill_space" + "property::spacing" + "property::children" + "property::all_children" + "property::forced_height" + "property::forced_width" + "property::opacity" + "property::visible" + "property::buttons" + "widget::layout_changed" + "widget::redraw_needed" + "button::press" + "button::release" + "mouse::enter" + "mouse::leave" + end + horizontal: function() + vertical: function() + spacing_widget: Widget | nil + fill_space: boolean + spacing: number + children: table + all_children: table + forced_height: number | nil + forced_width: number | nil + opacity: number + visible: boolean + buttons: table + add: function(self: Fixed) + remove: function(self: Fixed, index: number): boolean + remove_widgets: function(self: Fixed): boolean + replace_widget: function(self: Fixed, widget: Widget, widget2: Widget, recursive: boolean): boolean + insert: function(self: Fixed, index: number, widget: Widget): boolean + set: function(self: Fixed, index: number, widget2: Widget): boolean + swap: function(self: Fixed, index1: number, index2: number): boolean + swap_widgets: function(self: Fixed, widget1: Widget, widget2: Widget, recursive: boolean): boolean + reset: function(self: Fixed) + add_button: function(self: Fixed, button: Button) + emit_signal_recursive: function(self: Fixed, signal_name: string) + index: function(self: Fixed, widget: Widget, recursive: boolean): number, Widget, table + connect_signal: function(self: Fixed, name: string, func: function) + weak_connect_signal: function(self: Fixed, name: string, func: function) + disconnect_signal: function(self: Fixed, name: string, func: function) + emit_signal: function(self: Fixed, name: string) +end + +return Fixed diff --git a/types/wibox/layout/flex.d.tl b/types/wibox/layout/flex.d.tl new file mode 100644 index 0000000..d7fe614 --- /dev/null +++ b/types/wibox/layout/flex.d.tl @@ -0,0 +1,54 @@ +-- This file was auto-generated. +local type Button = require("awful.button") +local type Widget = require("wibox.widget") + +local record Flex + enum Signal + "property::spacing_widget" + "property::spacing" + "property::max_widget_size" + "property::children" + "property::all_children" + "property::forced_height" + "property::forced_width" + "property::opacity" + "property::visible" + "property::buttons" + "widget::layout_changed" + "widget::redraw_needed" + "button::press" + "button::release" + "mouse::enter" + "mouse::leave" + end + horizontal: function() + vertical: function() + spacing_widget: Widget | nil + spacing: number + max_widget_size: number | nil + children: table + all_children: table + forced_height: number | nil + forced_width: number | nil + opacity: number + visible: boolean + buttons: table + add: function(self: Flex) + remove: function(self: Flex, index: number): boolean + remove_widgets: function(self: Flex): boolean + insert: function(self: Flex, index: number, widget: Widget): boolean + set: function(self: Flex, index: number, widget2: Widget): boolean + replace_widget: function(self: Flex, widget: Widget, widget2: Widget, recursive: boolean): boolean + swap: function(self: Flex, index1: number, index2: number): boolean + swap_widgets: function(self: Flex, widget1: Widget, widget2: Widget, recursive: boolean): boolean + reset: function(self: Flex) + add_button: function(self: Flex, button: Button) + emit_signal_recursive: function(self: Flex, signal_name: string) + index: function(self: Flex, widget: Widget, recursive: boolean): number, Widget, table + connect_signal: function(self: Flex, name: string, func: function) + weak_connect_signal: function(self: Flex, name: string, func: function) + disconnect_signal: function(self: Flex, name: string, func: function) + emit_signal: function(self: Flex, name: string) +end + +return Flex diff --git a/types/wibox/layout/grid.d.tl b/types/wibox/layout/grid.d.tl new file mode 100644 index 0000000..734c3f9 --- /dev/null +++ b/types/wibox/layout/grid.d.tl @@ -0,0 +1,94 @@ +-- This file was auto-generated. +local type Button = require("awful.button") +local type Widget = require("wibox.widget") + +local record Grid + enum Signal + "property::orientation" + "property::superpose" + "property::forced_num_rows" + "property::forced_num_cols" + "property::min_cols_size" + "property::min_rows_size" + "property::horizontal_spacing" + "property::vertical_spacing" + "property::spacing" + "property::horizontal_expand" + "property::vertical_expand" + "property::expand" + "property::horizontal_homogeneous" + "property::vertical_homogeneous" + "property::homogeneous" + "property::children" + "property::all_children" + "property::forced_height" + "property::forced_width" + "property::opacity" + "property::visible" + "property::buttons" + "widget::reset" + "widget::layout_changed" + "widget::redraw_needed" + "button::press" + "button::release" + "mouse::enter" + "mouse::leave" + end + metamethod __call: function(self: Grid, orientation: string): Grid + horizontal: function(forced_num_rows: number | nil) + vertical: function(forced_num_cols: number | nil) + enum Orientation + "horizontal" + "vertical" + end + orientation: Orientation + superpose: boolean + forced_num_rows: number | nil + forced_num_cols: number | nil + min_cols_size: number + min_rows_size: number + horizontal_spacing: number + vertical_spacing: number + spacing: number + horizontal_expand: boolean + vertical_expand: boolean + expand: boolean + horizontal_homogeneous: boolean + vertical_homogeneous: boolean + homogeneous: boolean + children: table + all_children: table + forced_height: number | nil + forced_width: number | nil + opacity: number + visible: boolean + buttons: table + get_dimension: function(self: Grid): number,number + get_next_empty: function(self: Grid, hint_row: number, hint_column: number) + add: function(self: Grid) + add_widget_at: function(self: Grid, child: Widget, row: number, col: number, row_span: number, col_span: number): boolean + remove: function(self: Grid): boolean + remove_widgets_at: function(self: Grid, row: number, col: number, row_span: number, col_span: number): boolean + get_widget_position: function(self: Grid, widget: Widget): table + get_widgets_at: function(self: Grid, row: number, col: number, row_span: number, col_span: number): table + replace_widget: function(self: Grid, old: Widget, new: Widget): boolean + insert_column: function(self: Grid, index: number | nil): number + extend_column: function(self: Grid, index: number | nil): number + remove_column: function(self: Grid, index: number | nil): number + insert_row: function(self: Grid, index: number | nil): number + extend_row: function(self: Grid, index: number | nil): number + remove_row: function(self: Grid, index: number | nil): number + reset: function(self: Grid) + set: function(self: Grid, index: number, widget2: Widget): boolean + swap: function(self: Grid, index1: number, index2: number): boolean + swap_widgets: function(self: Grid, widget1: Widget, widget2: Widget, recursive: boolean): boolean + add_button: function(self: Grid, button: Button) + emit_signal_recursive: function(self: Grid, signal_name: string) + index: function(self: Grid, widget: Widget, recursive: boolean): number, Widget, table + connect_signal: function(self: Grid, name: string, func: function) + weak_connect_signal: function(self: Grid, name: string, func: function) + disconnect_signal: function(self: Grid, name: string, func: function) + emit_signal: function(self: Grid, name: string) +end + +return Grid diff --git a/types/wibox/layout/manual.d.tl b/types/wibox/layout/manual.d.tl new file mode 100644 index 0000000..8145c54 --- /dev/null +++ b/types/wibox/layout/manual.d.tl @@ -0,0 +1,50 @@ +-- This file was auto-generated. +local type Button = require("awful.button") +local type Widget = require("wibox.widget") + +local record Manual + enum Signal + "property::children" + "property::all_children" + "property::forced_height" + "property::forced_width" + "property::opacity" + "property::visible" + "property::buttons" + "widget::layout_changed" + "widget::redraw_needed" + "button::press" + "button::release" + "mouse::enter" + "mouse::leave" + end + metamethod __call: function(self: Manual): Manual + add: function(self: Manual) + remove: function(self: Manual, index: number): boolean + insert: function(self: Manual, index: number, widget: Widget): boolean + remove_widgets: function(self: Manual): boolean + add_at: function(self: Manual, widget: Widget, point: table | function) + move: function(self: Manual, index: number, point: table | function) + move_widget: function(self: Manual, widget: Widget, point: table | function) + set: function(self: Manual, index: number, widget2: Widget): boolean + replace_widget: function(self: Manual, widget: Widget, widget2: Widget, recursive: boolean): boolean + swap: function(self: Manual, index1: number, index2: number): boolean + swap_widgets: function(self: Manual, widget1: Widget, widget2: Widget, recursive: boolean): boolean + reset: function(self: Manual) + add_button: function(self: Manual, button: Button) + emit_signal_recursive: function(self: Manual, signal_name: string) + index: function(self: Manual, widget: Widget, recursive: boolean): number, Widget, table + connect_signal: function(self: Manual, name: string, func: function) + weak_connect_signal: function(self: Manual, name: string, func: function) + disconnect_signal: function(self: Manual, name: string, func: function) + emit_signal: function(self: Manual, name: string) + children: table + all_children: table + forced_height: number | nil + forced_width: number | nil + opacity: number + visible: boolean + buttons: table +end + +return Manual diff --git a/types/wibox/layout/ratio.d.tl b/types/wibox/layout/ratio.d.tl new file mode 100644 index 0000000..2f7bfe4 --- /dev/null +++ b/types/wibox/layout/ratio.d.tl @@ -0,0 +1,72 @@ +-- This file was auto-generated. +local type Button = require("awful.button") +local type Widget = require("wibox.widget") + +local record Ratio + enum Signal + "property::spacing_widget" + "property::spacing" + "property::inner_fill_strategy" + "property::max_widget_size" + "property::children" + "property::all_children" + "property::forced_height" + "property::forced_width" + "property::opacity" + "property::visible" + "property::buttons" + "widget::layout_changed" + "widget::redraw_needed" + "button::press" + "button::release" + "mouse::enter" + "mouse::leave" + end + horizontal: function() + vertical: function() + spacing_widget: Widget | nil + spacing: number + enum Inner_fill_strategy + "default" + "justify" + "center" + "inner_spacing" + "spacing" + "left" + "right" + end + inner_fill_strategy: Inner_fill_strategy + max_widget_size: number | nil + children: table + all_children: table + forced_height: number | nil + forced_width: number | nil + opacity: number + visible: boolean + buttons: table + inc_ratio: function(self: Ratio, index: number, increment: number) + inc_widget_ratio: function(self: Ratio, widget: Widget, increment: number) + set_ratio: function(self: Ratio, index: number, percent: number) + get_ratio: function(self: Ratio, index: number): number + set_widget_ratio: function(self: Ratio, widget: Widget, percent: number) + adjust_ratio: function(self: Ratio, index: number, before: number, itself: number, after: number) + adjust_widget_ratio: function(self: Ratio, widget: Widget, before: number, itself: number, after: number) + add: function(self: Ratio) + remove: function(self: Ratio, index: number): boolean + insert: function(self: Ratio, index: number, widget: Widget): boolean + set: function(self: Ratio, index: number, widget2: Widget): boolean + replace_widget: function(self: Ratio, widget: Widget, widget2: Widget, recursive: boolean): boolean + swap: function(self: Ratio, index1: number, index2: number): boolean + swap_widgets: function(self: Ratio, widget1: Widget, widget2: Widget, recursive: boolean): boolean + reset: function(self: Ratio) + remove_widgets: function(self: Ratio): boolean + add_button: function(self: Ratio, button: Button) + emit_signal_recursive: function(self: Ratio, signal_name: string) + index: function(self: Ratio, widget: Widget, recursive: boolean): number, Widget, table + connect_signal: function(self: Ratio, name: string, func: function) + weak_connect_signal: function(self: Ratio, name: string, func: function) + disconnect_signal: function(self: Ratio, name: string, func: function) + emit_signal: function(self: Ratio, name: string) +end + +return Ratio diff --git a/types/wibox/layout/stack.d.tl b/types/wibox/layout/stack.d.tl new file mode 100644 index 0000000..bc0ae11 --- /dev/null +++ b/types/wibox/layout/stack.d.tl @@ -0,0 +1,61 @@ +-- This file was auto-generated. +local type Button = require("awful.button") +local type Widget = require("wibox.widget") + +local record Stack + enum Signal + "property::spacing" + "property::top_only" + "property::horizontal_offset" + "property::vertical_offset" + "property::spacing_widget" + "property::fill_space" + "property::children" + "property::all_children" + "property::forced_height" + "property::forced_width" + "property::opacity" + "property::visible" + "property::buttons" + "widget::layout_changed" + "widget::redraw_needed" + "button::press" + "button::release" + "mouse::enter" + "mouse::leave" + end + metamethod __call: function(self: Stack): Widget + spacing: number + top_only: boolean + horizontal_offset: number + vertical_offset: number + spacing_widget: Widget | nil + fill_space: boolean + children: table + all_children: table + forced_height: number | nil + forced_width: number | nil + opacity: number + visible: boolean + buttons: table + add: function(self: Stack) + remove: function(self: Stack, index: number): boolean + insert: function(self: Stack, index: number, widget: Widget): boolean + remove_widgets: function(self: Stack, widget: Widget): boolean + raise: function(self: Stack, index: number) + raise_widget: function(self: Stack, widget: Widget, recursive: boolean) + set: function(self: Stack, index: number, widget2: Widget): boolean + replace_widget: function(self: Stack, widget: Widget, widget2: Widget, recursive: boolean): boolean + swap: function(self: Stack, index1: number, index2: number): boolean + swap_widgets: function(self: Stack, widget1: Widget, widget2: Widget, recursive: boolean): boolean + reset: function(self: Stack) + add_button: function(self: Stack, button: Button) + emit_signal_recursive: function(self: Stack, signal_name: string) + index: function(self: Stack, widget: Widget, recursive: boolean): number, Widget, table + connect_signal: function(self: Stack, name: string, func: function) + weak_connect_signal: function(self: Stack, name: string, func: function) + disconnect_signal: function(self: Stack, name: string, func: function) + emit_signal: function(self: Stack, name: string) +end + +return Stack diff --git a/types/wibox/widget.d.tl b/types/wibox/widget.d.tl new file mode 100644 index 0000000..792e779 --- /dev/null +++ b/types/wibox/widget.d.tl @@ -0,0 +1,36 @@ +-- This file was auto-generated. +local type Base = require("wibox.widget.base") +local type Calendar = require("wibox.widget.calendar") +local type Checkbox = require("wibox.widget.checkbox") +local type Graph = require("wibox.widget.graph") +local type Imagebox = require("wibox.widget.imagebox") +local type Piechart = require("wibox.widget.piechart") +local type Progressbar = require("wibox.widget.progressbar") +local type Screen = require("awful.screen") +local type Separator = require("wibox.widget.separator") +local type Slider = require("wibox.widget.slider") +local type Systray = require("wibox.widget.systray") +local type Textbox = require("wibox.widget.textbox") +local type Textclock = require("wibox.widget.textclock") + +local record Widget + base: Base + calendar: Calendar + checkbox: Checkbox + graph: Graph + imagebox: Imagebox + piechart: Piechart + progressbar: Progressbar + separator: Separator + slider: Slider + systray: Systray + textbox: Textbox + textclock: Textclock + enum Signal + end + draw_to_cairo_context: function(wdg: Widget, cr: Cairo_Context, width: number, height: number, context: table) + draw_to_svg_file: function(wdg: Widget, path: string, width: number, height: number, context: table) + draw_to_image_surface: function(wdg: Widget, width: number, height: number, format: any, context: table) +end + +return Widget diff --git a/types/wibox/widget/base.d.tl b/types/wibox/widget/base.d.tl new file mode 100644 index 0000000..c291b55 --- /dev/null +++ b/types/wibox/widget/base.d.tl @@ -0,0 +1,52 @@ +-- This file was auto-generated. +local type Button = require("awful.button") +local type Widget = require("wibox.widget") + +local record Base + enum Signal + "property::children" + "property::all_children" + "property::forced_height" + "property::forced_width" + "property::opacity" + "property::visible" + "property::buttons" + "widget::layout_changed" + "widget::redraw_needed" + "button::press" + "button::release" + "mouse::enter" + "mouse::leave" + end + make_widget_declarative: function(args: table) + make_widget_from_value: function(wdg: any): Widget | nil + record Make_widget_Args + enable_properties: boolean + class: table + end + make_widget: function(proxy: Widget, widget_name: string, args: Make_widget_Args) + empty_widget: function() + rect_to_device_geometry: function(cr: any, x: number, y: number, width: number, height: number): number, number, number, number + fit_widget: function(parent: Widget, context: table, widget: Widget, width: number, height: number): number, number + layout_widget: function(parent: Widget, context: table, widget: Widget, width: number, height: number): table + handle_button: function() + place_widget_via_matrix: function(widget: Widget, mat: any, width: number, height: number): table + place_widget_at: function(widget: Widget, x: number, y: number, width: number, height: number): table + check_widget: function() + children: table + all_children: table + forced_height: number | nil + forced_width: number | nil + opacity: number + visible: boolean + buttons: table + add_button: function(self: Base, button: Button) + emit_signal_recursive: function(self: Base, signal_name: string) + index: function(self: Base, widget: Widget, recursive: boolean): number, Widget, table + connect_signal: function(self: Base, name: string, func: function) + weak_connect_signal: function(self: Base, name: string, func: function) + disconnect_signal: function(self: Base, name: string, func: function) + emit_signal: function(self: Base, name: string) +end + +return Base diff --git a/types/wibox/widget/calendar.d.tl b/types/wibox/widget/calendar.d.tl new file mode 100644 index 0000000..a72e8f2 --- /dev/null +++ b/types/wibox/widget/calendar.d.tl @@ -0,0 +1,27 @@ +-- This file was auto-generated. +local type Widget = require("wibox.widget") + +local record Calendar + enum Signal + "property::date" + "property::font" + "property::spacing" + "property::week_numbers" + "property::start_sunday" + "property::long_weekdays" + "property::fn_embed" + "property::flex_height" + end + month: function(date: table, font: string): Widget + year: function(date: table, font: string): Widget + date: table | nil + font: string + spacing: number + week_numbers: boolean + start_sunday: boolean + long_weekdays: boolean + fn_embed: function | nil + flex_height: boolean +end + +return Calendar diff --git a/types/wibox/widget/checkbox.d.tl b/types/wibox/widget/checkbox.d.tl new file mode 100644 index 0000000..49abcfa --- /dev/null +++ b/types/wibox/widget/checkbox.d.tl @@ -0,0 +1,63 @@ +-- This file was auto-generated. +local type Button = require("awful.button") +local type Widget = require("wibox.widget") + +local record Checkbox + enum Signal + "property::border_width" + "property::bg" + "property::border_color" + "property::check_border_color" + "property::check_border_width" + "property::check_color" + "property::shape" + "property::check_shape" + "property::paddings" + "property::color" + "property::checked" + "property::children" + "property::all_children" + "property::forced_height" + "property::forced_width" + "property::opacity" + "property::visible" + "property::buttons" + "widget::layout_changed" + "widget::redraw_needed" + "button::press" + "button::release" + "mouse::enter" + "mouse::leave" + end + record Checkbox_Args + color: any + end + metamethod __call: function(self: Checkbox, checked: boolean, args: Checkbox_Args): Checkbox + border_width: number | nil + bg: Color | nil + border_color: Color | nil + check_border_color: Color | nil + check_border_width: number | nil + check_color: Color | nil + shape: Gears_Shape_Function | nil + check_shape: Gears_Shape_Function | nil + paddings: table | number | nil + color: Color | nil + checked: boolean + children: table + all_children: table + forced_height: number | nil + forced_width: number | nil + opacity: number + visible: boolean + buttons: table + add_button: function(self: Checkbox, button: Button) + emit_signal_recursive: function(self: Checkbox, signal_name: string) + index: function(self: Checkbox, widget: Widget, recursive: boolean): number, Widget, table + connect_signal: function(self: Checkbox, name: string, func: function) + weak_connect_signal: function(self: Checkbox, name: string, func: function) + disconnect_signal: function(self: Checkbox, name: string, func: function) + emit_signal: function(self: Checkbox, name: string) +end + +return Checkbox diff --git a/types/wibox/widget/graph.d.tl b/types/wibox/widget/graph.d.tl new file mode 100644 index 0000000..b04411c --- /dev/null +++ b/types/wibox/widget/graph.d.tl @@ -0,0 +1,76 @@ +-- This file was auto-generated. +local type Button = require("awful.button") +local type Widget = require("wibox.widget") + +local record Graph + enum Signal + "property::border_width" + "property::border_color" + "property::color" + "property::background_color" + "property::group_colors" + "property::max_value" + "property::min_value" + "property::scale" + "property::clamp_bars" + "property::baseline_value" + "property::step_width" + "property::step_spacing" + "property::step_shape" + "property::stack" + "property::nan_indication" + "property::nan_color" + "property::capacity" + "property::children" + "property::all_children" + "property::forced_height" + "property::forced_width" + "property::opacity" + "property::visible" + "property::buttons" + "widget::layout_changed" + "widget::redraw_needed" + "button::press" + "button::release" + "mouse::enter" + "mouse::leave" + end + metamethod __call: function(self: Graph, args: table): Graph + border_width: number + border_color: Color | nil + color: Color + background_color: Color + group_colors: table + max_value: number + min_value: number + scale: boolean + clamp_bars: boolean + baseline_value: number + step_width: number + step_spacing: number + step_shape: Gears_Shape_Function + stack: boolean + nan_indication: boolean + nan_color: Color + capacity: integer | nil + children: table + all_children: table + forced_height: number | nil + forced_width: number | nil + opacity: number + visible: boolean + buttons: table + pick_data_group_color: function(self: Graph, group_idx: number): Color + compute_drawn_values_num: function(self: Graph, usable_width: number): number + add_value: function(self: Graph, value: number, group: integer) + clear: function(self: Graph) + add_button: function(self: Graph, button: Button) + emit_signal_recursive: function(self: Graph, signal_name: string) + index: function(self: Graph, widget: Widget, recursive: boolean): number, Widget, table + connect_signal: function(self: Graph, name: string, func: function) + weak_connect_signal: function(self: Graph, name: string, func: function) + disconnect_signal: function(self: Graph, name: string, func: function) + emit_signal: function(self: Graph, name: string) +end + +return Graph diff --git a/types/wibox/widget/imagebox.d.tl b/types/wibox/widget/imagebox.d.tl new file mode 100644 index 0000000..0188b0d --- /dev/null +++ b/types/wibox/widget/imagebox.d.tl @@ -0,0 +1,104 @@ +-- This file was auto-generated. +local type Button = require("awful.button") +local type Widget = require("wibox.widget") + +local record Imagebox + enum Signal + "property::image" + "property::source_width" + "property::source_height" + "property::clip_shape" + "property::resize" + "property::upscale" + "property::downscale" + "property::stylesheet" + "property::dpi" + "property::auto_dpi" + "property::horizontal_fit_policy" + "property::vertical_fit_policy" + "property::valign" + "property::halign" + "property::max_scaling_factor" + "property::scaling_quality" + "property::children" + "property::all_children" + "property::forced_height" + "property::forced_width" + "property::opacity" + "property::visible" + "property::buttons" + "widget::layout_changed" + "widget::redraw_needed" + "button::press" + "button::release" + "mouse::enter" + "mouse::leave" + end + metamethod __call: function(self: Imagebox, image: Image, resize_allowed: boolean, clip_shape: function): Imagebox + image: Image | nil + source_width: number + source_height: number + clip_shape: Gears_Shape_Function + resize: boolean + upscale: boolean + downscale: boolean + stylesheet: string + dpi: number | table + auto_dpi: boolean + enum Horizontal_fit_policy + "auto" + "none" + "fit" + "repeat" + "reflect" + "pad" + end + horizontal_fit_policy: Horizontal_fit_policy + enum Vertical_fit_policy + "auto" + "none" + "fit" + "fit" + "repeat" + "reflect" + "pad" + end + vertical_fit_policy: Vertical_fit_policy + enum Valign + "top" + "center" + "bottom" + end + valign: Valign + enum Halign + "left" + "center" + "right" + end + halign: Halign + max_scaling_factor: number + enum Scaling_quality + "fast" + "good" + "best" + "nearest" + "bilinear" + end + scaling_quality: Scaling_quality + children: table + all_children: table + forced_height: number | nil + forced_width: number | nil + opacity: number + visible: boolean + buttons: table + add_button: function(self: Imagebox, button: Button) + emit_signal_recursive: function(self: Imagebox, signal_name: string) + index: function(self: Imagebox, widget: Widget, recursive: boolean): number, Widget, table + connect_signal: function(self: Imagebox, name: string, func: function) + weak_connect_signal: function(self: Imagebox, name: string, func: function) + disconnect_signal: function(self: Imagebox, name: string, func: function) + emit_signal: function(self: Imagebox, name: string) +end + +return Imagebox diff --git a/types/wibox/widget/piechart.d.tl b/types/wibox/widget/piechart.d.tl new file mode 100644 index 0000000..8587e8b --- /dev/null +++ b/types/wibox/widget/piechart.d.tl @@ -0,0 +1,50 @@ +-- This file was auto-generated. +local type Button = require("awful.button") +local type Widget = require("wibox.widget") + +local record Piechart + enum Signal + "property::data_list" + "property::data" + "property::border_color" + "property::border_width" + "property::colors" + "property::display_labels" + "property::children" + "property::all_children" + "property::forced_height" + "property::forced_width" + "property::opacity" + "property::visible" + "property::buttons" + "widget::layout_changed" + "widget::redraw_needed" + "button::press" + "button::release" + "mouse::enter" + "mouse::leave" + end + metamethod __call: function(self: Piechart, data_list: table): Piechart + data_list: table + data: table + border_color: Color | nil + border_width: number | nil + colors: table | nil + display_labels: boolean + children: table + all_children: table + forced_height: number | nil + forced_width: number | nil + opacity: number + visible: boolean + buttons: table + add_button: function(self: Piechart, button: Button) + emit_signal_recursive: function(self: Piechart, signal_name: string) + index: function(self: Piechart, widget: Widget, recursive: boolean): number, Widget, table + connect_signal: function(self: Piechart, name: string, func: function) + weak_connect_signal: function(self: Piechart, name: string, func: function) + disconnect_signal: function(self: Piechart, name: string, func: function) + emit_signal: function(self: Piechart, name: string) +end + +return Piechart diff --git a/types/wibox/widget/progressbar.d.tl b/types/wibox/widget/progressbar.d.tl new file mode 100644 index 0000000..5d7a70e --- /dev/null +++ b/types/wibox/widget/progressbar.d.tl @@ -0,0 +1,90 @@ +-- This file was auto-generated. +local type Button = require("awful.button") +local type Widget = require("wibox.widget") + +local record Progressbar + enum Signal + "property::border_color" + "property::border_width" + "property::bar_border_color" + "property::bar_border_width" + "property::color" + "property::background_color" + "property::bar_shape" + "property::shape" + "property::clip" + "property::ticks" + "property::ticks_gap" + "property::ticks_size" + "property::max_value" + "property::margins" + "property::paddings" + "property::value" + "property::children" + "property::all_children" + "property::forced_height" + "property::forced_width" + "property::opacity" + "property::visible" + "property::buttons" + "widget::layout_changed" + "widget::redraw_needed" + "button::press" + "button::release" + "mouse::enter" + "mouse::leave" + end + record Progressbar_Args + width: number + height: number + border_color: any + border_width: number + bar_border_color: any + bar_border_width: number + color: any + background_color: any + bar_shape: Gears_Shape_Function + shape: Gears_Shape_Function + clip: boolean + ticks: boolean + ticks_gap: number + ticks_size: number + max_value: number + margins: table | number + paddings: table | number + value: number + end + metamethod __call: function(self: Progressbar, args: Progressbar_Args): Progressbar + border_color: Color | nil + border_width: number | nil + bar_border_color: Color | nil + bar_border_width: number | nil + color: Color | nil + background_color: Color | nil + bar_shape: Gears_Shape_Function | nil + shape: Gears_Shape_Function | nil + clip: boolean + ticks: boolean + ticks_gap: number + ticks_size: number + max_value: number + margins: table | number | nil + paddings: table | number | nil + value: number + children: table + all_children: table + forced_height: number | nil + forced_width: number | nil + opacity: number + visible: boolean + buttons: table + add_button: function(self: Progressbar, button: Button) + emit_signal_recursive: function(self: Progressbar, signal_name: string) + index: function(self: Progressbar, widget: Widget, recursive: boolean): number, Widget, table + connect_signal: function(self: Progressbar, name: string, func: function) + weak_connect_signal: function(self: Progressbar, name: string, func: function) + disconnect_signal: function(self: Progressbar, name: string, func: function) + emit_signal: function(self: Progressbar, name: string) +end + +return Progressbar diff --git a/types/wibox/widget/separator.d.tl b/types/wibox/widget/separator.d.tl new file mode 100644 index 0000000..627cafb --- /dev/null +++ b/types/wibox/widget/separator.d.tl @@ -0,0 +1,66 @@ +-- This file was auto-generated. +local type Button = require("awful.button") +local type Widget = require("wibox.widget") + +local record Separator + enum Signal + "property::orientation" + "property::thickness" + "property::shape" + "property::span_ratio" + "property::color" + "property::border_color" + "property::border_width" + "property::children" + "property::all_children" + "property::forced_height" + "property::forced_width" + "property::opacity" + "property::visible" + "property::buttons" + "widget::layout_changed" + "widget::redraw_needed" + "button::press" + "button::release" + "mouse::enter" + "mouse::leave" + end + record Separator_Args + orientation: string + thickness: number + shape: function + span_ratio: number + color: Color + border_color: Color + border_width: number + end + metamethod __call: function(self: Separator, args: Separator_Args): Separator + enum Orientation + "vertical" + "horizontal" + "auto" + end + orientation: Orientation + thickness: number | nil + shape: Gears_Shape_Function | nil + span_ratio: number | nil + color: Color | nil + border_color: Color | nil + border_width: number | nil + children: table + all_children: table + forced_height: number | nil + forced_width: number | nil + opacity: number + visible: boolean + buttons: table + add_button: function(self: Separator, button: Button) + emit_signal_recursive: function(self: Separator, signal_name: string) + index: function(self: Separator, widget: Widget, recursive: boolean): number, Widget, table + connect_signal: function(self: Separator, name: string, func: function) + weak_connect_signal: function(self: Separator, name: string, func: function) + disconnect_signal: function(self: Separator, name: string, func: function) + emit_signal: function(self: Separator, name: string) +end + +return Separator diff --git a/types/wibox/widget/slider.d.tl b/types/wibox/widget/slider.d.tl new file mode 100644 index 0000000..cb79ad5 --- /dev/null +++ b/types/wibox/widget/slider.d.tl @@ -0,0 +1,91 @@ +-- This file was auto-generated. +local type Button = require("awful.button") +local type Widget = require("wibox.widget") + +local record Slider + enum Signal + "property::handle_shape" + "property::handle_color" + "property::handle_margins" + "property::handle_width" + "property::handle_border_color" + "property::handle_border_width" + "property::handle_cursor" + "property::bar_shape" + "property::bar_height" + "property::bar_color" + "property::bar_active_color" + "property::bar_margins" + "property::bar_border_width" + "property::bar_border_color" + "property::value" + "property::minimum" + "property::maximum" + "property::children" + "property::all_children" + "property::forced_height" + "property::forced_width" + "property::opacity" + "property::visible" + "property::buttons" + "widget::layout_changed" + "widget::redraw_needed" + "button::press" + "button::release" + "mouse::enter" + "mouse::leave" + end + record Slider_Args + handle_shape: Gears_Shape_Function + handle_color: Color + handle_margins: table + handle_width: number + handle_border_color: Color + handle_border_width: number + handle_cursor: string + bar_shape: Gears_Shape_Function + bar_height: number + bar_color: Color + bar_active_color: Color + bar_margins: table + bar_border_width: number + bar_border_color: Color + value: number + minimum: number + maximum: number + end + metamethod __call: function(self: Slider, args: Slider_Args): Slider + handle_shape: Gears_Shape_Function | nil + handle_color: Color | nil + handle_margins: table | number | nil + handle_width: number | nil + handle_border_color: Color | nil + handle_border_width: number | nil + handle_cursor: string | nil + bar_shape: Gears_Shape_Function | nil + bar_height: number | nil + bar_color: Color | nil + bar_active_color: Color | nil + bar_margins: table | number | nil + bar_border_width: number | nil + bar_border_color: Color | nil + value: number + minimum: number + maximum: number + children: table + all_children: table + forced_height: number | nil + forced_width: number | nil + opacity: number + visible: boolean + buttons: table + add_button: function(self: Slider, button: Button) + emit_signal_recursive: function(self: Slider, signal_name: string) + index: function(self: Slider, widget: Widget, recursive: boolean): number, Widget, table + connect_signal: function(self: Slider, name: string, func: function) + weak_connect_signal: function(self: Slider, name: string, func: function) + disconnect_signal: function(self: Slider, name: string, func: function) + emit_signal: function(self: Slider, name: string) +end + +return Slider diff --git a/types/wibox/widget/systray.d.tl b/types/wibox/widget/systray.d.tl new file mode 100644 index 0000000..5bcefde --- /dev/null +++ b/types/wibox/widget/systray.d.tl @@ -0,0 +1,47 @@ +-- This file was auto-generated. +local type Button = require("awful.button") +local type Screen = require("awful.screen") +local type Widget = require("wibox.widget") + +local record Systray + enum Signal + "property::base_size" + "property::horizontal" + "property::reverse" + "property::screen" + "property::children" + "property::all_children" + "property::forced_height" + "property::forced_width" + "property::opacity" + "property::visible" + "property::buttons" + "widget::layout_changed" + "widget::redraw_needed" + "button::press" + "button::release" + "mouse::enter" + "mouse::leave" + end + metamethod __call: function(self: Systray, reverse: boolean): table + base_size: integer | nil + horizontal: boolean + reverse: boolean + screen: Screen | nil + children: table + all_children: table + forced_height: number | nil + forced_width: number | nil + opacity: number + visible: boolean + buttons: table + add_button: function(self: Systray, button: Button) + emit_signal_recursive: function(self: Systray, signal_name: string) + index: function(self: Systray, widget: Widget, recursive: boolean): number, Widget, table + connect_signal: function(self: Systray, name: string, func: function) + weak_connect_signal: function(self: Systray, name: string, func: function) + disconnect_signal: function(self: Systray, name: string, func: function) + emit_signal: function(self: Systray, name: string) +end + +return Systray diff --git a/types/wibox/widget/textbox.d.tl b/types/wibox/widget/textbox.d.tl new file mode 100644 index 0000000..904341b --- /dev/null +++ b/types/wibox/widget/textbox.d.tl @@ -0,0 +1,86 @@ +-- This file was auto-generated. +local type Button = require("awful.button") +local type Screen = require("awful.screen") +local type Widget = require("wibox.widget") + +local record Textbox + enum Signal + "property::markup" + "property::text" + "property::ellipsize" + "property::wrap" + "property::valign" + "property::halign" + "property::font" + "property::line_spacing_factor" + "property::justify" + "property::indent" + "property::children" + "property::all_children" + "property::forced_height" + "property::forced_width" + "property::opacity" + "property::visible" + "property::buttons" + "widget::layout_changed" + "widget::redraw_needed" + "button::press" + "button::release" + "mouse::enter" + "mouse::leave" + end + metamethod __call: function(self: Textbox, text: string, ignore_markup: boolean): table + get_markup_geometry: function(text: string, s: integer | Screen, font: string): table + markup: string + text: string + enum Ellipsize + "start" + "middle" + "end" + "none" + end + ellipsize: Ellipsize + enum Wrap + "word" + "char" + "word_char" + end + wrap: Wrap + enum Valign + "top" + "center" + "bottom" + end + valign: Valign + enum Halign + "left" + "center" + "right" + end + halign: Halign + font: string + line_spacing_factor: number | nil + justify: boolean + indent: number + children: table + all_children: table + forced_height: number | nil + forced_width: number | nil + opacity: number + visible: boolean + buttons: table + get_preferred_size: function(self: Textbox, s: integer | Screen): number, number + get_height_for_width: function(self: Textbox, width: number, s: integer | Screen): number + get_preferred_size_at_dpi: function(self: Textbox, dpi: number): number, number + get_height_for_width_at_dpi: function(self: Textbox, width: number, dpi: number): number + set_markup_silently: function(self: Textbox, text: string): boolean + add_button: function(self: Textbox, button: Button) + emit_signal_recursive: function(self: Textbox, signal_name: string) + index: function(self: Textbox, widget: Widget, recursive: boolean): number, Widget, table + connect_signal: function(self: Textbox, name: string, func: function) + weak_connect_signal: function(self: Textbox, name: string, func: function) + disconnect_signal: function(self: Textbox, name: string, func: function) + emit_signal: function(self: Textbox, name: string) +end + +return Textbox diff --git a/types/wibox/widget/textclock.d.tl b/types/wibox/widget/textclock.d.tl new file mode 100644 index 0000000..94c2724 --- /dev/null +++ b/types/wibox/widget/textclock.d.tl @@ -0,0 +1,92 @@ +-- This file was auto-generated. +local type Button = require("awful.button") +local type Screen = require("awful.screen") +local type Widget = require("wibox.widget") + +local record Textclock + enum Signal + "property::format" + "property::timezone" + "property::refresh" + "property::markup" + "property::text" + "property::ellipsize" + "property::wrap" + "property::valign" + "property::halign" + "property::font" + "property::line_spacing_factor" + "property::justify" + "property::indent" + "property::children" + "property::all_children" + "property::forced_height" + "property::forced_width" + "property::opacity" + "property::visible" + "property::buttons" + "widget::layout_changed" + "widget::redraw_needed" + "button::press" + "button::release" + "mouse::enter" + "mouse::leave" + end + metamethod __call: function(self: Textclock, format: string, refresh: number, timezone: string): table + format: string + timezone: string + refresh: number + markup: string + text: string + enum Ellipsize + "start" + "middle" + "end" + "none" + end + ellipsize: Ellipsize + enum Wrap + "word" + "char" + "word_char" + end + wrap: Wrap + enum Valign + "top" + "center" + "bottom" + end + valign: Valign + enum Halign + "left" + "center" + "right" + end + halign: Halign + font: string + line_spacing_factor: number | nil + justify: boolean + indent: number + children: table + all_children: table + forced_height: number | nil + forced_width: number | nil + opacity: number + visible: boolean + buttons: table + force_update: function(self: Textclock) + get_preferred_size: function(self: Textclock, s: integer | Screen): number, number + get_height_for_width: function(self: Textclock, width: number, s: integer | Screen): number + get_preferred_size_at_dpi: function(self: Textclock, dpi: number): number, number + get_height_for_width_at_dpi: function(self: Textclock, width: number, dpi: number): number + set_markup_silently: function(self: Textclock, text: string): boolean + add_button: function(self: Textclock, button: Button) + emit_signal_recursive: function(self: Textclock, signal_name: string) + index: function(self: Textclock, widget: Widget, recursive: boolean): number, Widget, table + connect_signal: function(self: Textclock, name: string, func: function) + weak_connect_signal: function(self: Textclock, name: string, func: function) + disconnect_signal: function(self: Textclock, name: string, func: function) + emit_signal: function(self: Textclock, name: string) +end + +return Textclock diff --git a/types/xproperties.d.tl b/types/xproperties.d.tl new file mode 100644 index 0000000..475ea05 --- /dev/null +++ b/types/xproperties.d.tl @@ -0,0 +1,14 @@ +-- This file was auto-generated. + +local record Xproperties + enum Signal + "property::border_color" + "property::border_width" + "property::buttons" + "property::opacity" + "property::struts" + "property::type" + end +end + +return Xproperties