summaryrefslogtreecommitdiff
path: root/ar/.local/bin/dmenuman
diff options
context:
space:
mode:
Diffstat (limited to 'ar/.local/bin/dmenuman')
-rwxr-xr-xar/.local/bin/dmenuman3
1 files changed, 1 insertions, 2 deletions
diff --git a/ar/.local/bin/dmenuman b/ar/.local/bin/dmenuman
index d571e60..6da7501 100755
--- a/ar/.local/bin/dmenuman
+++ b/ar/.local/bin/dmenuman
@@ -1,5 +1,4 @@
#!/bin/sh
-cmd=$(echo | dmenu -p "Enter command for man page:")
-
+cmd="$(man -k . | dmenu -i -l 20 -p "Select Program " | cut -d" " -f1)"
[ -n "$cmd" ] && man_path=$(man -w "$cmd" 2>/dev/null) && [ -n "$man_path" ] && setsid -f "${TERMINAL:-st}" -e man "$cmd"