Browse Source

expand menu

master
Yessiest 11 months ago
parent
commit
932869df11
  1. 16
      macros/macro1
  2. 5
      macros/macro2
  3. 5
      macros/macro3
  4. 2
      widgets/supermenu.lua
  5. 79
      widgets/supermenu/applications-tab.lua

16
macros/macro1

@ -1,16 +0,0 @@
loop=false
delay=10
-KP_Left
-Right
+Right
-Right
+BackSpace
-BackSpace
+p
-p
+space
-space
+-
--
+r
-r

5
macros/macro2

@ -1,5 +0,0 @@
loop=true
delay=10
-KP_Begin
+v
-v

5
macros/macro3

@ -1,5 +0,0 @@
loop=true
delay=10
-KP_Right
+c
-c

2
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"
},
{

79
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,

Loading…
Cancel
Save