This website requires JavaScript.
Explore
Help
Sign In
Aire-One
/
awesome
Watch
1
Star
0
Fork
You've already forked awesome
0
Code
Issues
Pull Requests
Projects
Releases
Wiki
Activity
6e8b0d5a85
awesome
/
lib
/
ruled
/
init.lua
5 lines
115 B
Lua
Raw
Normal View
History
Unescape
Escape
rules: Move `awful.rules` to `ruled.client`. From now on, all core object will have their own rules. `awful.rules` hardcodes some client specific code. All `rules` module have some form of class specific code. This code will now be part of a new module called `ruled`. Since a year or so, a lot of work has been done to refactor the rules on top of the shared `gears.matcher` class. This way there wont be as much duplication.
2019-10-07 01:24:56 +02:00
return
{
notification: Add rules for notifications. This commit introduce the new "ruled" module. This new top level module will eventually host all "rules" related modules. As for the content of the commit, it adds rules for notification. They are mostly identical to the client rules and can be used to customize or filter the notifications. It replaces the old "preset" API. The preset API inner working was mostly a duplication of the early `awful.rules` API, but was never as flexible. Thus the idea behind this work is to converge all "core" classes to use a similar declarative API.
2019-08-18 07:50:43 +02:00
client
=
require
(
"
ruled.client
"
)
,
notification
=
require
(
"
ruled.notification
"
)
,
rules: Move `awful.rules` to `ruled.client`. From now on, all core object will have their own rules. `awful.rules` hardcodes some client specific code. All `rules` module have some form of class specific code. This code will now be part of a new module called `ruled`. Since a year or so, a lot of work has been done to refactor the rules on top of the shared `gears.matcher` class. This way there wont be as much duplication.
2019-10-07 01:24:56 +02:00
}