forked from ashpie/simple-awesome
25 lines
461 B
Lua
25 lines
461 B
Lua
local awful = require("awful")
|
|
local gears = require("gears")
|
|
|
|
local global_keys = {}
|
|
|
|
function make(hotkey, action, identity)
|
|
local modifiers = hotkey[1]
|
|
local key = hotkey[2]
|
|
return awful.key(modifiers, key, action, identity)
|
|
end
|
|
|
|
|
|
function registerKeys(...)
|
|
global_keys = gears.table.join(global_keys, ...)
|
|
end
|
|
|
|
function getKeys()
|
|
return global_keys
|
|
end
|
|
|
|
return {
|
|
make = make,
|
|
registerKeys = registerKeys,
|
|
getKeys = getKeys,
|
|
} |