diff --git a/rc.lua b/rc.lua index 4abf45e..d75782d 100755 --- a/rc.lua +++ b/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 = {}