2021-05-24 11:40:33 +02:00
|
|
|
local ruled_slots = {}
|
|
|
|
|
2021-10-16 15:33:51 +02:00
|
|
|
function ruled_slots.append_client_rules(params)
|
|
|
|
local rclient = require "ruled.client"
|
2021-05-24 11:40:33 +02:00
|
|
|
|
2021-10-16 15:33:51 +02:00
|
|
|
for _, rule in pairs(params.rules) do
|
2021-05-24 11:40:33 +02:00
|
|
|
rclient.append_rule(rule)
|
|
|
|
end
|
|
|
|
end
|
|
|
|
|
2021-10-16 15:33:51 +02:00
|
|
|
function ruled_slots.append_notification_rules(params)
|
|
|
|
local rnotification = require "ruled.notification"
|
2021-05-24 11:40:33 +02:00
|
|
|
|
2021-10-16 15:33:51 +02:00
|
|
|
for _, rule in pairs(params.rules) do
|
2021-05-24 11:40:33 +02:00
|
|
|
rnotification.append_rule(rule)
|
|
|
|
end
|
|
|
|
end
|
|
|
|
|
|
|
|
return ruled_slots
|
2021-10-16 15:33:51 +02:00
|
|
|
|
|
|
|
-- vim: filetype=lua:expandtab:shiftwidth=4:tabstop=8:softtabstop=4:textwidth=80
|