diff --git a/lib/keydoc.lua b/lib/keydoc.lua index 5648931..cfa2561 100644 --- a/lib/keydoc.lua +++ b/lib/keydoc.lua @@ -10,6 +10,7 @@ local type = type local modkey = modkey local beautiful = require("beautiful") local naughty = require("naughty") +local theme = beautiful.get() local capi = { root = root, client = client @@ -92,7 +93,7 @@ local function markup(keys) local help, group = doc[key].help, doc[key].group local skey = key2str(key) result[group] = (result[group] or "") .. - ' ' .. + ' ' .. string.format("%" .. (longest - unilen(skey)) .. "s ", "") .. skey .. ' ' .. help .. '\n'