websitemenu 676 B

123456789101112131415161718192021
  1. #!/bin/sh
  2. websitemenu() {
  3. options=" artixlinux.org\n forum.artixlinux.org\n discuss.grapheneos.org\n openbsd.org\n suckless.org"
  4. selected=$(echo "$options" | dmenu -i -p "Website:" -l 10 )
  5. if [ "$selected" = " artixlinux.org" ]; then
  6. $BROWSER https://artixlinux.org
  7. elif [ "$selected" = " forum.artixlinux.org" ]; then
  8. $BROWSER https://forum.artixlinux.org
  9. elif [ "$selected" = " discuss.grapheneos.org" ]; then
  10. $BROWSER https://discuss.grapheneos.org
  11. elif [ "$selected" = " openbsd.org" ]; then
  12. $BROWSER https://openbsd.org
  13. elif [ "$selected" = " suckless.org" ]; then
  14. $BROWSER https://suckless.org
  15. return
  16. fi
  17. }
  18. websitemenu