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.

88 lines
1.5 KiB

  1. #!/usr/bin/env bash
  2. DIR="$HOME/.config/polybar/panels"
  3. change_panel() {
  4. # replace config with selected panel
  5. cat "$DIR"/panel/"${panel}.ini" > "$DIR"/config.ini
  6. # Change wallpaper
  7. feh --bg-fill "$DIR"/wallpapers/"$bg"
  8. # Restarting polybar
  9. polybar-msg cmd restart
  10. }
  11. if [[ "$1" = "--budgie" ]]; then
  12. panel="budgie"
  13. bg="budgie.jpg"
  14. change_panel
  15. elif [[ "$1" = "--deepin" ]]; then
  16. panel="deepin"
  17. bg="deepin.jpg"
  18. change_panel
  19. elif [[ "$1" = "--elight" ]]; then
  20. panel="elementary"
  21. bg="elementary.jpg"
  22. change_panel
  23. elif [[ "$1" = "--edark" ]]; then
  24. panel="elementary_dark"
  25. bg="elementary_2.jpg"
  26. change_panel
  27. elif [[ "$1" = "--gnome" ]]; then
  28. panel="gnome"
  29. bg="gnome.jpg"
  30. change_panel
  31. elif [[ "$1" = "--klight" ]]; then
  32. panel="kde"
  33. bg="kde.jpg"
  34. change_panel
  35. elif [[ "$1" = "--kdark" ]]; then
  36. panel="kde_dark"
  37. bg="kde_2.jpg"
  38. change_panel
  39. elif [[ "$1" = "--liri" ]]; then
  40. panel="liri"
  41. bg="liri.png"
  42. change_panel
  43. elif [[ "$1" = "--mint" ]]; then
  44. panel="mint"
  45. bg="mint.jpg"
  46. change_panel
  47. elif [[ "$1" = "--ugnome" ]]; then
  48. panel="ubuntu_gnome"
  49. bg="ubuntu.jpg"
  50. change_panel
  51. elif [[ "$1" = "--unity" ]]; then
  52. panel="ubuntu_unity"
  53. bg="ubuntu.jpg"
  54. change_panel
  55. elif [[ "$1" = "--xubuntu" ]]; then
  56. panel="xubuntu"
  57. bg="xubuntu.png"
  58. change_panel
  59. elif [[ "$1" = "--zorin" ]]; then
  60. panel="zorin"
  61. bg="zorin.png"
  62. change_panel
  63. else
  64. cat <<- _EOF_
  65. No option specified, Available options:
  66. --budgie --deepin --elight --edark --gnome --klight
  67. --kdark --liri --mint --ugnome --unity --xubuntu
  68. --zorin
  69. _EOF_
  70. fi