Another copy of my dotfiles. Because I don't completely trust GitHub.
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

14 lines
378 B

  1. #!/bin/sh
  2. LANGUAGE=en
  3. BROWSER=surf
  4. entries=$(find "/usr/share/doc/arch-wiki/html/$LANGUAGE" -type f | sed -n "s|/usr/share/doc/arch-wiki/html/$LANGUAGE/||p" | sed -n "s/\.html$//p")
  5. selection=$(echo "$entries" | sort | dmenu -i -l 6 -p "Select Arch Wiki Page: ")
  6. if [ "$selection" = "" ]; then
  7. exit 0
  8. fi
  9. $BROWSER "/usr/share/doc/arch-wiki/html/$LANGUAGE/$selection.html"