From 30df6055b799726236f177b323cd4c115b7dd821 Mon Sep 17 00:00:00 2001 From: Emmanuel Lepage Vallee Date: Sun, 16 Feb 2020 01:25:47 -0500 Subject: [PATCH] ruled.notification: Do not require `naughty`. Since it is used only one, use require() directly. This allows to require it from `beautiful` without a circular dependency. In turn, this allows to set colors using the rules rather than adding an endless amount of theme variables. --- lib/ruled/notification.lua | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/lib/ruled/notification.lua b/lib/ruled/notification.lua index 548a7b65..0aca71df 100644 --- a/lib/ruled/notification.lua +++ b/lib/ruled/notification.lua @@ -27,7 +27,6 @@ local capi = {screen = screen, client = client, awesome = awesome} local matcher = require("gears.matcher") local gtable = require("gears.table") local gobject = require("gears.object") -local naughty = require("naughty") --- The notification is attached to the focused client. -- @@ -206,7 +205,7 @@ capi.awesome.connect_signal("startup", function() module.emit_signal("request::rules") -- This will disable the legacy preset support. - naughty.connect_signal("request::preset", function(n) + require("naughty").connect_signal("request::preset", function(n) module.apply(n) end) end