Create universally searchable Omarchy Menu
What do you need?
Walker / Elephant have support for a menu syntax (https://benz.gitbook.io/walker/customization/custom-menus) that allows for a much more robust and modular setup than we have currently in omarchy-menu.
The current structure is can make merges difficult at times but also requires manual navigation of each level.
In the latest version of Walker, @abenz1267 created a new feature called Sets that should allow us to change this entirely.
Todos
- [ ] Convert the existing menus to the Walker menu syntax
- [ ] Update the layout to support nerdicons as well
- [ ] Utilize Sets to group the menu and allow for universal search
- [ ] Refine the layout to ensure that there's an indicator of where an item came from to distinguish
Install > Style > ThemefromRemove > Style > Theme
Nerdicons Layout Add References
Add to layout:
<child>
<object class="GtkLabel" id="ItemImageFont">
<style>
<class name="item-image-text"></class>
</style>
<property name="width-chars">2</property>
</object>
</child>
Usage Example
name = "omarchycapture"
name_pretty = "Capture"
[[entries]]
text = "Screenshot"
submenu = "omarchyscreenshot"
icon = ""
[[entries]]
text = "Screenrecord"
submenu = "omarchyscreenrecord"
icon = ""
[[entries]]
text = "Color"
actions = { "pick" = "pkill hyprpicker || hyprpicker -a" }
icon = ""
I’m giving this a try — thanks @ryanrhughes for the well-documented enhancement. I’ll post here if I have anything useful to share.
I’m giving this a try — thanks @ryanrhughes for the well-documented enhancement. I’ll post here if I have anything useful to share.
feel free to hit me up on discord if you hit roadblocks/problems.
@RushiChaganti let me know if you need any help 🙂
Added in #2864
@ryanrhughes Could you please test this? If you run into any issues, feel free to ping me here or on Discord.
Thanks !
Just popping in to say that the trouble of distinguishing between Install > Style > Theme and Remove > Style > Theme is rooted in sticking with the current menu’s structure.
It might be better to reformat the structure to give more specific names for the actions that are performed. (e.g Style > Theme > Remove Theme, or simply Style > Remove Theme).
Just a thought.
Closing as fixed, resolved, or superseded by the current Quattro implementation based on the open-issue review.