From 932869df11a18695164a0273913c97618a70e70e Mon Sep 17 00:00:00 2001 From: Yessiest Date: Sat, 20 May 2023 20:31:42 +0400 Subject: [PATCH] expand menu --- macros/macro1 | 16 ------ macros/macro2 | 5 -- macros/macro3 | 5 -- widgets/supermenu.lua | 2 +- widgets/supermenu/applications-tab.lua | 79 ++++++++++++++------------ 5 files changed, 45 insertions(+), 62 deletions(-) delete mode 100644 macros/macro1 delete mode 100644 macros/macro2 delete mode 100644 macros/macro3 diff --git a/macros/macro1 b/macros/macro1 deleted file mode 100644 index baf5540..0000000 --- a/macros/macro1 +++ /dev/null @@ -1,16 +0,0 @@ -loop=false -delay=10 --KP_Left --Right -+Right --Right -+BackSpace --BackSpace -+p --p -+space --space -+- --- -+r --r diff --git a/macros/macro2 b/macros/macro2 deleted file mode 100644 index 050af2d..0000000 --- a/macros/macro2 +++ /dev/null @@ -1,5 +0,0 @@ -loop=true -delay=10 --KP_Begin -+v --v diff --git a/macros/macro3 b/macros/macro3 deleted file mode 100644 index 1af8073..0000000 --- a/macros/macro3 +++ /dev/null @@ -1,5 +0,0 @@ -loop=true -delay=10 --KP_Right -+c --c diff --git a/widgets/supermenu.lua b/widgets/supermenu.lua index ab45ac0..2f47bc4 100644 --- a/widgets/supermenu.lua +++ b/widgets/supermenu.lua @@ -49,7 +49,7 @@ local function _preload(args) widget = wibox.container.background }, { - layout = wibox.layout.fixed.vertical, + layout = wibox.layout.flex.vertical, id = "contents" }, { diff --git a/widgets/supermenu/applications-tab.lua b/widgets/supermenu/applications-tab.lua index d52f01f..ae027bf 100644 --- a/widgets/supermenu/applications-tab.lua +++ b/widgets/supermenu/applications-tab.lua @@ -69,46 +69,51 @@ return function(args) args.columns = args.columns or 6 local widget = wibox.widget({ { - t.center(t.container( - t.container({ - widget = wibox.widget.textbox, - markup = "Search", - id = "searchtext" - },{ - id = "searchbox", - bg = style.container.bg_highlight, - forced_width = 240 - }) - )), - t.center( - t.container({ - t.button( - t.textbox({ - markup = "Most used" - }),{ - id = "usage" - } - ), - t.button( - t.textbox({ - markup = "Recent" - }),{ - id = "recent" - } - ), - layout = wibox.layout.flex.horizontal, - spacing = style.base.spacing, - forced_width = 240 - },{ - bg = "#00000000" - }) - ), + { + t.center(t.container( + t.container({ + widget = wibox.widget.textbox, + markup = "Search", + id = "searchtext" + },{ + id = "searchbox", + bg = style.container.bg_highlight, + forced_width = 240 + }) + )), + t.center( + t.container({ + t.button( + t.textbox({ + markup = "Most used" + }),{ + id = "usage" + } + ), + t.button( + t.textbox({ + markup = "Recent" + }),{ + id = "recent" + } + ), + layout = wibox.layout.flex.horizontal, + spacing = style.base.spacing, + forced_width = 240 + },{ + bg = "#00000000" + }) + ), + layout = wibox.layout.fixed.vertical, + spacing = style.base.spacing, + }, { { layout = wibox.layout.grid, forced_num_cols = args.columns, homogenous = true, expand = true, + vertical_expand = true, orientation = "veritcal", spacing = style.base.spacing, id = "appgrid" @@ -116,8 +121,12 @@ return function(args) margins = 20, widget = wibox.container.margin }, - layout = wibox.layout.fixed.vertical, + { + widget = wibox.container.background + }, + layout = wibox.layout.align.vertical, spacing = style.base.spacing, + expand = "inside", id = "root_ratio" }, widget = wibox.container.margin,