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

[feature request] Global Menu Option to allow collapsed menu items #99

Open
skela opened this issue Sep 3, 2022 · 1 comment
Open
Assignees
Labels
enhancement New feature or request

Comments

@skela
Copy link

skela commented Sep 3, 2022

I think the GlobalMenu is amazing, frankly I don't understand why its not part of Qtile proper, since it makes such a massive difference in look and feel for the window management, anyway thats besides the point.

Today if you have Global Menu in your bar, and you have have a program active, that exports its menu out via dbus, the menu items show up in the bar where you placed the widget. All good.

I propose as a non-default option, called "collapsed root" (no idea what to call this), when it is enabled in the Global Menu, instead of showing the menu items directly in the bar, it shows the name of the Active application. When you press the name of the application, the items that would previously be shown in the bar horizontally (File , Edit , etc) show up vertically after pressing the application name in the bar.

Keyboard navigation shortcuts (to activate and navigate the menu might be easier too that way), although keyboard navigation shortcuts would be handy as a feature for both the current way of displaying a global menu, and this alternative way to show it.

Keep up the excellent work, ive been meaning to see if can help figure out why things like Inkscape, Gimp, Firefox and Thunderbird dont work with the global menu (i suppose they either dont use dbus, or they export via dbus in a weird way), but life keeps happening so.

@elParaguayo
Copy link
Owner

I think the GlobalMenu is amazing, frankly I don't understand why its not part of Qtile proper, since it makes such a massive difference in look and feel for the window management, anyway thats besides the point.

Unfortunately, the widget depends on my popup toolkit. That's not core functionality for a window manager and it's too much code to ask the other devs to help maintain. So... it's never going to make the main repo.

Today if you have Global Menu in your bar, and you have have a program active, that exports its menu out via dbus, the menu items show up in the bar where you placed the widget. All good.

I propose as a non-default option, called "collapsed root" (no idea what to call this), when it is enabled in the Global Menu, instead of showing the menu items directly in the bar, it shows the name of the Active application. When you press the name of the application, the items that would previously be shown in the bar horizontally (File , Edit , etc) show up vertically after pressing the application name in the bar.

Yeah, the idea makes sense. It's definitely doable. I've got a few things on but can add to the list.

Keyboard navigation shortcuts (to activate and navigate the menu might be easier too that way), although keyboard navigation shortcuts would be handy as a feature for both the current way of displaying a global menu, and this alternative way to show it.

Basic keyboard navigation for menus is doable. Shortcuts... I doubt I'll implement that myself but no objections if someone submits a PR at some stage.

Keep up the excellent work, ive been meaning to see if can help figure out why things like Inkscape, Gimp, Firefox and Thunderbird dont work with the global menu (i suppose they either dont use dbus, or they export via dbus in a weird way), but life keeps happening so.

They don't use the same specification. Inkscape does seem to have some sort of menu on dbus but it's not standard and is incompatible with the widget. Gimp ad Firefox don't seem to have menus on dbus.

@elParaguayo elParaguayo self-assigned this Sep 4, 2022
@elParaguayo elParaguayo added the enhancement New feature or request label Sep 4, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants