readded udpated scripts directory
This commit is contained in:
parent
cd053a412a
commit
f3117c81d9
84 changed files with 3210 additions and 0 deletions
22
scripts/dmwiki
Executable file
22
scripts/dmwiki
Executable 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
|
||||
Loading…
Add table
Add a link
Reference in a new issue