Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/xlucn/dmenu_drun

Launching desktop applications with dmenu
https://github.com/xlucn/dmenu_drun

Last synced: about 1 month ago
JSON representation

Launching desktop applications with dmenu

Awesome Lists containing this project

README

        

# dmenu_drun

As you can guess from the name, this script is `dmenu_run` counter-part for desktop applications, the `drun` is borrowed from `rofi`'s modi name.

## Features

- Fast enough loading.
- Options to show various information (see usage). This can help matching more info.
- You can customize `dmenu` command as you like.
- If using `rofi -dmenu` as `dmenu` replacement, it will show icons! However, that seems just like `rofi -show drun`. Why not reinvent some wheels, right?
- Considers lots of freedesktop specifications.

## Usage

```
usage: dmenu_drun [-hcCegkNxX] [-d dmenu_cmd] [-t terminal]

options:
-h, --help show this help message and exit
-c, --categories Show main category names
-C, --all-categories Show all category names
-d dmenu_cmd, --dmenu dmenu_cmd
Customize dmenu command, default is dmenu -i -l 10 -p drun
-e, --xdg-de Show apps despite only for specific desktop environments
-g, --generic-name Show generic name for apps
-k, --keywords Show keywords
-N, --dry-run Do not run app, output to stdout
-t terminal, --terminal terminal
Terminal emulator to use, default is xterm
-x, --executable Show executable name
-X, --fullcmd Show command line
```

Note: all unknown arguments (not listed above) are passed to `dmenu`, so instead of specify `dmenu_drun -d "dmenu -p prompt"`, you can use `dmenu_drun -p prompt` directly.

TODO:
- Parse .menu and .directory files
- tabulate output for dmenu