2021-05-24 11:40:33 +02:00
|
|
|
local client_slots = {}
|
|
|
|
|
2021-10-16 15:33:51 +02:00
|
|
|
function client_slots.append_mousebindings(params)
|
|
|
|
local amouse = require "awful.mouse"
|
2021-05-24 11:40:33 +02:00
|
|
|
|
2021-10-16 15:33:51 +02:00
|
|
|
for _, bindings in pairs(params.mousebindings) do
|
2021-10-15 01:14:07 +02:00
|
|
|
amouse.append_client_mousebindings(bindings)
|
|
|
|
end
|
2021-05-24 11:40:33 +02:00
|
|
|
end
|
|
|
|
|
2021-10-16 15:33:51 +02:00
|
|
|
function client_slots.append_keybindings(params)
|
|
|
|
local akeyboard = require "awful.keyboard"
|
2021-05-24 11:40:33 +02:00
|
|
|
|
2021-10-16 15:33:51 +02:00
|
|
|
for _, bindings in pairs(params.keybindings) do
|
2021-10-15 01:14:07 +02:00
|
|
|
akeyboard.append_client_keybindings(bindings)
|
|
|
|
end
|
2021-05-24 11:40:33 +02:00
|
|
|
end
|
|
|
|
|
|
|
|
return client_slots
|
2021-10-16 15:33:51 +02:00
|
|
|
|
|
|
|
-- vim: filetype=lua:expandtab:shiftwidth=4:tabstop=8:softtabstop=4:textwidth=80
|