awesome-slot/slots/ruled.lua

22 lines
513 B
Lua
Raw Normal View History

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