3 releases
0.1.2 | Oct 23, 2023 |
---|---|
0.1.1 | Oct 22, 2023 |
0.1.0 | Oct 22, 2023 |
#7 in #rofi
6KB
93 lines
rofi-nested-menus
This simple CLI tool will show rofi dmenus, even nested ones based on simple JSON files.
Usage
Just create a json file like this:
{
"Power Menu": {
"shutdown": "shutdown now",
"reboot": "reboot now"
},
"Websites": {
"github": "firefox --new-tab github.com",
"crates.io": "firefox --new-tab crates.io"
}
}
Then call rofi-menus:
rofi-menus menu.json
# If you which to use a custom theme:
rofi-menus -t custom-theme.rasi menu.json
Installation
For Debian/Ubuntu distributions you can download the deb
package from the latest Release.
For other distributions, kindly compile it from source. For this, install rustup and cargo (see here). Afterwards simply execute:
cargo install rofi-menus
Dependencies
~1.3–1.9MB
~35K SLoC