Advertisement
Iyanyan

macbuntu.sh

Nov 21st, 2019
519
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Bash 6.13 KB | None | 0 0
  1. #!/bin/bash
  2.  
  3. RED='\033[0;31m'
  4. GREEN='\033[0;32m'
  5. BROWN='\033[0;33m'
  6. BLUE='\033[0;34m'
  7. YELLOW='\033[1;33m'
  8. CYAN='\033[1;36m'
  9. NC='\033[0m' # No Color
  10.  
  11. clear
  12. echo -e "           ${BROWN}#####################################${NC}"
  13. echo -e "           ${BROWN}#      macOS Theme for Ubuntu       #${NC}"
  14. echo -e "           ${BROWN}#-----------------------------------#${NC}"
  15. echo -e "           ${BROWN}#  Author   : Iyan Yan              #${NC}"
  16. echo -e "           ${BROWN}#  Email    : admin@codeku.org      #${NC}"
  17. echo -e "           ${BROWN}#####################################${NC}"
  18.  
  19. #Install required packages
  20. echo -e "${CYAN}Starting  : ${NC}${YELLOW}Attempting to install Required Packages : Curl, Gnome Tweak Tool, GTK Clutter${NC}"
  21. xterm -e 'sh -c "echo Curl, Gnome Tweak Tool and GTK Clutter will be installed. Please enter your password.; sudo apt update; sudo apt install curl gnome-tweak-tool gir1.2-gtkclutter-1.0"'
  22. echo -e "${GREEN}Finished  : ${NC}${YELLOW}Installing Packages : Curl, Gnome Tweak Tool, GTK Clutter${NC}"
  23.  
  24. echo -e "${CYAN}Starting  : ${NC}${YELLOW}Downloading required files${NC}"
  25. cd ~/Downloads/
  26. curl -L -O https://www.dropbox.com/s/rga88t2i4n9mbxz/CustomizedPack.tar.xz
  27. echo -e "${GREEN}Finished  : ${NC}${YELLOW}Downloading required files${NC}"
  28. [ ! -d CustomizedPack ] && mkdir -p CustomizedPack
  29. tar xvf CustomizedPack.tar.xz -C CustomizedPack
  30. clear
  31. cd CustomizedPack
  32. [ ! -d ~/.themes ] && mkdir -p ~/.themes
  33. [ ! -d ~/Downloads/Apple-Darwin-For-Plymouth/darwin ] && mkdir -p ~/Downloads/Apple-Darwin-For-Plymouth/darwin
  34. [ ! -d ~/.icons ] && mkdir -p ~/.icons
  35. [ ! -d ~/.local/share/fonts ] && mkdir -p ~/.local/share/fonts
  36. [ ! -d ~/.local/share/gnome-shell/extensions ] && mkdir -p ~/.local/share/gnome-shell/extensions
  37.  
  38. #ls
  39.  
  40. echo -e "${GREEN}Copying Cursor Files${NC}"
  41. cp -r Cursor/* ~/.icons/
  42. echo -e "${GREEN}Copying Icon Files${NC}"
  43. cp -r Icons/* ~/.icons/
  44. echo -e "${GREEN}Copying Shell Files${NC}"
  45. cp -r Shell/* ~/.themes/
  46. echo -e "${GREEN}Copying Theme Files${NC}"
  47. cp -r Themes/* ~/.themes/
  48. cp -r Apple-Darwin-For-Plymouth/darwin/* ~/Downloads/Apple-Darwin-For-Plymouth/darwin/
  49. echo -e "${GREEN}Copying Fonts${NC}"
  50. cp -r Fonts/* ~/.local/share/fonts/
  51. echo -e "${GREEN}Copying Wallpapers${NC}"
  52. cp -r Wallpapers/* ~/Pictures/
  53.  
  54. #Install the required gnome extensions
  55. cd ~/Downloads/CustomizedPack/
  56. echo -e "${CYAN}Starting  : ${NC}${YELLOW}Installing required extensions${NC}"
  57. ./gnome-ext-install.sh install user-theme@gnome-shell-extensions.gcampax.github.com dash-to-dock@micxgx.gmail.com blyr@yozoon.dev.gmail.com netspeed@hedayaty.gmail.com
  58. clear
  59. echo -e "${GREEN}Finished  : ${NC}${YELLOW}User Theme, Blyr, Dash to Dock, Net Speed Monitor extensions are installed.${NC}"
  60.  
  61. #Changing UI
  62. ## Application Theme
  63. echo -e "${BLUE}Changing Theme${NC}"
  64. dconf write /org/gnome/desktop/interface/gtk-theme "'McOS-MJV'"
  65.  
  66. ## Cursor
  67. echo -e "${BLUE}Changing Cursor${NC}"
  68. dconf write /org/gnome/desktop/interface/cursor-theme "'El_Capitan_CursorsMODNew'"
  69.  
  70. ## Icons
  71. echo -e "${BLUE}Changing Icons${NC}"
  72. dconf write /org/gnome/desktop/interface/icon-theme "'MacRemix'"
  73.  
  74. ## Shell
  75. echo -e "${BLUE}Changing Shell${NC}"
  76. dconf write /org/gnome/shell/extensions/user-theme/name "'MacOS_HS'"
  77.  
  78. ## Wallpaper
  79. echo -e "${BLUE}Changing Wallpaper${NC}"
  80. dconf write /org/gnome/desktop/background/picture-uri "'file:///home/$USER/Pictures/macOS-mojave-Desert-5.jpg'"
  81. dconf write /org/gnome/desktop/background/picture-options "'zoom'"
  82.  
  83. ## Lock Screen Wallpaper
  84. echo -e "${BLUE}Changing Lock Screen Wallpaper${NC}"
  85. dconf write /org/gnome/desktop/screensaver/picture-uri "'file:///home/$USER/Pictures/macOS-mojave-Desert-5.jpg'"
  86. dconf write /org/gnome/desktop/screensaver/picture-options "'zoom'"
  87.  
  88. ## Show Desktop Icons
  89. echo -e "${BLUE}Enabling Desktop Icons${NC}"
  90. dconf write /org/gnome/desktop/background/show-desktop-icons "true"
  91.  
  92. ## Button Layout
  93. echo -e "${BLUE}Moving Title Buttons to Left${NC}"
  94. dconf write /org/gnome/desktop/wm/preferences/button-layout "'close,minimize,maximize:'"
  95.  
  96. ##### Dash To Dock
  97. ## Monitor Placement
  98. echo -e "${BLUE}Showing Dock on Primary Monitor Only${NC}"
  99. dconf write /org/gnome/shell/extensions/dash-to-dock/preferred-monitor "0"
  100.  
  101. ## Dock Placement
  102. echo -e "${BLUE}Changing Dock Position to Bottom${NC}"
  103. dconf write /org/gnome/shell/extensions/dash-to-dock/dock-position "'BOTTOM'"
  104.  
  105. ## Max Icon Size
  106. echo -e "${BLUE}Setting Max Icon Size 32${NC}"
  107. dconf write /org/gnome/shell/extensions/dash-to-dock/dash-max-icon-size "32"
  108.  
  109. ## Autohide
  110. echo -e "${BLUE}Enabling Dock Autohide${NC}"
  111. dconf write /org/gnome/shell/extensions/dash-to-dock/dock-fixed "false"
  112.  
  113. ## Show Launcher on Left
  114. echo -e "${BLUE}Showing App Launcher on Left${NC}"
  115. dconf write /org/gnome/shell/extensions/dash-to-dock/show-apps-at-top "true"
  116.  
  117. ## Mouse Scroll Action
  118. echo -e "${BLUE}Changing Mouse Scroll Action to Cycle Windows${NC}"
  119. dconf write /org/gnome/shell/extensions/dash-to-dock/scroll-action "'cycle-windows'"
  120.  
  121. ## Custom Dock Indicator
  122. echo -e "${BLUE}Changing Dock Indicator${NC}"
  123. dconf write /org/gnome/shell/extensions/dash-to-dock/custom-theme-running-dots "false"
  124. dconf write /org/gnome/shell/extensions/dash-to-dock/custom-theme-customize-running-dots "false"
  125.  
  126. ## Disable Custom Dock Shrink
  127. echo -e "${BLUE}Disabling Custom Dock Shrink${NC}"
  128. dconf write /org/gnome/shell/extensions/dash-to-dock/custom-theme-shrink "false"
  129.  
  130. ## Dock Transparency Mode
  131. echo -e "${BLUE}Changing Dock Transparency Mode${NC}"
  132. dconf write /org/gnome/shell/extensions/dash-to-dock/transparency-mode "'DEFAULT'"
  133.  
  134. echo -e "${RED}Removing Downloaded Unnecessary Files${NC}"
  135. cd ~/Downloads/
  136. rm -rf CustomizedPack
  137. rm CustomizedPack.tar.xz
  138.  
  139. echo -e "${YELLOW}Uninstalling Ubuntu Dock (It might be seen on lock screen)${NC}"
  140. xterm -e 'sh -c "echo Ubuntu dock will be uninstalled. Please enter your password.; sudo apt-get remove gnome-shell-extension-ubuntu-dock; sudo apt update"'
  141. echo -e "${CYAN}Theme Credit   : ${NC}${GREEN}paulxfce${NC}"
  142. echo -e "${CYAN}Shell Credit   : ${NC}${GREEN}unc926${NC}"
  143. echo -e "${CYAN}Cursor Credit  : ${NC}${GREEN}dcomim | krourke${NC}"
  144. echo -e "${CYAN}Icons Credit   : ${NC}${GREEN}krourke | umayanga | zayronXIO${NC}"
  145. echo -e "${GREEN}DONE. ENJOY ;)${NC}"
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement