55ed466023927b110a1cbc5c59aa2da6b915f794 — Dakota Walsh 1 year, 2 months ago b65e60d
improve usage in readme
1 files changed, 21 insertions(+), 4 deletions(-)

M README.md => README.md +21 -4
@@ 6,6 6,27 @@ Print specified values from desktop files to stdout.

`dprint [-v] [-d path] [-i key:val] [-o key]`

Print specified values from desktop files to stdout. Look, it’s hard to describe
okay? Here’s a picture of me using it with dmenu.


My launcher script pipes the output of dprint into dmenu to get a selection.
Then it passes that selection into dprint – with some options – and then the
output of that gets executed by your shell (to launch the program).

SELECTION=$(dprint | dmenu -i -l 8 "$@")
echo "Name:$SELECTION" | dprint -i - -o "StripExec" | ${SHELL:-"/bin/sh"} &

I wrote dprint because the default `dmenu_run` script just lists all the
programs in your `$PATH` _exactly_ as they’re named. There’s no easy way to
rename them or tweak launch options. For example, that “calculator” program in
the screenshot runs `st -t st-float -g 76x30 -e python`, and I renamed “ncmpcpp”
to just “music.”

## Building

Install the dependencies:

@@ 21,10 42,6 @@ Then compile dprint:

    # make install

## Screenshot


## License

GPL3 - See License for details.