dmenu-archwiki (305B)
1 #!/bin/sh 2 # Install: arch-wiki-doc 3 wikipath="/usr/share/doc/arch-wiki/html/en" 4 wikimenu () { 5 for file in "$wikipath"/*; do 6 [ -f "$file" ] && printf '%s\n' "${file##*/}" 7 done 8 } 9 wikipage="$(wikimenu | dmenu -i -l 20 -p "Choose Wiki:")" 10 [ -z "$wikipage" ] || "${BROWSER:-xdg-open}" "$wikipath/$wikipage"