parent
3f6c7c0498
commit
b3cd5c0522
24
rc.lua
24
rc.lua
|
@ -32,6 +32,30 @@ local keys = require("core.keybinds")
|
|||
local buttons = {}
|
||||
|
||||
|
||||
-- Bind first 5 shortcuts to Mod + #.
|
||||
local i = 0
|
||||
for k, v in pairs(config.core.bar_shortcuts) do
|
||||
i = i + 1
|
||||
if (i > 5) then
|
||||
goto done_shortcuts
|
||||
end
|
||||
|
||||
keys = gears.table.join(keys,
|
||||
awful.key(
|
||||
{ "Mod4" }, i,
|
||||
function()
|
||||
awful.spawn(v[1], false)
|
||||
end,
|
||||
{
|
||||
description = "Launch ".. v[1],
|
||||
group = "Shortcuts"
|
||||
}
|
||||
)
|
||||
)
|
||||
end
|
||||
::done_shortcuts::
|
||||
|
||||
|
||||
-- Load modules
|
||||
-- Every config table key (except "core") represents a module we should load.
|
||||
modules = {}
|
||||
|
|
Loading…
Reference in New Issue