Archlinux basic installation configuration scripts
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.

69 lines
1.7 KiB

  1. #!/usr/bin/env bash
  2. SDIR="$HOME/.config/polybar/panels/scripts"
  3. DIR="$HOME/.config/polybar/panels/menu"
  4. if [[ "$1" = "--budgie" ]]; then
  5. theme="budgie"
  6. elif [[ "$1" = "--deepin" ]]; then
  7. theme="deepin"
  8. elif [[ "$1" = "--elight" ]]; then
  9. theme="elementary"
  10. elif [[ "$1" = "--edark" ]]; then
  11. theme="elementary_dark"
  12. elif [[ "$1" = "--gnome" ]]; then
  13. theme="gnome"
  14. elif [[ "$1" = "--klight" ]]; then
  15. theme="kde"
  16. elif [[ "$1" = "--kdark" ]]; then
  17. theme="kde_dark"
  18. elif [[ "$1" = "--liri" ]]; then
  19. theme="liri"
  20. elif [[ "$1" = "--mint" ]]; then
  21. theme="mint"
  22. elif [[ "$1" = "--ugnome" ]]; then
  23. theme="ubuntu_gnome"
  24. elif [[ "$1" = "--unity" ]]; then
  25. theme="ubuntu_unity"
  26. elif [[ "$1" = "--xubuntu" ]]; then
  27. theme="xubuntu"
  28. elif [[ "$1" = "--zorin" ]]; then
  29. theme="zorin"
  30. else
  31. rofi -e "No theme specified."
  32. exit 1
  33. fi
  34. # Launch Rofi
  35. MENU="$(rofi -no-config -no-lazy-grab -sep "|" -dmenu -i -p '' \
  36. -theme $DIR/$theme/styles.rasi \
  37. <<< " Budgie| Deepin| Elementary| Elementary_Dark| Gnome| KDE|\
  38.  KDE_Dark| Liri| Mint| Ubuntu_gnome| Ubuntu_unity| Xubuntu| Zorin|")"
  39. case "$MENU" in
  40. *Budgie) "$SDIR"/styles.sh --budgie ;;
  41. *Deepin) "$SDIR"/styles.sh --deepin ;;
  42. *Elementary) "$SDIR"/styles.sh --elight ;;
  43. *Elementary_Dark) "$SDIR"/styles.sh --edark ;;
  44. *Gnome) "$SDIR"/styles.sh --gnome ;;
  45. *KDE) "$SDIR"/styles.sh --klight ;;
  46. *KDE_Dark) "$SDIR"/styles.sh --kdark ;;
  47. *Liri) "$SDIR"/styles.sh --liri ;;
  48. *Mint) "$SDIR"/styles.sh --mint ;;
  49. *Ubuntu_gnome) "$SDIR"/styles.sh --ugnome ;;
  50. *Ubuntu_unity) "$SDIR"/styles.sh --unity ;;
  51. *Xubuntu) "$SDIR"/styles.sh --xubuntu ;;
  52. *Zorin) "$SDIR"/styles.sh --zorin ;;
  53. esac