lcpz / awesome-freedesktop

Freedesktop.org menu and desktop icons support for Awesome WM
GNU General Public License v2.0
129 stars 25 forks source link

added new arg for menu.build: skip_items #3

Closed ruslansin closed 7 years ago

ruslansin commented 7 years ago

Added a new feature to ignore unnecessary items in the menu list. Example:

local menu = freedesktop.menu.build({
    icon_size = beautiful.menu_height or 16,
    before = {
        { "Awesome", myawesomemenu, beautiful.awesome_icon },
    },
    after = {
        { "Open terminal", terminal },
    },
    skip_items = { "Avahi", "urxvt" }
})