doc: Remove all type aliases.
They render poorly and serve no purpose. #!/bin/bash for FILE in $(git ls-files | grep -E "\.(h|c|lua)" | grep -v tests | grep -v spec); do sed -i 's/^[ ]*--*[ ]*@client /-- @tparam client /g' $FILE done
This commit is contained in:
parent
5e720c9744
commit
575b0f12dc
|
@ -83,11 +83,6 @@ Parameters of functions should be documented using
|
||||||
For a more comprehensive description of the available tags see the [LDoc
|
For a more comprehensive description of the available tags see the [LDoc
|
||||||
documentation](https://stevedonovan.github.io/ldoc/manual/doc.md.html).
|
documentation](https://stevedonovan.github.io/ldoc/manual/doc.md.html).
|
||||||
|
|
||||||
In addition to the regular tags provided by LDoc there are also some aliases
|
|
||||||
for typed parameters defined in `docs/config.ld`, e.g. `@client` for
|
|
||||||
`@tparam client.object`, `@tag` for `@tparam tag` and `@tab` for
|
|
||||||
`@tparam table`).
|
|
||||||
|
|
||||||
## Patches
|
## Patches
|
||||||
|
|
||||||
If you plan to submit patches, you should follow the following guidelines.
|
If you plan to submit patches, you should follow the following guidelines.
|
||||||
|
|
|
@ -25,6 +25,7 @@
|
||||||
-- <tr><td><a href='../core_components/client.html#dockable'>dockable</a></td><td>If the client is dockable</td></tr>
|
-- <tr><td><a href='../core_components/client.html#dockable'>dockable</a></td><td>If the client is dockable</td></tr>
|
||||||
-- <tr><td><a href='../core_components/client.html#requests_no_titlebar'>requests\_no\_titlebar</a></td><td>If the client requests not to be decorated with a titlebar</td></tr>
|
-- <tr><td><a href='../core_components/client.html#requests_no_titlebar'>requests\_no\_titlebar</a></td><td>If the client requests not to be decorated with a titlebar</td></tr>
|
||||||
-- <tr><td><a href='../core_components/client.html#shape'>shape</a></td><td>Set the client shape</td></tr>
|
-- <tr><td><a href='../core_components/client.html#shape'>shape</a></td><td>Set the client shape</td></tr>
|
||||||
|
-- <tr><td><a href='../core_components/client.html#active'>active</a></td><td>Return true if the client is active (has focus)</td></tr>
|
||||||
-- <tr><td><a href='../core_components/client.html#window'>window</a></td><td>The X window id</td></tr>
|
-- <tr><td><a href='../core_components/client.html#window'>window</a></td><td>The X window id</td></tr>
|
||||||
-- <tr><td><a href='../core_components/client.html#name'>name</a></td><td>The client title</td></tr>
|
-- <tr><td><a href='../core_components/client.html#name'>name</a></td><td>The client title</td></tr>
|
||||||
-- <tr><td><a href='../core_components/client.html#skip_taskbar'>skip\_taskbar</a></td><td>True if the client does not want to be in taskbar</td></tr>
|
-- <tr><td><a href='../core_components/client.html#skip_taskbar'>skip\_taskbar</a></td><td>True if the client does not want to be in taskbar</td></tr>
|
||||||
|
|
|
@ -44,14 +44,6 @@ topics={
|
||||||
'89-NEWS.md',
|
'89-NEWS.md',
|
||||||
}
|
}
|
||||||
|
|
||||||
-- Setup @client to be an alias for "@tparam client.object"
|
|
||||||
tparam_alias('client', 'client.object')
|
|
||||||
tparam_alias('tag', 'tag')
|
|
||||||
-- Should be default, but is not. Sets up "@tab" => "@tparam table".
|
|
||||||
tparam_alias('tab', 'table')
|
|
||||||
tparam_alias('screen', 'screen')
|
|
||||||
tparam_alias('screen_or_idx', 'screen|int')
|
|
||||||
|
|
||||||
-- The first stereotype are the constructors.
|
-- The first stereotype are the constructors.
|
||||||
new_type("constructorfct", "Constructors", false, "Parameters")
|
new_type("constructorfct", "Constructors", false, "Parameters")
|
||||||
new_type("constructorfct2", "ldoc_skip", false, "Parameters")
|
new_type("constructorfct2", "ldoc_skip", false, "Parameters")
|
||||||
|
|
|
@ -157,7 +157,7 @@ client.focus = require("awful.client.focus")
|
||||||
--
|
--
|
||||||
-- @deprecated awful.client.jumpto
|
-- @deprecated awful.client.jumpto
|
||||||
-- @see client.jump_to
|
-- @see client.jump_to
|
||||||
-- @client c the client to jump to
|
-- @tparam client c the client to jump to
|
||||||
-- @tparam bool|function merge If true then merge tags (select the client's
|
-- @tparam bool|function merge If true then merge tags (select the client's
|
||||||
-- first tag additionally) when the client is not visible.
|
-- first tag additionally) when the client is not visible.
|
||||||
-- If it is a function, it will be called with the client and its first
|
-- If it is a function, it will be called with the client and its first
|
||||||
|
@ -251,7 +251,7 @@ end
|
||||||
--
|
--
|
||||||
-- @staticfct awful.client.next
|
-- @staticfct awful.client.next
|
||||||
-- @tparam int i The index. Use 1 to get the next, -1 to get the previous.
|
-- @tparam int i The index. Use 1 to get the next, -1 to get the previous.
|
||||||
-- @client[opt] sel The client.
|
-- @tparam[opt] client sel The client.
|
||||||
-- @tparam[opt=false] boolean stacked Use stacking order? (top to bottom)
|
-- @tparam[opt=false] boolean stacked Use stacking order? (top to bottom)
|
||||||
-- @treturn[opt] client|nil A client, or nil if no client is available.
|
-- @treturn[opt] client|nil A client, or nil if no client is available.
|
||||||
--
|
--
|
||||||
|
@ -287,7 +287,7 @@ end
|
||||||
--
|
--
|
||||||
-- @staticfct awful.client.swap.bydirection
|
-- @staticfct awful.client.swap.bydirection
|
||||||
-- @tparam string dir The direction, can be either "up", "down", "left" or "right".
|
-- @tparam string dir The direction, can be either "up", "down", "left" or "right".
|
||||||
-- @client[opt=focused] c The client.
|
-- @tparam[opt=focused] client c The client.
|
||||||
-- @tparam[opt=false] boolean stacked Use stacking order? (top to bottom)
|
-- @tparam[opt=false] boolean stacked Use stacking order? (top to bottom)
|
||||||
-- @see swap
|
-- @see swap
|
||||||
-- @see swapped
|
-- @see swapped
|
||||||
|
@ -316,7 +316,7 @@ end
|
||||||
-- Swaps across screens.
|
-- Swaps across screens.
|
||||||
-- @staticfct awful.client.swap.global_bydirection
|
-- @staticfct awful.client.swap.global_bydirection
|
||||||
-- @tparam string dir The direction, can be either "up", "down", "left" or "right".
|
-- @tparam string dir The direction, can be either "up", "down", "left" or "right".
|
||||||
-- @client[opt] sel The client.
|
-- @tparam[opt] client sel The client.
|
||||||
-- @request client activate client.swap.global_bydirection granted When a client
|
-- @request client activate client.swap.global_bydirection granted When a client
|
||||||
-- could be activated because `awful.client.swap.global_bydirection` was called.
|
-- could be activated because `awful.client.swap.global_bydirection` was called.
|
||||||
-- @see swap
|
-- @see swap
|
||||||
|
@ -357,7 +357,7 @@ end
|
||||||
--
|
--
|
||||||
-- @staticfct awful.client.swap.byidx
|
-- @staticfct awful.client.swap.byidx
|
||||||
-- @tparam integer i The index.
|
-- @tparam integer i The index.
|
||||||
-- @client[opt] c The client, otherwise focused one is used.
|
-- @tparam[opt] client c The client, otherwise focused one is used.
|
||||||
-- @see swap
|
-- @see swap
|
||||||
-- @see swapped
|
-- @see swapped
|
||||||
-- @see awful.client.swap.bydirection
|
-- @see awful.client.swap.bydirection
|
||||||
|
@ -429,7 +429,7 @@ end
|
||||||
--- Get the master window.
|
--- Get the master window.
|
||||||
--
|
--
|
||||||
-- @legacylayout awful.client.getmaster
|
-- @legacylayout awful.client.getmaster
|
||||||
-- @screen_or_idx[opt=awful.screen.focused()] s The screen.
|
-- @tparam[opt=awful.screen.focused()] screen s The screen.
|
||||||
-- @treturn client The master client.
|
-- @treturn client The master client.
|
||||||
function client.getmaster(s)
|
function client.getmaster(s)
|
||||||
s = s or screen.focused()
|
s = s or screen.focused()
|
||||||
|
@ -439,7 +439,7 @@ end
|
||||||
--- Set the client as master: put it at the beginning of other windows.
|
--- Set the client as master: put it at the beginning of other windows.
|
||||||
--
|
--
|
||||||
-- @legacylayout awful.client.setmaster
|
-- @legacylayout awful.client.setmaster
|
||||||
-- @client c The window to set as master.
|
-- @tparam client c The window to set as master.
|
||||||
function client.setmaster(c)
|
function client.setmaster(c)
|
||||||
local cls = gtable.reverse(capi.client.get(c.screen))
|
local cls = gtable.reverse(capi.client.get(c.screen))
|
||||||
for _, v in pairs(cls) do
|
for _, v in pairs(cls) do
|
||||||
|
@ -449,7 +449,7 @@ end
|
||||||
|
|
||||||
--- Set the client as slave: put it at the end of other windows.
|
--- Set the client as slave: put it at the end of other windows.
|
||||||
-- @legacylayout awful.client.setslave
|
-- @legacylayout awful.client.setslave
|
||||||
-- @client c The window to set as slave.
|
-- @tparam client c The window to set as slave.
|
||||||
function client.setslave(c)
|
function client.setslave(c)
|
||||||
local cls = capi.client.get(c.screen)
|
local cls = capi.client.get(c.screen)
|
||||||
for _, v in pairs(cls) do
|
for _, v in pairs(cls) do
|
||||||
|
@ -463,7 +463,7 @@ end
|
||||||
-- @tparam integer y The relative y coordinate.
|
-- @tparam integer y The relative y coordinate.
|
||||||
-- @tparam integer w The relative width.
|
-- @tparam integer w The relative width.
|
||||||
-- @tparam integer h The relative height.
|
-- @tparam integer h The relative height.
|
||||||
-- @client[opt] c The client, otherwise focused one is used.
|
-- @tparam[opt] client c The client, otherwise focused one is used.
|
||||||
-- @see client.relative_move
|
-- @see client.relative_move
|
||||||
function client.moveresize(x, y, w, h, c)
|
function client.moveresize(x, y, w, h, c)
|
||||||
gdebug.deprecate("Use c:relative_move(x, y, w, h) instead of awful.client.moveresize", {deprecated_in=4})
|
gdebug.deprecate("Use c:relative_move(x, y, w, h) instead of awful.client.moveresize", {deprecated_in=4})
|
||||||
|
@ -489,7 +489,7 @@ end
|
||||||
--- Move a client to a tag.
|
--- Move a client to a tag.
|
||||||
-- @deprecated awful.client.movetotag
|
-- @deprecated awful.client.movetotag
|
||||||
-- @tparam tag target The tag to move the client to.
|
-- @tparam tag target The tag to move the client to.
|
||||||
-- @client[opt] c The client to move, otherwise the focused one is used.
|
-- @tparam[opt] client c The client to move, otherwise the focused one is used.
|
||||||
-- @see client.move_to_tag
|
-- @see client.move_to_tag
|
||||||
function client.movetotag(target, c)
|
function client.movetotag(target, c)
|
||||||
gdebug.deprecate("Use c:move_to_tag(target) instead of awful.client.movetotag", {deprecated_in=4})
|
gdebug.deprecate("Use c:move_to_tag(target) instead of awful.client.movetotag", {deprecated_in=4})
|
||||||
|
@ -519,7 +519,7 @@ end
|
||||||
--
|
--
|
||||||
-- @deprecated awful.client.toggletag
|
-- @deprecated awful.client.toggletag
|
||||||
-- @tparam tag target The tag to toggle.
|
-- @tparam tag target The tag to toggle.
|
||||||
-- @client[opt] c The client to toggle, otherwise the focused one is used.
|
-- @tparam[opt] client c The client to toggle, otherwise the focused one is used.
|
||||||
-- @see client.toggle_tag
|
-- @see client.toggle_tag
|
||||||
-- @see tags
|
-- @see tags
|
||||||
function client.toggletag(target, c)
|
function client.toggletag(target, c)
|
||||||
|
@ -556,7 +556,7 @@ end
|
||||||
|
|
||||||
--- Move a client to a screen. Default is next screen, cycling.
|
--- Move a client to a screen. Default is next screen, cycling.
|
||||||
-- @deprecated awful.client.movetoscreen
|
-- @deprecated awful.client.movetoscreen
|
||||||
-- @client c The client to move.
|
-- @tparam client c The client to move.
|
||||||
-- @tparam screen s The screen, default to current + 1.
|
-- @tparam screen s The screen, default to current + 1.
|
||||||
-- @see screen
|
-- @see screen
|
||||||
-- @see client.move_to_screen
|
-- @see client.move_to_screen
|
||||||
|
@ -660,7 +660,7 @@ end
|
||||||
|
|
||||||
--- Mark a client, and then call 'marked' hook.
|
--- Mark a client, and then call 'marked' hook.
|
||||||
-- @deprecated awful.client.mark
|
-- @deprecated awful.client.mark
|
||||||
-- @client c The client to mark, the focused one if not specified.
|
-- @tparam client c The client to mark, the focused one if not specified.
|
||||||
function client.mark(c)
|
function client.mark(c)
|
||||||
gdebug.deprecate("Use c.marked = true instead of awful.client.mark", {deprecated_in=4})
|
gdebug.deprecate("Use c.marked = true instead of awful.client.mark", {deprecated_in=4})
|
||||||
client.object.set_marked(c or capi.client.focus, true)
|
client.object.set_marked(c or capi.client.focus, true)
|
||||||
|
@ -668,7 +668,7 @@ end
|
||||||
|
|
||||||
--- Unmark a client and then call 'unmarked' hook.
|
--- Unmark a client and then call 'unmarked' hook.
|
||||||
-- @deprecated awful.client.unmark
|
-- @deprecated awful.client.unmark
|
||||||
-- @client c The client to unmark, or the focused one if not specified.
|
-- @tparam client c The client to unmark, or the focused one if not specified.
|
||||||
function client.unmark(c)
|
function client.unmark(c)
|
||||||
gdebug.deprecate("Use c.marked = false instead of awful.client.unmark", {deprecated_in=4})
|
gdebug.deprecate("Use c.marked = false instead of awful.client.unmark", {deprecated_in=4})
|
||||||
client.object.set_marked(c or capi.client.focus, false)
|
client.object.set_marked(c or capi.client.focus, false)
|
||||||
|
@ -676,7 +676,7 @@ end
|
||||||
|
|
||||||
--- Check if a client is marked.
|
--- Check if a client is marked.
|
||||||
-- @deprecated awful.client.ismarked
|
-- @deprecated awful.client.ismarked
|
||||||
-- @client c The client to check, or the focused one otherwise.
|
-- @tparam client c The client to check, or the focused one otherwise.
|
||||||
function client.ismarked(c)
|
function client.ismarked(c)
|
||||||
gdebug.deprecate("Use c.marked instead of awful.client.ismarked", {deprecated_in=4})
|
gdebug.deprecate("Use c.marked instead of awful.client.ismarked", {deprecated_in=4})
|
||||||
return client.object.get_marked(c or capi.client.focus)
|
return client.object.get_marked(c or capi.client.focus)
|
||||||
|
@ -684,7 +684,7 @@ end
|
||||||
|
|
||||||
--- Toggle a client as marked.
|
--- Toggle a client as marked.
|
||||||
-- @deprecated awful.client.togglemarked
|
-- @deprecated awful.client.togglemarked
|
||||||
-- @client c The client to toggle mark.
|
-- @tparam client c The client to toggle mark.
|
||||||
function client.togglemarked(c)
|
function client.togglemarked(c)
|
||||||
gdebug.deprecate("Use c.marked = not c.marked instead of awful.client.togglemarked", {deprecated_in=4})
|
gdebug.deprecate("Use c.marked = not c.marked instead of awful.client.togglemarked", {deprecated_in=4})
|
||||||
c = c or capi.client.focus
|
c = c or capi.client.focus
|
||||||
|
@ -712,7 +712,7 @@ end
|
||||||
--- Set a client floating state, overriding auto-detection.
|
--- Set a client floating state, overriding auto-detection.
|
||||||
-- Floating client are not handled by tiling layouts.
|
-- Floating client are not handled by tiling layouts.
|
||||||
-- @deprecated awful.client.floating.set
|
-- @deprecated awful.client.floating.set
|
||||||
-- @client c A client.
|
-- @tparam client c A client.
|
||||||
-- @tparam boolean s True or false.
|
-- @tparam boolean s True or false.
|
||||||
function client.floating.set(c, s)
|
function client.floating.set(c, s)
|
||||||
gdebug.deprecate("Use c.floating = true instead of awful.client.floating.set", {deprecated_in=4})
|
gdebug.deprecate("Use c.floating = true instead of awful.client.floating.set", {deprecated_in=4})
|
||||||
|
@ -721,7 +721,7 @@ end
|
||||||
|
|
||||||
-- Set a client floating state, overriding auto-detection.
|
-- Set a client floating state, overriding auto-detection.
|
||||||
-- Floating client are not handled by tiling layouts.
|
-- Floating client are not handled by tiling layouts.
|
||||||
-- @client c A client.
|
-- @tparam client c A client.
|
||||||
-- @tparam boolan s True or false.
|
-- @tparam boolan s True or false.
|
||||||
function client.object.set_floating(c, s)
|
function client.object.set_floating(c, s)
|
||||||
c = c or capi.client.focus
|
c = c or capi.client.focus
|
||||||
|
@ -760,7 +760,7 @@ capi.client.connect_signal("property::geometry", store_floating_geometry)
|
||||||
|
|
||||||
--- Return if a client has a fixed size or not.
|
--- Return if a client has a fixed size or not.
|
||||||
-- This function is deprecated, use `c.is_fixed`
|
-- This function is deprecated, use `c.is_fixed`
|
||||||
-- @client c The client.
|
-- @tparam client c The client.
|
||||||
-- @deprecated awful.client.isfixed
|
-- @deprecated awful.client.isfixed
|
||||||
-- @see is_fixed
|
-- @see is_fixed
|
||||||
-- @see size_hints_honor
|
-- @see size_hints_honor
|
||||||
|
@ -826,7 +826,7 @@ function client.object.is_immobilized_vertical(c)
|
||||||
end
|
end
|
||||||
|
|
||||||
--- Get a client floating state.
|
--- Get a client floating state.
|
||||||
-- @client c A client.
|
-- @tparam client c A client.
|
||||||
-- @see floating
|
-- @see floating
|
||||||
-- @deprecated awful.client.floating.get
|
-- @deprecated awful.client.floating.get
|
||||||
-- @treturn boolean True or false. Note that some windows might be floating even if you
|
-- @treturn boolean True or false. Note that some windows might be floating even if you
|
||||||
|
@ -910,7 +910,7 @@ capi.client.connect_signal("request::manage", update_implicitly_floating)
|
||||||
--- Toggle the floating state of a client between 'auto' and 'true'.
|
--- Toggle the floating state of a client between 'auto' and 'true'.
|
||||||
-- Use `c.floating = not c.floating`
|
-- Use `c.floating = not c.floating`
|
||||||
-- @deprecated awful.client.floating.toggle
|
-- @deprecated awful.client.floating.toggle
|
||||||
-- @client c A client.
|
-- @tparam client c A client.
|
||||||
-- @see floating
|
-- @see floating
|
||||||
function client.floating.toggle(c)
|
function client.floating.toggle(c)
|
||||||
c = c or capi.client.focus
|
c = c or capi.client.focus
|
||||||
|
@ -919,7 +919,7 @@ function client.floating.toggle(c)
|
||||||
end
|
end
|
||||||
|
|
||||||
-- Remove the floating information on a client.
|
-- Remove the floating information on a client.
|
||||||
-- @client c The client.
|
-- @tparam client c The client.
|
||||||
function client.floating.delete(c)
|
function client.floating.delete(c)
|
||||||
client.object.set_floating(c, nil)
|
client.object.set_floating(c, nil)
|
||||||
end
|
end
|
||||||
|
@ -1026,7 +1026,7 @@ end
|
||||||
-- number of visible clients in this column.
|
-- number of visible clients in this column.
|
||||||
--
|
--
|
||||||
-- @legacylayout awful.client.idx
|
-- @legacylayout awful.client.idx
|
||||||
-- @client c the client
|
-- @tparam client c the client
|
||||||
-- @treturn integer col The column number.
|
-- @treturn integer col The column number.
|
||||||
-- @treturn integer idx Index of the client in the column.
|
-- @treturn integer idx Index of the client in the column.
|
||||||
-- @treturn integer num The number of visible clients in the column.
|
-- @treturn integer num The number of visible clients in the column.
|
||||||
|
@ -1088,7 +1088,7 @@ end
|
||||||
--
|
--
|
||||||
-- @legacylayout awful.client.setwfact
|
-- @legacylayout awful.client.setwfact
|
||||||
-- @tparam number wfact the window factor value
|
-- @tparam number wfact the window factor value
|
||||||
-- @client c the client
|
-- @tparam client c the client
|
||||||
-- @emits property::windowfact
|
-- @emits property::windowfact
|
||||||
function client.setwfact(wfact, c)
|
function client.setwfact(wfact, c)
|
||||||
-- get the currently selected window
|
-- get the currently selected window
|
||||||
|
@ -1144,7 +1144,7 @@ end
|
||||||
-- @tparam number add Amount to increase/decrease the client's window factor.
|
-- @tparam number add Amount to increase/decrease the client's window factor.
|
||||||
-- Should be between `-current_window_factor` and something close to
|
-- Should be between `-current_window_factor` and something close to
|
||||||
-- infinite. The normalisation then ensures that the sum of all factors is 1.
|
-- infinite. The normalisation then ensures that the sum of all factors is 1.
|
||||||
-- @client c the client.
|
-- @tparam client c the client.
|
||||||
-- @emits property::windowfact
|
-- @emits property::windowfact
|
||||||
function client.incwfact(add, c)
|
function client.incwfact(add, c)
|
||||||
c = c or capi.client.focus
|
c = c or capi.client.focus
|
||||||
|
@ -1167,7 +1167,7 @@ end
|
||||||
|
|
||||||
--- Get a client's dockable state.
|
--- Get a client's dockable state.
|
||||||
--
|
--
|
||||||
-- @client c A client.
|
-- @tparam client c A client.
|
||||||
-- @treturn bool
|
-- @treturn bool
|
||||||
-- @deprecated awful.client.dockable.get
|
-- @deprecated awful.client.dockable.get
|
||||||
function client.dockable.get(c)
|
function client.dockable.get(c)
|
||||||
|
@ -1207,7 +1207,7 @@ end
|
||||||
-- With this enabled you can dock windows by moving them from the center
|
-- With this enabled you can dock windows by moving them from the center
|
||||||
-- to the edge of the workarea.
|
-- to the edge of the workarea.
|
||||||
--
|
--
|
||||||
-- @client c A client.
|
-- @tparam client c A client.
|
||||||
-- @tparam boolean value True or false.
|
-- @tparam boolean value True or false.
|
||||||
-- @deprecated awful.client.dockable.set
|
-- @deprecated awful.client.dockable.set
|
||||||
function client.dockable.set(c, value)
|
function client.dockable.set(c, value)
|
||||||
|
@ -1249,7 +1249,7 @@ end)
|
||||||
--
|
--
|
||||||
-- This method is deprecated. It is now possible to use `c.value` directly.
|
-- This method is deprecated. It is now possible to use `c.value` directly.
|
||||||
--
|
--
|
||||||
-- @client c The client.
|
-- @tparam client c The client.
|
||||||
-- @tparam string prop The property name.
|
-- @tparam string prop The property name.
|
||||||
-- @return The property value.
|
-- @return The property value.
|
||||||
-- @deprecated awful.client.property.get
|
-- @deprecated awful.client.property.get
|
||||||
|
@ -1273,7 +1273,7 @@ end
|
||||||
-- This method is deprecated. It is now possible to use `c.value = value`
|
-- This method is deprecated. It is now possible to use `c.value = value`
|
||||||
-- directly.
|
-- directly.
|
||||||
--
|
--
|
||||||
-- @client c The client.
|
-- @tparam client c The client.
|
||||||
-- @tparam string prop The property name.
|
-- @tparam string prop The property name.
|
||||||
-- @param value The property value.
|
-- @param value The property value.
|
||||||
-- @deprecated awful.client.property.set
|
-- @deprecated awful.client.property.set
|
||||||
|
@ -1377,7 +1377,7 @@ end
|
||||||
--- Get a matching transient_for client (if any).
|
--- Get a matching transient_for client (if any).
|
||||||
-- @deprecated awful.client.get_transient_for_matching
|
-- @deprecated awful.client.get_transient_for_matching
|
||||||
-- @see client.get_transient_for_matching
|
-- @see client.get_transient_for_matching
|
||||||
-- @client c The client.
|
-- @tparam client c The client.
|
||||||
-- @tparam function matcher A function that should return true, if
|
-- @tparam function matcher A function that should return true, if
|
||||||
-- a matching parent client is found.
|
-- a matching parent client is found.
|
||||||
-- @treturn client|nil The matching parent client or nil.
|
-- @treturn client|nil The matching parent client or nil.
|
||||||
|
@ -1411,8 +1411,8 @@ end
|
||||||
--
|
--
|
||||||
-- @deprecated awful.client.is_transient_for
|
-- @deprecated awful.client.is_transient_for
|
||||||
-- @see client.is_transient_for
|
-- @see client.is_transient_for
|
||||||
-- @client c The child client (having transient_for).
|
-- @tparam client c The child client (having transient_for).
|
||||||
-- @client c2 The parent client to check.
|
-- @tparam client c2 The parent client to check.
|
||||||
-- @treturn client|nil The parent client or nil.
|
-- @treturn client|nil The parent client or nil.
|
||||||
function client.is_transient_for(c, c2)
|
function client.is_transient_for(c, c2)
|
||||||
gdebug.deprecate("Use c:is_transient_for(c2) instead of"..
|
gdebug.deprecate("Use c:is_transient_for(c2) instead of"..
|
||||||
|
@ -1430,7 +1430,7 @@ end
|
||||||
-- likely return values.
|
-- likely return values.
|
||||||
--
|
--
|
||||||
-- @method is_transient_for
|
-- @method is_transient_for
|
||||||
-- @client c2 The parent client to check.
|
-- @tparam client c2 The parent client to check.
|
||||||
-- @treturn client|nil The parent client or nil.
|
-- @treturn client|nil The parent client or nil.
|
||||||
-- @see transient_for
|
-- @see transient_for
|
||||||
-- @see modal
|
-- @see modal
|
||||||
|
|
|
@ -44,7 +44,7 @@ end
|
||||||
|
|
||||||
--- Remove a client from the focus history
|
--- Remove a client from the focus history
|
||||||
--
|
--
|
||||||
-- @client c The client that must be removed.
|
-- @tparam client c The client that must be removed.
|
||||||
-- @function awful.client.focus.history.delete
|
-- @function awful.client.focus.history.delete
|
||||||
function focus.history.delete(c)
|
function focus.history.delete(c)
|
||||||
for k, v in ipairs(focus.history.list) do
|
for k, v in ipairs(focus.history.list) do
|
||||||
|
@ -59,7 +59,7 @@ end
|
||||||
--
|
--
|
||||||
-- @function awful.client.focus.byidx
|
-- @function awful.client.focus.byidx
|
||||||
-- @param i The index.
|
-- @param i The index.
|
||||||
-- @client[opt] c The client.
|
-- @tparam[opt] client c The client.
|
||||||
-- @request client activate client.focus.byidx granted When `awful.focus.byidx`
|
-- @request client activate client.focus.byidx granted When `awful.focus.byidx`
|
||||||
-- is called.
|
-- is called.
|
||||||
function focus.byidx(i, c)
|
function focus.byidx(i, c)
|
||||||
|
@ -74,7 +74,7 @@ end
|
||||||
-- This usually means that desktop, dock and splash windows are
|
-- This usually means that desktop, dock and splash windows are
|
||||||
-- not registered and cannot get focus.
|
-- not registered and cannot get focus.
|
||||||
--
|
--
|
||||||
-- @client c A client.
|
-- @tparam client c A client.
|
||||||
-- @return The same client if it's ok, nil otherwise.
|
-- @return The same client if it's ok, nil otherwise.
|
||||||
-- @function awful.client.focus.filter
|
-- @function awful.client.focus.filter
|
||||||
function focus.filter(c)
|
function focus.filter(c)
|
||||||
|
@ -89,7 +89,7 @@ end
|
||||||
|
|
||||||
--- Update client focus history.
|
--- Update client focus history.
|
||||||
--
|
--
|
||||||
-- @client c The client that has been focused.
|
-- @tparam client c The client that has been focused.
|
||||||
-- @function awful.client.focus.history.add
|
-- @function awful.client.focus.history.add
|
||||||
function focus.history.add(c)
|
function focus.history.add(c)
|
||||||
-- Remove the client if its in stack
|
-- Remove the client if its in stack
|
||||||
|
@ -159,7 +159,7 @@ end
|
||||||
--
|
--
|
||||||
-- @tparam string dir The direction, can be either
|
-- @tparam string dir The direction, can be either
|
||||||
-- `"up"`, `"down"`, `"left"` or `"right"`.
|
-- `"up"`, `"down"`, `"left"` or `"right"`.
|
||||||
-- @client[opt] c The client.
|
-- @tparam[opt] client c The client.
|
||||||
-- @tparam[opt=false] boolean stacked Use stacking order? (top to bottom)
|
-- @tparam[opt=false] boolean stacked Use stacking order? (top to bottom)
|
||||||
-- @function awful.client.focus.bydirection
|
-- @function awful.client.focus.bydirection
|
||||||
-- @request client activate client.focus.bydirection granted When
|
-- @request client activate client.focus.bydirection granted When
|
||||||
|
@ -186,7 +186,7 @@ end
|
||||||
--- Focus a client by the given direction. Moves across screens.
|
--- Focus a client by the given direction. Moves across screens.
|
||||||
--
|
--
|
||||||
-- @param dir The direction, can be either "up", "down", "left" or "right".
|
-- @param dir The direction, can be either "up", "down", "left" or "right".
|
||||||
-- @client[opt] c The client.
|
-- @tparam[opt] client c The client.
|
||||||
-- @tparam[opt=false] boolean stacked Use stacking order? (top to bottom)
|
-- @tparam[opt=false] boolean stacked Use stacking order? (top to bottom)
|
||||||
-- @function awful.client.focus.global_bydirection
|
-- @function awful.client.focus.global_bydirection
|
||||||
-- @request client activate client.focus.global_bydirection granted When
|
-- @request client activate client.focus.global_bydirection granted When
|
||||||
|
|
|
@ -19,7 +19,7 @@ shape.update = {}
|
||||||
|
|
||||||
--- Get one of a client's shapes and transform it to include window decorations.
|
--- Get one of a client's shapes and transform it to include window decorations.
|
||||||
-- @function awful.client.shape.get_transformed
|
-- @function awful.client.shape.get_transformed
|
||||||
-- @client c The client whose shape should be retrieved
|
-- @tparam client c The client whose shape should be retrieved
|
||||||
-- @tparam string shape_name Either "bounding" or "clip"
|
-- @tparam string shape_name Either "bounding" or "clip"
|
||||||
function shape.get_transformed(c, shape_name)
|
function shape.get_transformed(c, shape_name)
|
||||||
local border = shape_name == "bounding" and c.border_width or 0
|
local border = shape_name == "bounding" and c.border_width or 0
|
||||||
|
@ -91,7 +91,7 @@ end
|
||||||
|
|
||||||
--- Update all of a client's shapes from the shapes the client set itself.
|
--- Update all of a client's shapes from the shapes the client set itself.
|
||||||
-- @function awful.client.shape.update.all
|
-- @function awful.client.shape.update.all
|
||||||
-- @client c The client to act on
|
-- @tparam client c The client to act on
|
||||||
function shape.update.all(c)
|
function shape.update.all(c)
|
||||||
shape.update.bounding(c)
|
shape.update.bounding(c)
|
||||||
shape.update.clip(c)
|
shape.update.clip(c)
|
||||||
|
@ -99,7 +99,7 @@ end
|
||||||
|
|
||||||
--- Update a client's bounding shape from the shape the client set itself.
|
--- Update a client's bounding shape from the shape the client set itself.
|
||||||
-- @function awful.client.shape.update.bounding
|
-- @function awful.client.shape.update.bounding
|
||||||
-- @client c The client to act on
|
-- @tparam client c The client to act on
|
||||||
function shape.update.bounding(c)
|
function shape.update.bounding(c)
|
||||||
local res = shape.get_transformed(c, "bounding")
|
local res = shape.get_transformed(c, "bounding")
|
||||||
c.shape_bounding = res and res._native
|
c.shape_bounding = res and res._native
|
||||||
|
@ -111,7 +111,7 @@ end
|
||||||
|
|
||||||
--- Update a client's clip shape from the shape the client set itself.
|
--- Update a client's clip shape from the shape the client set itself.
|
||||||
-- @function awful.client.shape.update.clip
|
-- @function awful.client.shape.update.clip
|
||||||
-- @client c The client to act on
|
-- @tparam client c The client to act on
|
||||||
function shape.update.clip(c)
|
function shape.update.clip(c)
|
||||||
local res = shape.get_transformed(c, "clip")
|
local res = shape.get_transformed(c, "clip")
|
||||||
c.shape_clip = res and res._native
|
c.shape_clip = res and res._native
|
||||||
|
|
|
@ -60,7 +60,7 @@ end
|
||||||
--- Adds client to urgent stack.
|
--- Adds client to urgent stack.
|
||||||
--
|
--
|
||||||
-- @function awful.urgent.add
|
-- @function awful.urgent.add
|
||||||
-- @client c The client object.
|
-- @tparam client c The client object.
|
||||||
-- @param prop The property which is updated.
|
-- @param prop The property which is updated.
|
||||||
-- @request client border active granted When a client becomes active and is no
|
-- @request client border active granted When a client becomes active and is no
|
||||||
-- longer urgent.
|
-- longer urgent.
|
||||||
|
@ -91,7 +91,7 @@ end
|
||||||
--- Remove client from urgent stack.
|
--- Remove client from urgent stack.
|
||||||
--
|
--
|
||||||
-- @function awful.urgent.delete
|
-- @function awful.urgent.delete
|
||||||
-- @client c The client object.
|
-- @tparam client c The client object.
|
||||||
function urgent.delete(c)
|
function urgent.delete(c)
|
||||||
for k, cl in ipairs(data) do
|
for k, cl in ipairs(data) do
|
||||||
if c == cl then
|
if c == cl then
|
||||||
|
|
|
@ -137,7 +137,7 @@ end
|
||||||
-- It is the default signal handler for `request::activate` on a `client`.
|
-- It is the default signal handler for `request::activate` on a `client`.
|
||||||
--
|
--
|
||||||
-- @signalhandler awful.permissions.activate
|
-- @signalhandler awful.permissions.activate
|
||||||
-- @client c A client to use
|
-- @tparam client c A client to use
|
||||||
-- @tparam string context The context where this signal was used.
|
-- @tparam string context The context where this signal was used.
|
||||||
-- @tparam[opt] table hints A table with additional hints:
|
-- @tparam[opt] table hints A table with additional hints:
|
||||||
-- @tparam[opt=false] boolean hints.raise should the client be raised?
|
-- @tparam[opt=false] boolean hints.raise should the client be raised?
|
||||||
|
@ -283,7 +283,7 @@ end
|
||||||
-- It is the default signal handler for `request::tag` on a `client`.
|
-- It is the default signal handler for `request::tag` on a `client`.
|
||||||
--
|
--
|
||||||
-- @signalhandler awful.permissions.tag
|
-- @signalhandler awful.permissions.tag
|
||||||
-- @client c A client to tag
|
-- @tparam client c A client to tag
|
||||||
-- @tparam[opt] tag|boolean t A tag to use. If true, then the client is made sticky.
|
-- @tparam[opt] tag|boolean t A tag to use. If true, then the client is made sticky.
|
||||||
-- @tparam[opt={}] table hints Extra information
|
-- @tparam[opt={}] table hints Extra information
|
||||||
function permissions.tag(c, t, hints) --luacheck: no unused
|
function permissions.tag(c, t, hints) --luacheck: no unused
|
||||||
|
@ -310,7 +310,7 @@ end
|
||||||
|
|
||||||
--- Handle client urgent request
|
--- Handle client urgent request
|
||||||
-- @signalhandler awful.permissions.urgent
|
-- @signalhandler awful.permissions.urgent
|
||||||
-- @client c A client
|
-- @tparam client c A client
|
||||||
-- @tparam boolean urgent If the client should be urgent
|
-- @tparam boolean urgent If the client should be urgent
|
||||||
function permissions.urgent(c, urgent)
|
function permissions.urgent(c, urgent)
|
||||||
if c ~= client.focus and not aclient.property.get(c,"ignore_urgent") then
|
if c ~= client.focus and not aclient.property.get(c,"ignore_urgent") then
|
||||||
|
|
|
@ -849,7 +849,7 @@ end
|
||||||
|
|
||||||
--- Place the client so no part of it will be outside the screen (workarea).
|
--- Place the client so no part of it will be outside the screen (workarea).
|
||||||
--@DOC_awful_placement_no_offscreen_EXAMPLE@
|
--@DOC_awful_placement_no_offscreen_EXAMPLE@
|
||||||
-- @client c The client.
|
-- @tparam client c The client.
|
||||||
-- @tparam[opt={}] table args The arguments
|
-- @tparam[opt={}] table args The arguments
|
||||||
-- @tparam[opt=client's screen] integer args.screen The screen.
|
-- @tparam[opt=client's screen] integer args.screen The screen.
|
||||||
-- @treturn table The new client geometry.
|
-- @treturn table The new client geometry.
|
||||||
|
|
|
@ -88,7 +88,7 @@ end
|
||||||
-- This moves the mouse pointer to the last known position on the new screen,
|
-- This moves the mouse pointer to the last known position on the new screen,
|
||||||
-- or keeps its position relative to the current focused screen.
|
-- or keeps its position relative to the current focused screen.
|
||||||
-- @staticfct awful.screen.focus
|
-- @staticfct awful.screen.focus
|
||||||
-- @screen _screen Screen number (defaults / falls back to mouse.screen).
|
-- @tparam screen _screen Screen number (defaults / falls back to mouse.screen).
|
||||||
-- @request client activate screen.focus granted The most recent focused client
|
-- @request client activate screen.focus granted The most recent focused client
|
||||||
-- for this screen should be re-activated.
|
-- for this screen should be re-activated.
|
||||||
function screen.focus(_screen)
|
function screen.focus(_screen)
|
||||||
|
@ -361,9 +361,9 @@ end
|
||||||
-- @tparam[opt] int|table args.margins Apply some margins on the output.
|
-- @tparam[opt] int|table args.margins Apply some margins on the output.
|
||||||
-- This can either be a number or a table with *left*, *right*, *top*
|
-- This can either be a number or a table with *left*, *right*, *top*
|
||||||
-- and *bottom* keys.
|
-- and *bottom* keys.
|
||||||
-- @tag[opt] args.tag Use this tag's screen.
|
-- @tparam[opt] tag args.tag Use this tag's screen.
|
||||||
-- @tparam[opt] drawable args.parent A parent drawable to use as base geometry.
|
-- @tparam[opt] drawable args.parent A parent drawable to use as base geometry.
|
||||||
-- @tab[opt] args.bounding_rect A bounding rectangle. This parameter is
|
-- @tparam[opt] table args.bounding_rect A bounding rectangle. This parameter is
|
||||||
-- incompatible with `honor_workarea`.
|
-- incompatible with `honor_workarea`.
|
||||||
-- @treturn table A table with *x*, *y*, *width* and *height*.
|
-- @treturn table A table with *x*, *y*, *width* and *height*.
|
||||||
-- @usage local geo = screen:get_bounding_geometry {
|
-- @usage local geo = screen:get_bounding_geometry {
|
||||||
|
@ -516,7 +516,7 @@ end
|
||||||
--
|
--
|
||||||
-- @staticfct awful.screen.connect_for_each_screen
|
-- @staticfct awful.screen.connect_for_each_screen
|
||||||
-- @tparam function func The function to call.
|
-- @tparam function func The function to call.
|
||||||
-- @screen func.screen The screen.
|
-- @tparam screen func.screen The screen.
|
||||||
function screen.connect_for_each_screen(func)
|
function screen.connect_for_each_screen(func)
|
||||||
for s in capi.screen do
|
for s in capi.screen do
|
||||||
func(s)
|
func(s)
|
||||||
|
|
|
@ -374,7 +374,7 @@ end
|
||||||
|
|
||||||
--- Spawn a program and asynchronously capture its output line by line.
|
--- Spawn a program and asynchronously capture its output line by line.
|
||||||
-- @tparam string|table cmd The command.
|
-- @tparam string|table cmd The command.
|
||||||
-- @tab callbacks Table containing callbacks that should be invoked on
|
-- @tparam table callbacks Table containing callbacks that should be invoked on
|
||||||
-- various conditions.
|
-- various conditions.
|
||||||
-- @tparam[opt] function callbacks.stdout Function that is called with each
|
-- @tparam[opt] function callbacks.stdout Function that is called with each
|
||||||
-- line of output on stdout, e.g. `stdout(line)`.
|
-- line of output on stdout, e.g. `stdout(line)`.
|
||||||
|
@ -428,7 +428,7 @@ end
|
||||||
--- Asynchronously spawn a program and capture its output.
|
--- Asynchronously spawn a program and capture its output.
|
||||||
-- (wraps `spawn.with_line_callback`).
|
-- (wraps `spawn.with_line_callback`).
|
||||||
-- @tparam string|table cmd The command.
|
-- @tparam string|table cmd The command.
|
||||||
-- @tab callback Function with the following arguments
|
-- @tparam table callback Function with the following arguments
|
||||||
-- @tparam string callback.stdout Output on stdout.
|
-- @tparam string callback.stdout Output on stdout.
|
||||||
-- @tparam string callback.stderr Output on stderr.
|
-- @tparam string callback.stderr Output on stderr.
|
||||||
-- @tparam string callback.exitreason Exit reason ("exit" or "signal").
|
-- @tparam string callback.exitreason Exit reason ("exit" or "signal").
|
||||||
|
@ -479,7 +479,7 @@ end
|
||||||
--- Call `spawn.easy_async` with a shell.
|
--- Call `spawn.easy_async` with a shell.
|
||||||
-- This calls `cmd` with `$SHELL -c` (via `awful.util.shell`).
|
-- This calls `cmd` with `$SHELL -c` (via `awful.util.shell`).
|
||||||
-- @tparam string cmd The command.
|
-- @tparam string cmd The command.
|
||||||
-- @tab callback Function with the following arguments
|
-- @tparam table callback Function with the following arguments
|
||||||
-- @tparam string callback.stdout Output on stdout.
|
-- @tparam string callback.stdout Output on stdout.
|
||||||
-- @tparam string callback.stderr Output on stderr.
|
-- @tparam string callback.stderr Output on stderr.
|
||||||
-- @tparam string callback.exitreason Exit reason ("exit" or "signal").
|
-- @tparam string callback.exitreason Exit reason ("exit" or "signal").
|
||||||
|
|
|
@ -1670,7 +1670,7 @@ end
|
||||||
-- future. When a tag is detached from the screen, its signal is removed.
|
-- future. When a tag is detached from the screen, its signal is removed.
|
||||||
--
|
--
|
||||||
-- @staticfct awful.tag.attached_connect_signal
|
-- @staticfct awful.tag.attached_connect_signal
|
||||||
-- @screen screen The screen concerned, or all if nil.
|
-- @tparam screen screen The screen concerned, or all if nil.
|
||||||
-- @tparam[opt] string signal The signal name.
|
-- @tparam[opt] string signal The signal name.
|
||||||
-- @tparam[opt] function Callback
|
-- @tparam[opt] function Callback
|
||||||
function tag.attached_connect_signal(screen, ...)
|
function tag.attached_connect_signal(screen, ...)
|
||||||
|
|
|
@ -17,7 +17,7 @@ local base = require("wibox.widget.base")
|
||||||
local common = {}
|
local common = {}
|
||||||
|
|
||||||
--- Common method to create buttons.
|
--- Common method to create buttons.
|
||||||
-- @tab buttons
|
-- @tparam table buttons
|
||||||
-- @param object
|
-- @param object
|
||||||
-- @treturn table
|
-- @treturn table
|
||||||
function common.create_buttons(buttons, object)
|
function common.create_buttons(buttons, object)
|
||||||
|
@ -112,12 +112,12 @@ end
|
||||||
|
|
||||||
--- Common update method.
|
--- Common update method.
|
||||||
-- @param w The widget.
|
-- @param w The widget.
|
||||||
-- @tab buttons
|
-- @tparam table buttons
|
||||||
-- @func label Function to generate label parameters from an object.
|
-- @func label Function to generate label parameters from an object.
|
||||||
-- The function gets passed an object from `objects`, and
|
-- The function gets passed an object from `objects`, and
|
||||||
-- has to return `text`, `bg`, `bg_image`, `icon`.
|
-- has to return `text`, `bg`, `bg_image`, `icon`.
|
||||||
-- @tab data Current data/cache, indexed by objects.
|
-- @tparam table data Current data/cache, indexed by objects.
|
||||||
-- @tab objects Objects to be displayed / updated.
|
-- @tparam table objects Objects to be displayed / updated.
|
||||||
-- @tparam[opt={}] table args
|
-- @tparam[opt={}] table args
|
||||||
function common.list_update(w, buttons, label, data, objects, args)
|
function common.list_update(w, buttons, label, data, objects, args)
|
||||||
-- update the widgets, creating them if needed
|
-- update the widgets, creating them if needed
|
||||||
|
|
|
@ -611,7 +611,7 @@ end
|
||||||
--
|
--
|
||||||
-- local notif = naughty.notification(args)
|
-- local notif = naughty.notification(args)
|
||||||
--
|
--
|
||||||
-- @tab args The argument table containing any of the arguments below.
|
-- @tparam table args The argument table containing any of the arguments below.
|
||||||
-- @string[opt=""] args.text Text of the notification.
|
-- @string[opt=""] args.text Text of the notification.
|
||||||
-- @string[opt] args.title Title of the notification.
|
-- @string[opt] args.title Title of the notification.
|
||||||
-- @int[opt=5] args.timeout Time in seconds after which popup expires.
|
-- @int[opt=5] args.timeout Time in seconds after which popup expires.
|
||||||
|
|
|
@ -757,7 +757,7 @@ end
|
||||||
|
|
||||||
--- Create a notification.
|
--- Create a notification.
|
||||||
--
|
--
|
||||||
-- @tab args The argument table containing any of the arguments below.
|
-- @tparam table args The argument table containing any of the arguments below.
|
||||||
-- @string[opt=""] args.text Text of the notification.
|
-- @string[opt=""] args.text Text of the notification.
|
||||||
-- @string[opt] args.title Title of the notification.
|
-- @string[opt] args.title Title of the notification.
|
||||||
-- @int[opt=5] args.timeout Time in seconds after which popup expires.
|
-- @int[opt=5] args.timeout Time in seconds after which popup expires.
|
||||||
|
|
|
@ -123,8 +123,8 @@ local module = {}
|
||||||
local crules = gmatcher()
|
local crules = gmatcher()
|
||||||
|
|
||||||
--- Check if a client matches a rule.
|
--- Check if a client matches a rule.
|
||||||
-- @client c The client.
|
-- @tparam client c The client.
|
||||||
-- @tab rule The rule to check.
|
-- @tparam table rule The rule to check.
|
||||||
-- @treturn bool True if it matches, false otherwise.
|
-- @treturn bool True if it matches, false otherwise.
|
||||||
-- @staticfct ruled.client.match
|
-- @staticfct ruled.client.match
|
||||||
function module.match(c, rule)
|
function module.match(c, rule)
|
||||||
|
@ -132,8 +132,8 @@ function module.match(c, rule)
|
||||||
end
|
end
|
||||||
|
|
||||||
--- Check if a client matches any part of a rule.
|
--- Check if a client matches any part of a rule.
|
||||||
-- @client c The client.
|
-- @tparam client c The client.
|
||||||
-- @tab rule The rule to check.
|
-- @tparam table rule The rule to check.
|
||||||
-- @treturn bool True if at least one rule is matched, false otherwise.
|
-- @treturn bool True if at least one rule is matched, false otherwise.
|
||||||
-- @staticfct ruled.client.match_any
|
-- @staticfct ruled.client.match_any
|
||||||
function module.match_any(c, rule)
|
function module.match_any(c, rule)
|
||||||
|
@ -141,8 +141,8 @@ function module.match_any(c, rule)
|
||||||
end
|
end
|
||||||
|
|
||||||
--- Does a given rule entry match a client?
|
--- Does a given rule entry match a client?
|
||||||
-- @client c The client.
|
-- @tparam client c The client.
|
||||||
-- @tab entry Rule entry (with keys `rule`, `rule_any`, `except` and/or
|
-- @tparam table entry Rule entry (with keys `rule`, `rule_any`, `except` and/or
|
||||||
-- `except_any`).
|
-- `except_any`).
|
||||||
-- @treturn bool
|
-- @treturn bool
|
||||||
-- @staticfct ruled.client.matches
|
-- @staticfct ruled.client.matches
|
||||||
|
@ -151,8 +151,8 @@ function module.matches(c, entry)
|
||||||
end
|
end
|
||||||
|
|
||||||
--- Get list of matching rules for a client.
|
--- Get list of matching rules for a client.
|
||||||
-- @client c The client.
|
-- @tparam client c The client.
|
||||||
-- @tab _rules The rules to check. List with "rule", "rule_any", "except" and
|
-- @tparam table _rules The rules to check. List with "rule", "rule_any", "except" and
|
||||||
-- "except_any" keys.
|
-- "except_any" keys.
|
||||||
-- @treturn table The list of matched rules.
|
-- @treturn table The list of matched rules.
|
||||||
-- @staticfct ruled.client.matching_rules
|
-- @staticfct ruled.client.matching_rules
|
||||||
|
@ -161,8 +161,8 @@ function module.matching_rules(c, _rules)
|
||||||
end
|
end
|
||||||
|
|
||||||
--- Check if a client matches a given set of rules.
|
--- Check if a client matches a given set of rules.
|
||||||
-- @client c The client.
|
-- @tparam client c The client.
|
||||||
-- @tab _rules The rules to check. List of tables with `rule`, `rule_any`,
|
-- @tparam table _rules The rules to check. List of tables with `rule`, `rule_any`,
|
||||||
-- `except` and `except_any` keys.
|
-- `except` and `except_any` keys.
|
||||||
-- @treturn bool True if at least one rule is matched, false otherwise.
|
-- @treturn bool True if at least one rule is matched, false otherwise.
|
||||||
-- @staticfct ruled.client.matches_list
|
-- @staticfct ruled.client.matches_list
|
||||||
|
@ -179,7 +179,7 @@ function module.remove_rule_source(name)
|
||||||
end
|
end
|
||||||
|
|
||||||
--- Apply ruled.client.rules to a client.
|
--- Apply ruled.client.rules to a client.
|
||||||
-- @client c The client.
|
-- @tparam client c The client.
|
||||||
-- @staticfct ruled.client.apply
|
-- @staticfct ruled.client.apply
|
||||||
function module.apply(c)
|
function module.apply(c)
|
||||||
return crules:apply(c)
|
return crules:apply(c)
|
||||||
|
@ -525,9 +525,9 @@ function module.high_priority_properties.tags(c, value, props)
|
||||||
end
|
end
|
||||||
|
|
||||||
--- Apply properties and callbacks to a client.
|
--- Apply properties and callbacks to a client.
|
||||||
-- @client c The client.
|
-- @tparam client c The client.
|
||||||
-- @tab props Properties to apply.
|
-- @tparam table props Properties to apply.
|
||||||
-- @tab[opt] callbacks Callbacks to apply.
|
-- @tparam[opt] table callbacks Callbacks to apply.
|
||||||
-- @staticfct ruled.client.execute
|
-- @staticfct ruled.client.execute
|
||||||
-- @request client titlebars rules granted The `titlebars_enabled` is set in the
|
-- @request client titlebars rules granted The `titlebars_enabled` is set in the
|
||||||
-- rules.
|
-- rules.
|
||||||
|
|
|
@ -150,7 +150,7 @@ end
|
||||||
--
|
--
|
||||||
-- The default implementation does nothing, this must be re-implemented by
|
-- The default implementation does nothing, this must be re-implemented by
|
||||||
-- all layout and container widgets.
|
-- all layout and container widgets.
|
||||||
-- @tab children A table composed of valid widgets.
|
-- @tparam table children A table composed of valid widgets.
|
||||||
-- @method set_children
|
-- @method set_children
|
||||||
function base.widget:set_children(children) -- luacheck: no unused
|
function base.widget:set_children(children) -- luacheck: no unused
|
||||||
-- Nothing on purpose
|
-- Nothing on purpose
|
||||||
|
@ -309,7 +309,7 @@ end
|
||||||
-- This calls the widget's `:fit` callback and caches the result for later use.
|
-- This calls the widget's `:fit` callback and caches the result for later use.
|
||||||
-- Never call `:fit` directly, but always through this function!
|
-- Never call `:fit` directly, but always through this function!
|
||||||
-- @tparam widget parent The parent widget which requests this information.
|
-- @tparam widget parent The parent widget which requests this information.
|
||||||
-- @tab context The context in which we are fit.
|
-- @tparam table context The context in which we are fit.
|
||||||
-- @tparam widget widget The widget to fit (this uses
|
-- @tparam widget widget The widget to fit (this uses
|
||||||
-- `widget:fit(context, width, height)`).
|
-- `widget:fit(context, width, height)`).
|
||||||
-- @tparam number width The available width for the widget.
|
-- @tparam number width The available width for the widget.
|
||||||
|
@ -358,7 +358,7 @@ end
|
||||||
-- However, normally there shouldn't be any reason why you need to use this
|
-- However, normally there shouldn't be any reason why you need to use this
|
||||||
-- function.
|
-- function.
|
||||||
-- @tparam widget parent The parent widget which requests this information.
|
-- @tparam widget parent The parent widget which requests this information.
|
||||||
-- @tab context The context in which we are laid out.
|
-- @tparam table context The context in which we are laid out.
|
||||||
-- @tparam widget widget The widget to layout (this uses
|
-- @tparam widget widget The widget to layout (this uses
|
||||||
-- `widget:layout(context, width, height)`).
|
-- `widget:layout(context, width, height)`).
|
||||||
-- @tparam number width The available width for the widget.
|
-- @tparam number width The available width for the widget.
|
||||||
|
@ -574,7 +574,7 @@ end
|
||||||
--- Set a declarative widget hierarchy description.
|
--- Set a declarative widget hierarchy description.
|
||||||
--
|
--
|
||||||
-- See [The declarative layout system](../documentation/03-declarative-layout.md.html).
|
-- See [The declarative layout system](../documentation/03-declarative-layout.md.html).
|
||||||
-- @tab args A table containing the widget's disposition.
|
-- @tparam table args A table containing the widget's disposition.
|
||||||
-- @method setup
|
-- @method setup
|
||||||
function base.widget:setup(args)
|
function base.widget:setup(args)
|
||||||
local f,ids = self.set_widget or self.add or self.set_first,{}
|
local f,ids = self.set_widget or self.add or self.set_first,{}
|
||||||
|
@ -601,7 +601,7 @@ end
|
||||||
--- Create a widget from a declarative description.
|
--- Create a widget from a declarative description.
|
||||||
--
|
--
|
||||||
-- See [The declarative layout system](../documentation/03-declarative-layout.md.html).
|
-- See [The declarative layout system](../documentation/03-declarative-layout.md.html).
|
||||||
-- @tab args A table containing the widgets disposition.
|
-- @tparam table args A table containing the widgets disposition.
|
||||||
-- @constructorfct wibox.widget.base.make_widget_declarative
|
-- @constructorfct wibox.widget.base.make_widget_declarative
|
||||||
function base.make_widget_declarative(args)
|
function base.make_widget_declarative(args)
|
||||||
local ids = {}
|
local ids = {}
|
||||||
|
|
|
@ -364,7 +364,7 @@
|
||||||
|
|
||||||
/** When a client gets tagged.
|
/** When a client gets tagged.
|
||||||
* @signal tagged
|
* @signal tagged
|
||||||
* @tag t The tag object.
|
* @tparam tag t The tag object.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
/** When a client gets unfocused.
|
/** When a client gets unfocused.
|
||||||
|
@ -373,7 +373,7 @@
|
||||||
|
|
||||||
/** When a client gets untagged.
|
/** When a client gets untagged.
|
||||||
* @signal untagged
|
* @signal untagged
|
||||||
* @tag t The tag object.
|
* @tparam tag t The tag object.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
@ -2940,7 +2940,7 @@ luaA_client_kill(lua_State *L)
|
||||||
}
|
}
|
||||||
|
|
||||||
/** Swap a client with another one in global client list.
|
/** Swap a client with another one in global client list.
|
||||||
* @client c A client to swap with.
|
* @tparam client c A client to swap with.
|
||||||
* @method swap
|
* @method swap
|
||||||
* @emits swapped
|
* @emits swapped
|
||||||
* @emitstparam swapped client The other client.
|
* @emitstparam swapped client The other client.
|
||||||
|
|
|
@ -1803,7 +1803,7 @@ luaA_screen_fake_resize(lua_State *L)
|
||||||
*
|
*
|
||||||
* @DOC_sequences_screen_swap_EXAMPLE@
|
* @DOC_sequences_screen_swap_EXAMPLE@
|
||||||
*
|
*
|
||||||
* @client s A screen to swap with.
|
* @tparam client s A screen to swap with.
|
||||||
* @method swap
|
* @method swap
|
||||||
*/
|
*/
|
||||||
static int
|
static int
|
||||||
|
|
|
@ -240,12 +240,12 @@
|
||||||
|
|
||||||
/** When a client gets tagged with this tag.
|
/** When a client gets tagged with this tag.
|
||||||
* @signal tagged
|
* @signal tagged
|
||||||
* @client c The tagged client.
|
* @tparam client c The tagged client.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
/** When a client gets untagged with this tag.
|
/** When a client gets untagged with this tag.
|
||||||
* @signal untagged
|
* @signal untagged
|
||||||
* @client c The untagged client.
|
* @tparam client c The untagged client.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
Loading…
Reference in New Issue