Skip to content

Instantly share code, notes, and snippets.

@nicklasfrahm
Created November 23, 2024 09:10
Show Gist options
  • Save nicklasfrahm/515f3d1e6b9516655b047eb784e7e156 to your computer and use it in GitHub Desktop.
Save nicklasfrahm/515f3d1e6b9516655b047eb784e7e156 to your computer and use it in GitHub Desktop.
Macbuntu

Macbuntu

Macbuntu is a script to make Ubuntu look like macOS. At the courtesy of Microsoft Copilot.

#!/bin/bash
# Update and upgrade the system
sudo apt update && sudo apt upgrade -y
# Install necessary packages
sudo apt install gnome-tweaks wget git fonts-roboto gnome-shell-extensions -y
# Install macOS-like GTK theme
git clone https://github.com/vinceliuice/WhiteSur-gtk-theme.git
cd WhiteSur-gtk-theme
./install.sh
cd ..
# Install macOS-like icons
git clone https://github.com/vinceliuice/WhiteSur-icon-theme.git
cd WhiteSur-icon-theme
./install.sh
cd ..
# Install macOS-like cursor theme
git clone https://github.com/vinceliuice/WhiteSur-cursors.git
cd WhiteSur-cursors
./install.sh
cd ..
# Install macOS-like wallpaper
mkdir -p ~/Pictures/wallpapers
wget https://raw.githubusercontent.com/vinceliuice/WhiteSur-gtk-theme/master/src/Wallpaper/macOS.jpg -O ~/Pictures/wallpapers/macOS.jpg
# Apply the themes and icons using GNOME Tweaks
gsettings set org.gnome.desktop.interface gtk-theme "WhiteSur-light"
gsettings set org.gnome.desktop.interface icon-theme "WhiteSur"
gsettings set org.gnome.desktop.interface cursor-theme "WhiteSur-cursors"
gsettings set org.gnome.desktop.background picture-uri "file:///home/$USER/Pictures/wallpapers/macOS.jpg"
# Install Albert launcher
sudo add-apt-repository ppa:nilarimogard/webupd8 -y
sudo apt-get update
sudo apt-get install albert -y
# Apply Roboto font
gsettings set org.gnome.desktop.interface font-name "Roboto 11"
gsettings set org.gnome.desktop.interface document-font-name "Roboto 11"
gsettings set org.gnome.desktop.interface monospace-font-name "Roboto Mono 13"
gsettings set org.gnome.desktop.wm.preferences titlebar-font "Roboto Bold 11"
# Install and enable Dash to Dock
gnome-extensions enable [email protected]
gsettings set org.gnome.shell.extensions.dash-to-dock dock-position BOTTOM
gsettings set org.gnome.shell.extensions.dash-to-dock extend-height false
gsettings set org.gnome.shell.extensions.dash-to-dock transparency-mode FIXED
gsettings set org.gnome.shell.extensions.dash-to-dock background-opacity 0.8
# Launch Albert to finish the setup
echo "Albert launcher installed. You may need to configure it through its settings."
echo "All done! Your Ubuntu 24.04 should now look like macOS with Albert as your launcher, Roboto as your system font, and Dash to Dock. Enjoy!"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment