readded udpated scripts directory

This commit is contained in:
tomit4 2022-06-09 12:59:03 -07:00
parent cd053a412a
commit f3117c81d9
84 changed files with 3210 additions and 0 deletions

22
scripts/dmwiki Executable file
View file

@ -0,0 +1,22 @@
#!/bin/sh
wikidir="/usr/share/doc/arch-wiki/html/en/"
wikidocs="$(find ${wikidir} -iname "*.html")"
browser="links"
term="st"
main() {
choice=$(printf '%s\n' "${wikidocs[@]}" | \
dmenu -l 20 -p 'Arch Wiki Docs: ') || exit 1
if [ "$choice" ]; then
$term -e $browser "$choice"
else
echo "Program terminated." && exit 0
fi
}
main