From b953c498401e42f0dbf60de22463b6845fdf7ab3 Mon Sep 17 00:00:00 2001 From: "martin f. krafft" Date: Sun, 14 Jan 2018 15:37:09 +1300 Subject: [PATCH] add freedesktop menu --- .config/awesome/rc.lua | 13 +++++++++---- 1 file changed, 9 insertions(+), 4 deletions(-) diff --git a/.config/awesome/rc.lua b/.config/awesome/rc.lua index 75772d9..08cb946 100644 --- a/.config/awesome/rc.lua +++ b/.config/awesome/rc.lua @@ -14,6 +14,7 @@ local hotkeys_popup = require("awful.hotkeys_popup").widget local lain = require("lain") local dkjson = require("lain.util").dkjson local math = require("math") +local freedesktop = require("freedesktop") -- }}} -- {{{ Error handling @@ -178,10 +179,14 @@ myawesomemenu = { { "quit", awesome.quit } } -mymainmenu = awful.menu({ items = { { "awesome", myawesomemenu, beautiful.awesome_icon }, - { "open terminal", terminal } - } - }) +mymainmenu = freedesktop.menu.build({ + before = { + { "awesome", myawesomemenu, beautiful.awesome_icon }, + { "terminal", terminal }, + }, + after = { + } +}) mylauncher = awful.widget.launcher({ image = beautiful.awesome_icon, menu = mymainmenu }) -- 2.39.5