The purpose of this small script is to parse a .menu file (XDG / FreeDesktop.org compliance) and offer a main menu with submenu/categories to start an application using dmenu.
(Made and tested only on Kali 2016.1 64-bit, but probably works with any .menu file)
- dmenu
- bash 4+
- sed, head, tail, gawk, grep, tr, echo, find :P
There is j4-dmenu-desktop and a lot of other projects who parses .desktop files, but I couldn't find one that read .menu and .directory files, and generate a xdg menu like a DE normally does.
I use a tiling window manager (bspwm and occasionally i3wm), so this is necessary for me because sometimes I don't remember the name of a specific tool on kali.
- Replace/change dmenu and it's args (rofi, or a spin of dmenu or anything similar)
- Configure the path of .menu file
- Configure the path of .desktop files associated with categories/submenus listed on .menu file
- Create exception list of categories/submenus
- Configure a prefix char for categories/submenus (Suggestion: Use a fontAwesome char)
- Specify a terminal emulation to launch the app chosen.