From cd46aa20c1d10c339ba2d4afd209c6663cdb39d8 Mon Sep 17 00:00:00 2001 From: elenapan Date: Tue, 10 Mar 2020 22:58:34 +0200 Subject: [PATCH] Use naughty.widget.icon instead of imagebox After https://github.com/awesomeWM/awesome/pull/3029, issues with notification icons not being rendered correctly or updated are fixed, thus we can go back to using naughty.widget.icon --- .../awesome/notifications/themes/lovelace.lua | 17 +---------------- 1 file changed, 1 insertion(+), 16 deletions(-) diff --git a/config/awesome/notifications/themes/lovelace.lua b/config/awesome/notifications/themes/lovelace.lua index 7e86faf..ef52ee2 100644 --- a/config/awesome/notifications/themes/lovelace.lua +++ b/config/awesome/notifications/themes/lovelace.lua @@ -22,22 +22,7 @@ naughty.connect_signal("request::display", function(n) { { { - -- { - -- naughty.widget.icon, - -- bg = "#ff0000", - -- widget = wibox.container.background - -- }, - -- TODO does not render properly - -- That is why we use a normal image box - -- Downside: we cannot update icon - { - forced_height = beautiful.notification_icon_size or dpi(40), - forced_width = beautiful.notification_icon_size or dpi(40), - resize = true, - image = n.icon, - id = "notification_icon", - widget = wibox.widget.imagebox - }, + naughty.widget.icon, { { nil,