rofi-menus

Crates.iorofi-menus
lib.rsrofi-menus
version0.1.2
sourcesrc
created_at2023-10-22 15:46:46.018925
updated_at2023-10-23 18:01:45.635553
descriptionSimple CLI app that runs nested rofi dmenus based on json files.
homepage
repositoryhttps://github.com/swip3798/rofi-nested-menus
max_upload_size
id1010639
size14,284
Christian Schweigel (swip3798)

documentation

README

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
Commit count: 10

cargo fmt