1
0
Fork 0
mirror of https://github.com/lcpz/awesome-copycats.git synced 2026-03-23 14:05:11 +00:00

menu_width and menu_height in vertex theme

This commit is contained in:
Toma Adrian Ionut 2022-11-06 14:48:31 +02:00
parent f629c04b1d
commit 97d6309b3a
2 changed files with 29 additions and 24 deletions

View file

@ -199,25 +199,24 @@ awful.util.mymainmenu = freedesktop.menu.build {
before = {{"Awesome", myawesomemenu, beautiful.awesome_icon} -- other triads can be put here before = {{"Awesome", myawesomemenu, beautiful.awesome_icon} -- other triads can be put here
}, },
after = {{"Open terminal", terminal} -- other triads can be put here after = {{"Open terminal", terminal} -- other triads can be put here
}, }
width = 250
} }
-- Hide the menu when the mouse leaves it -- Hide the menu when the mouse leaves it
-- awful.util.mymainmenu.wibox:connect_signal("mouse::leave", function() awful.util.mymainmenu.wibox:connect_signal("mouse::leave", function()
-- if not awful.util.mymainmenu.active_child or if not awful.util.mymainmenu.active_child or
-- (awful.util.mymainmenu.wibox ~= mouse.current_wibox and awful.util.mymainmenu.active_child.wibox ~= (awful.util.mymainmenu.wibox ~= mouse.current_wibox and awful.util.mymainmenu.active_child.wibox ~=
-- mouse.current_wibox) then mouse.current_wibox) then
-- awful.util.mymainmenu:hide() awful.util.mymainmenu:hide()
-- else else
-- awful.util.mymainmenu.active_child.wibox:connect_signal("mouse::leave", function() awful.util.mymainmenu.active_child.wibox:connect_signal("mouse::leave", function()
-- if awful.util.mymainmenu.wibox ~= mouse.current_wibox then if awful.util.mymainmenu.wibox ~= mouse.current_wibox then
-- awful.util.mymainmenu:hide() awful.util.mymainmenu:hide()
-- end end
-- end) end)
-- end end
-- end) end)
-- Set the Menubar terminal for applications that require it -- Set the Menubar terminal for applications that require it
-- menubar.utils.terminal = terminal -- menubar.utils.terminal = terminal
@ -357,12 +356,12 @@ end, {
description = "focus right", description = "focus right",
group = "client" group = "client"
}), -- Menu }), -- Menu
awful.key({modkey}, "w", function() -- awful.key({modkey}, "w", function()
awful.util.mymainmenu:show() -- awful.util.mymainmenu:show()
end, { -- end, {
description = "show main menu", -- description = "show main menu",
group = "awesome" -- group = "awesome"
}), -- Layout manipulation -- }), -- Layout manipulation
awful.key({modkey, "Shift"}, "j", function() awful.key({modkey, "Shift"}, "j", function()
awful.client.swap.byidx(1) awful.client.swap.byidx(1)
end, { end, {
@ -539,7 +538,13 @@ end, {
-- description = "show weather", -- description = "show weather",
-- group = "widgets" -- group = "widgets"
-- }), -- }),
-- Screen brightness -- User programs
awful.key({modkey}, "w", function()
awful.spawn(browser)
end, {
description = "run browser",
group = "launcher"
}), -- Screen brightness
awful.key({}, "#233", function() awful.key({}, "#233", function()
os.execute("light -A 10") os.execute("light -A 10")
end, { end, {

View file

@ -31,8 +31,8 @@ theme.border_normal = "#252525"
theme.border_focus = "#7CA2EE" theme.border_focus = "#7CA2EE"
theme.tooltip_border_color = theme.fg_focus theme.tooltip_border_color = theme.fg_focus
theme.tooltip_border_width = theme.border_width theme.tooltip_border_width = theme.border_width
theme.menu_height = dpi(24) theme.menu_height = dpi(32)
theme.menu_width = dpi(140) theme.menu_width = dpi(300)
theme.awesome_icon = theme.icon_dir .. "/awesome.png" theme.awesome_icon = theme.icon_dir .. "/awesome.png"
theme.taglist_squares_sel = gears.surface.load_from_shape(dpi(3), dpi(30), gears.shape.rectangle, theme.fg_focus) theme.taglist_squares_sel = gears.surface.load_from_shape(dpi(3), dpi(30), gears.shape.rectangle, theme.fg_focus)
theme.taglist_squares_unsel = gears.surface.load_from_shape(dpi(3), dpi(30), gears.shape.rectangle, theme.bg_focus2) theme.taglist_squares_unsel = gears.surface.load_from_shape(dpi(3), dpi(30), gears.shape.rectangle, theme.bg_focus2)