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.

32 lines
1.0 KiB

  1. #!/usr/bin/env bash
  2. FILE="$HOME/.config/polybar/shapes/glyphs.ini"
  3. # Replace Glyphs
  4. change_style() {
  5. sed -i -e "s/gleft = .*/gleft = $1/g" $FILE
  6. sed -i -e "s/gright = .*/gright = $2/g" $FILE
  7. polybar-msg cmd restart
  8. }
  9. # Launch Rofi
  10. MENU="$(rofi -no-config -no-lazy-grab -sep "|" -dmenu -i -p '' \
  11. -theme $HOME/.config/polybar/shapes/scripts/rofi/styles.rasi \
  12. <<< "♥ Style-1|♥ Style-2|♥ Style-3|♥ Style-4|♥ Style-5|♥ Style-6|♥ Style-7|♥ Style-8|♥ Style-9|♥ Style-10|♥ Style-11|♥ Style-12|")"
  13. case "$MENU" in
  14. ## Light Colors
  15. *Style-1) change_style   ;;
  16. *Style-2) change_style   ;;
  17. *Style-3) change_style   ;;
  18. *Style-4) change_style   ;;
  19. *Style-5) change_style   ;;
  20. *Style-6) change_style   ;;
  21. *Style-7) change_style   ;;
  22. *Style-8) change_style   ;;
  23. *Style-9) change_style   ;;
  24. *Style-10) change_style   ;;
  25. *Style-11) change_style   ;;
  26. *Style-12) change_style   ;;
  27. esac