kota's memex

https://git.sr.ht/~kota/dprint

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 is executed by your shell (to launch the program).

#!/bin/sh
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. So, 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."