naughty.notify: improve doc for args.run
Closes https://github.com/awesomeWM/awesome/pull/469.
This commit is contained in:
parent
7cbf3e8bee
commit
f7f8420d24
|
@ -407,7 +407,11 @@ end
|
||||||
-- @string[opt=`beautiful.bg_focus` or `'#535d6c'`] args.bg Background color.
|
-- @string[opt=`beautiful.bg_focus` or `'#535d6c'`] args.bg Background color.
|
||||||
-- @int[opt=1] args.border_width Border width.
|
-- @int[opt=1] args.border_width Border width.
|
||||||
-- @string[opt=`beautiful.border_focus` or `'#535d6c'`] args.border_color Border color.
|
-- @string[opt=`beautiful.border_focus` or `'#535d6c'`] args.border_color Border color.
|
||||||
-- @tparam[opt] func args.run Function to run on left click.
|
-- @tparam[opt] func args.run Function to run on left click. The notification
|
||||||
|
-- object will be passed to it as an argument.
|
||||||
|
-- You need to call e.g.
|
||||||
|
-- `notification.die(naughty.notificationClosedReason.dismissedByUser)` from
|
||||||
|
-- there to dismiss the notification yourself.
|
||||||
-- @tparam[opt] func args.destroy Function to run when notification is destroyed.
|
-- @tparam[opt] func args.destroy Function to run when notification is destroyed.
|
||||||
-- @tparam[opt] table args.preset Table with any of the above parameters.
|
-- @tparam[opt] table args.preset Table with any of the above parameters.
|
||||||
-- Note: Any parameters specified directly in args will override ones defined
|
-- Note: Any parameters specified directly in args will override ones defined
|
||||||
|
|
Loading…
Reference in New Issue