Merge pull request #800 from blueyed/doc-fixes
Some minor doc/typo fixes
This commit is contained in:
commit
6d550d478c
|
@ -390,7 +390,7 @@ for i = 1, 9 do
|
|||
end
|
||||
end,
|
||||
{description = "move focused client to tag #"..i, group = "tag"}),
|
||||
-- Toggle tag.
|
||||
-- Toggle tag on focused client.
|
||||
awful.key({ modkey, "Control", "Shift" }, "#" .. i + 9,
|
||||
function ()
|
||||
if client.focus then
|
||||
|
|
|
@ -261,8 +261,9 @@ end
|
|||
-- with command as argument when a command was changed.
|
||||
-- @param[opt] keypressed_callback The callback function to call
|
||||
-- with mod table, key and command as arguments when a key was pressed.
|
||||
|
||||
function prompt.run(args, textbox, exe_callback, completion_callback, history_path, history_max, done_callback, changed_callback, keypressed_callback)
|
||||
function prompt.run(args, textbox, exe_callback, completion_callback,
|
||||
history_path, history_max, done_callback,
|
||||
changed_callback, keypressed_callback)
|
||||
local grabber
|
||||
local theme = beautiful.get()
|
||||
if not args then args = {} end
|
||||
|
|
|
@ -129,21 +129,23 @@ function spawn.with_shell(cmd)
|
|||
end
|
||||
end
|
||||
|
||||
--- Spawn a program and asynchronously and capture its output line by line.
|
||||
--- Spawn a program and asynchronously capture its output line by line.
|
||||
-- @tparam string|table cmd The command.
|
||||
-- @tab callbacks Table containing callbacks that should be
|
||||
-- invoked on various conditions.
|
||||
-- @tparam[opt] function callbacks.stdout Function that is called with each line of
|
||||
-- output on stdout, e.g. `stdout(line)`.
|
||||
-- @tparam[opt] function callbacks.stderr Function that is called with each line of
|
||||
-- output on stderr, e.g. `stderr(line)`.
|
||||
-- @tparam[opt] function callbacks.output_done Function to call when no more output
|
||||
-- is produced.
|
||||
-- @tparam[opt] function callbacks.exit Function to call when the spawned process
|
||||
-- exits. This function gets the exit reason and code as its argument. The
|
||||
-- reason can be "exit" or "signal". For "exit", the second argument is the exit
|
||||
-- code. For "signal", the second argument is the signal causing process
|
||||
-- termination.
|
||||
-- @tab callbacks Table containing callbacks that should be invoked on
|
||||
-- various conditions.
|
||||
-- @tparam[opt] function callbacks.stdout Function that is called with each
|
||||
-- line of output on stdout, e.g. `stdout(line)`.
|
||||
-- @tparam[opt] function callbacks.stderr Function that is called with each
|
||||
-- line of output on stderr, e.g. `stderr(line)`.
|
||||
-- @tparam[opt] function callbacks.output_done Function to call when no more
|
||||
-- output is produced.
|
||||
-- @tparam[opt] function callbacks.exit Function to call when the spawned
|
||||
-- process exits. This function gets the exit reason and code as its
|
||||
-- arguments.
|
||||
-- The reason can be "exit" or "signal".
|
||||
-- For "exit", the second argument is the exit code.
|
||||
-- For "signal", the second argument is the signal causing process
|
||||
-- termination.
|
||||
-- @treturn[1] Integer the PID of the forked process.
|
||||
-- @treturn[2] string Error message.
|
||||
function spawn.with_line_callback(cmd, callbacks)
|
||||
|
|
|
@ -113,7 +113,7 @@ keyboardlayout.xkeyboard_country_code = {
|
|||
["za"] = true, -- South Africa
|
||||
}
|
||||
|
||||
-- Callback for updaing current layout
|
||||
-- Callback for updating current layout.
|
||||
local function update_status (self)
|
||||
self._current = awesome.xkb_get_layout_group();
|
||||
local text = ""
|
||||
|
|
Loading…
Reference in New Issue