'How do I chance the size of hotkeys_popup.show_help

My short key help is not tall enough to show all my shortcuts. Mod4 + s is the default binding to see the short cuts, when I use it I can see that the list is cut off and partially hidden. I am using AwesomeWm Version 4.3

Thanks for any help you may give



Solution 1:[1]

I talked to Phycon on the Awesome IRC and he clued me in to how to modify the dimensions of a widget. The commented first line is the original, I added the next two and then used the "my_hotkeys_popup" variable in the place of the "hotkeys_popup" in the menu and command area and that solved the problem. I can now adjust the size to whatever I need.

--local hotkeys_popup = require("awful.hotkeys_popup").widget
local hotkeys = require("awful.hotkeys_popup");
local my_hotkeys_popup = hotkeys.widget.new({ width = 2400, height = 1200 });

Solution 2:[2]

Following @jk121960, and the caveats mentioned here, I've succeeded thus:

-- local hotkeys_popup = require("awful.hotkeys_popup")
local hotkeys_popup_jo = require("awful.hotkeys_popup");
local hotkeys_popup_jo_sized = hotkeys_popup_jo.widget.new({ width = 1000, height = 600 });
  -- for my Lenovo IdeaPad 120s 81A4
myawesomemenu = {
   --{ "hotkeys", function() hotkeys_popup.show_help(nil, awful.screen.focused()) end },
   { "hotkeys", function() hotkeys_popup_jo_sized:show_help(nil, awful.screen.focused()) end },
globalkeys = gears.table.join(
    -- awful.key({ modkey,           }, "s",      hotkeys_popup.show_help,
    awful.key({ modkey,           }, "s", function() hotkeys_popup_jo_sized:show_help() end,

Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source
Solution 1 jk121960
Solution 2 joharr