From 680e51049e83c2a964e0ca947958ed95913e6d6a Mon Sep 17 00:00:00 2001 From: Gregor Best Date: Fri, 10 Apr 2009 23:18:51 +0200 Subject: [PATCH] naughty: add opacity option Signed-off-by: Gregor Best Signed-off-by: Julien Danjou --- lib/naughty.lua.in | 2 ++ 1 file changed, 2 insertions(+) diff --git a/lib/naughty.lua.in b/lib/naughty.lua.in index d84f30589..d763ed04f 100644 --- a/lib/naughty.lua.in +++ b/lib/naughty.lua.in @@ -272,6 +272,7 @@ function notify(args) local ontop = args.ontop or config.ontop 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 opacity = args.opacity or (args.preset and args.preset.opacity) or config.presets.normal.opacity -- beautiful local beautiful = bt.get() @@ -382,6 +383,7 @@ function notify(args) x = offset.x, y = offset.y }) notification.box.ontop = ontop + notification.box.opacity = opacity notification.box.screen = screen -- populate widgets