Ubuntu 22.04 仿 macOS 桌面改造指南
1. 目标
将 Ubuntu 22.04(GNOME)调整为接近 macOS 的视觉与交互风格,包括:
- WhiteSur GTK/Shell 主题
- WhiteSur 图标主题
- WhiteSur 光标主题
- 底部 Dock(类似 macOS)
2. 前置准备
bash
sudo apt update
sudo apt install -y git gnome-tweaks gnome-shell-extension-manager
3. 安装 WhiteSur GTK 主题
bash
cd ~
git clone https://ghfast.top/https://github.com/vinceliuice/WhiteSur-gtk-theme.git
cd WhiteSur-gtk-theme
./install.sh -t all
说明:
- 你之前执行
./install.sh -t all成功,说明 GTK 主题安装逻辑正常。 - 如需查看可选参数,执行:
bash
./install.sh --help
4. 安装 WhiteSur 图标主题
bash
cd ~
git clone https://ghfast.top/https://github.com/vinceliuice/WhiteSur-icon-theme.git
cd WhiteSur-icon-theme
./install.sh
注意:
WhiteSur-gtk-theme不支持-i all这种图标参数。- 图标必须在
WhiteSur-icon-theme仓库中单独安装。
5. 安装 WhiteSur 光标主题(可选)
bash
cd ~
git clone https://ghfast.top/https://github.com/vinceliuice/WhiteSur-cursors.git
cd WhiteSur-cursors
./install.sh
6. 安装并配置 Dock(macOS 风格)
- 打开
Extension Manager - 搜索并安装
Dash to Dock - 推荐设置:
- Position:
Bottom - 开启运行指示点(running indicators)
- 可按喜好启用智能隐藏(Intelligent autohide)
- Position:
7. 启用主题、图标、光标
打开 GNOME Tweaks(优化):
- 外观 -> 应用程序:选择
WhiteSur-* - 外观 -> 图标:选择
WhiteSur-* - 外观 -> 光标:选择
WhiteSur-*(如果已安装)
如果 Shell 主题不可选:
- 在
Extension Manager安装并启用User Themes - 回到 Tweaks 重新选择 Shell 主题
8. 常见问题排查
8.1 报错:Unrecognized installation option '-i'
原因:在 WhiteSur-gtk-theme 目录执行了图标参数。
处理:切换到 WhiteSur-icon-theme 仓库执行安装脚本。
8.2 主题安装后没变化
- 在 Tweaks 中手动切换对应主题
- 注销后重新登录桌面会话
8.3 扩展不生效
- 确认扩展已启用
- Wayland 下通常需要注销重登
9. 一键执行清单(按顺序)
bash
sudo apt update
sudo apt install -y git gnome-tweaks gnome-shell-extension-manager
cd ~
git clone https://ghfast.top/https://github.com/vinceliuice/WhiteSur-gtk-theme.git
cd WhiteSur-gtk-theme
./install.sh -t all
cd ~
git clone https://ghfast.top/https://github.com/vinceliuice/WhiteSur-icon-theme.git
cd WhiteSur-icon-theme
./install.sh
cd ~
git clone https://ghfast.top/https://github.com/vinceliuice/WhiteSur-cursors.git
cd WhiteSur-cursors
./install.sh
10. 参考
- GitHub 加速代理:https://ghfast.top