Added shortcut keybinds.

Closes: #4
master
Mark 2022-07-18 11:04:06 -07:00
parent 3f6c7c0498
commit b3cd5c0522
Signed by: Mark
GPG Key ID: AD62BB059C2AAEE4
1 changed files with 24 additions and 0 deletions

24
rc.lua
View File

@ -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 = {}