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.
This commit is contained in:
Emmanuel Lepage Vallee 2020-02-16 01:25:47 -05:00
parent cab352781d
commit 30df6055b7
1 changed files with 1 additions and 2 deletions

View File

@ -27,7 +27,6 @@ local capi = {screen = screen, client = client, awesome = awesome}
local matcher = require("gears.matcher") local matcher = require("gears.matcher")
local gtable = require("gears.table") local gtable = require("gears.table")
local gobject = require("gears.object") local gobject = require("gears.object")
local naughty = require("naughty")
--- The notification is attached to the focused client. --- The notification is attached to the focused client.
-- --
@ -206,7 +205,7 @@ capi.awesome.connect_signal("startup", function()
module.emit_signal("request::rules") module.emit_signal("request::rules")
-- This will disable the legacy preset support. -- 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) module.apply(n)
end) end)
end end