From 5b5ae17393f5a6a506308d4310caa64a02c5f714 Mon Sep 17 00:00:00 2001 From: Luca Capezzuto Date: Fri, 20 Aug 2021 10:55:29 +0200 Subject: [PATCH] rc.lua.template: move mymainmenu to awful.util; closes #290 --- rc.lua.template | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/rc.lua.template b/rc.lua.template index 5bfdfd0..155d273 100644 --- a/rc.lua.template +++ b/rc.lua.template @@ -186,7 +186,7 @@ local myawesomemenu = { { "Quit", function() awesome.quit() end }, } -local mymainmenu = freedesktop.menu.build { +awful.util.mymainmenu = freedesktop.menu.build { before = { { "Awesome", myawesomemenu, beautiful.awesome_icon }, -- other triads can be put here @@ -198,7 +198,7 @@ local mymainmenu = freedesktop.menu.build { } -- hide menu when mouse leaves it ---mymainmenu.wibox:connect_signal("mouse::leave", function() mymainmenu:hide() end) +--awful.util.mymainmenu.wibox:connect_signal("mouse::leave", function() awful.util.mymainmenu:hide() end) -- Set the Menubar terminal for applications that require it --menubar.utils.terminal = terminal @@ -240,7 +240,7 @@ awful.screen.connect_for_each_screen(function(s) beautiful.at_screen_connect(s) -- {{{ Mouse bindings root.buttons(mytable.join( - awful.button({ }, 3, function () mymainmenu:toggle() end), + awful.button({ }, 3, function () awful.util.mymainmenu:toggle() end), awful.button({ }, 4, awful.tag.viewnext), awful.button({ }, 5, awful.tag.viewprev) )) @@ -321,7 +321,7 @@ globalkeys = mytable.join( {description = "focus right", group = "client"}), -- Menu - awful.key({ modkey, }, "w", function () mymainmenu:show() end, + awful.key({ modkey, }, "w", function () awful.util.mymainmenu:show() end, {description = "show main menu", group = "awesome"}), -- Layout manipulation