Ubuntu 22.04 仿 macOS 桌面改造指南

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 风格)

  1. 打开 Extension Manager
  2. 搜索并安装 Dash to Dock
  3. 推荐设置:
    • Position:Bottom
    • 开启运行指示点(running indicators)
    • 可按喜好启用智能隐藏(Intelligent autohide)

7. 启用主题、图标、光标

打开 GNOME Tweaks(优化)

  • 外观 -> 应用程序:选择 WhiteSur-*
  • 外观 -> 图标:选择 WhiteSur-*
  • 外观 -> 光标:选择 WhiteSur-*(如果已安装)

如果 Shell 主题不可选:

  1. Extension Manager 安装并启用 User Themes
  2. 回到 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. 参考

相关推荐
捧月华如2 小时前
TypeScript:给JavaScript加上类型安全
javascript·ubuntu·typescript
halazi1002 小时前
WSL 安装与 Ubuntu 24.04 配置使用指南
linux·运维·ubuntu·wsl
拾贰_C3 小时前
【Ubuntu | Nvidia | driver | installation | commend】
linux·运维·ubuntu
Hello.Reader3 小时前
Ubuntu 安装 Miniconda 完整从零开始把 Conda 环境搭起来
linux·ubuntu·conda
GL_Rain4 小时前
Ubuntu生成SSH私钥+连接CSDN GPU服务器(解决Permission denied问题)
服务器·ubuntu
Elivs.Xiang4 小时前
ubuntu20中安装Jenkins
linux·运维·ubuntu·jenkins
说再见再也见不到4 小时前
Ubuntu 将阿里云 OSS 对象存储挂载为本地硬盘(含开机自启)
linux·运维·服务器·ubuntu·阿里云·云计算
拄杖忙学轻声码4 小时前
Linux平台 CentOS、Ubuntu、Debian 系统安装 docker compose
ubuntu·docker·centos
Wmenghu4 小时前
Ubuntu 安装 RocketMQ 5.x + Dashboard 完整教程
linux·ubuntu·rocketmq