#!/bin/sh
. $HOME/.bin/_config

SEL=$(man -k any= | $DMENU_CMD -l 10 -p "Man")

[ -z "$SEL" ] && exit 0

N=$(echo "$SEL" | cut -d"(" -f2 | cut -d")" -f1)
M=$(echo "$SEL" | cut -d"(" -f1 | cut -d"," -f1)

sterm -e man -s $N $M
