From: martin f. krafft Date: Sun, 14 Jan 2018 02:37:09 +0000 (+1300) Subject: add freedesktop menu X-Git-Url: https://git.madduck.net/etc/awesome.git/commitdiff_plain/b953c498401e42f0dbf60de22463b6845fdf7ab3?ds=sidebyside;hp=--cc;pf=etc add freedesktop menu --- b953c498401e42f0dbf60de22463b6845fdf7ab3 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 })