naughty: add opacity option
Signed-off-by: Gregor Best <farhaven@googlemail.com> Signed-off-by: Julien Danjou <julien@danjou.info>
This commit is contained in:
parent
e24df900bb
commit
680e51049e
|
@ -272,6 +272,7 @@ function notify(args)
|
||||||
local ontop = args.ontop or config.ontop
|
local ontop = args.ontop or config.ontop
|
||||||
local width = args.width or (args.preset and args.preset.width) or config.presets.normal.width
|
local width = args.width or (args.preset and args.preset.width) or config.presets.normal.width
|
||||||
local hover_timeout = args.hover_timeout or (args.preset and args.preset.hover_timeout) or config.presets.normal.hover_timeout
|
local hover_timeout = args.hover_timeout or (args.preset and args.preset.hover_timeout) or config.presets.normal.hover_timeout
|
||||||
|
local opacity = args.opacity or (args.preset and args.preset.opacity) or config.presets.normal.opacity
|
||||||
|
|
||||||
-- beautiful
|
-- beautiful
|
||||||
local beautiful = bt.get()
|
local beautiful = bt.get()
|
||||||
|
@ -382,6 +383,7 @@ function notify(args)
|
||||||
x = offset.x,
|
x = offset.x,
|
||||||
y = offset.y })
|
y = offset.y })
|
||||||
notification.box.ontop = ontop
|
notification.box.ontop = ontop
|
||||||
|
notification.box.opacity = opacity
|
||||||
notification.box.screen = screen
|
notification.box.screen = screen
|
||||||
|
|
||||||
-- populate widgets
|
-- populate widgets
|
||||||
|
|
Loading…
Reference in New Issue