Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

add new arg for menu.build: sub_menu #10

Merged
merged 1 commit into from
Oct 16, 2018
Merged

add new arg for menu.build: sub_menu #10

merged 1 commit into from
Oct 16, 2018

Conversation

Nimlar
Copy link

@Nimlar Nimlar commented Oct 6, 2018

Allow to set the freedesktop generated menu in its own entry.

usage example in rc.lua:

mymainmenu = freedesktop.menu.build({
        before = { menu_awesome },
        after =  { menu_terminal },
        sub_menu = "freedesktop"
    })

@Sorky
Copy link

Sorky commented Oct 9, 2018

Nice

Copy link

@Sorky Sorky left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Works perfectly - FWIW - I approve

Personally I'd adjust the commenting...

'-' -- Add items to menu
'+' -- Add menu item to hold the generated menu
' ' if sub_menu then
' ' result = {{sub_menu, result}}
' ' end
'+'
'+' -- Add items to menu

@lcpz lcpz merged commit 810f48c into lcpz:master Oct 16, 2018
@Nimlar
Copy link
Author

Nimlar commented Oct 18, 2018

Thanks.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants