At Wed, 8 Apr 2009 17:46:22 +0200 Julien Danjou wrote: > At 1239204183 time_t, Gregor Best wrote: > > the attached patch adds an opacity option for naughty to enable it to show > > transparent wiboxes. It's an element of the three default presets, where > > it's set to 1 and it can also be given on a per notification base like the > > notification text. > > Setting it to nil by default would be cleaner. > (it does not set any opacity value). > > Cheers,
Agreed. A changed patch is attached.
--
GCS/IT/M d- s+:- a--- C++ UL+++ US UB++ P+++ L+++ E--- W+ N+ o--
K- w--- O M-- V PS+ PE- Y+ PGP+++ t+ 5 X+ R tv+ b++ DI+++ D+++ G+
e- h! r y+
Gregor Best
From 19888b5a45a6ab3e60bcf38cb388bf999ba9fb1d Mon Sep 17 00:00:00 2001 From: Gregor Best <[email protected]> Date: Wed, 8 Apr 2009 17:20:57 +0200 Subject: [PATCH] naughty: add opacity option Signed-off-by: Gregor Best <[email protected]> --- lib/naughty.lua.in | 2 ++ 1 files changed, 2 insertions(+), 0 deletions(-) diff --git a/lib/naughty.lua.in b/lib/naughty.lua.in index f86b05c..7bd19bf 100644 --- a/lib/naughty.lua.in +++ b/lib/naughty.lua.in @@ -273,6 +273,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() @@ -387,6 +388,7 @@ function notify(args) local offset = get_offset(screen, notification.position, notification.idx, notification.width, notification.height) notification.box.screen = screen notification.box.ontop = ontop + notification.box.opacity = opacity notification.box:geometry({ width = notification.width, height = notification.height, x = offset.x, -- 1.6.2.2
signature.asc
Description: PGP signature
