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 req: sub-layout loading #458

Open
uther-p opened this issue Jul 23, 2023 · 0 comments
Open

Feature req: sub-layout loading #458

uther-p opened this issue Jul 23, 2023 · 0 comments

Comments

@uther-p
Copy link

uther-p commented Jul 23, 2023

the layout should be more dynamic by adding the following items.json directives:

  1. sub-menu:
    Allows you to specify another json file with another layout that gets used when the item is clicked
    e.g.:
  { 
    "type": "sub-menu",
    "icon": "...",           // icon
    "file": "menu.json",     // sub-menu json file
  }
  1. inline-menu:
    Like sub-menu, but the menu is expandable/collapsable within the current menu context.
  {
    "type": "sub-menu",
    "icon": "...",           // icon
    "file": "menu.json",     // sub-menu json file
    "width": 100,            // max expanded width (potentially also use %'s)
    "collapsed": true,       // true or false, collapsed by default
  }
  1. app-menu:
    Defines a menu layout to be used when a specific application is in focus, or maybe when the app's title bar matches an expression.
  {
     "type": "app-menu",
     "app-name": "Chrome",
     "file":  "chrome-menu.json"
  }

... these are just a few of my thoughts. I think making this possible is gonna require reworking the way configuration is loaded, to be more dynamic / extensible. As I don't see much progress being made to this project, however, I think maybe I may fork this project and do it myself. If so, and you are interested, I will keep you informed. Thanks for the starting point... provides me with a lot of how-to details I probably wouldn't have gotten around to digging into myself. ;)

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

No branches or pull requests

1 participant