Contents
  1. 1. 桌面美化
    1. 1.1. 资源下载
    2. 1.2. 工具安装
    3. 1.3. 美化过程
  2. 2. 启动美化
  3. 3. 登录界面美化

by kowen 简书
话不多说先来几张图片镇镇楼,这里用的是仿Mac主题,喜欢其他的主题可以去gnome-look上下载

ubuntu18.04仿Mac1
ubuntu18.04仿Mac2
ubuntu18.04仿Mac3

桌面美化

资源下载

gnome3主题资源: https://www.gnome-look.org/

在此使用MacOs主题: https://www.gnome-look.org/s/Gnome/p/1013714/ ,选择file下载需要的主题、图标、字体和背景等资源。其中有多个主题(以Sierra开头),可以只下载需要的,带solid的是非透明主题。

主题解压后的目录放到/usr/share/themes/,图标放到/usr/share/icons/,背景放到/usr/share/backgrounds/

工具安装

1
2
3
4
sudo apt-get update
sudo apt-get install gnome-tweak-tool
sudo apt-get install gnome-shell-extensions
sudo apt-get install gnome-shell-extension-dashtodock

美化过程

  • 打开tweak,选择扩展,打开User themes选项
  • 选择外观,按以下图片进行设置
    如果shell上有感叹号,关闭tweak,按Alt+F2,输入r,执行后重新打开tweak再设置shell选项。
    Tweaks设置

  • 调整标题栏按钮位置
    选择窗口,滑到最下面,把放置改为左

  • 虽然桌面现在看起来很像mac了,但是dock这时依旧是长条状的,下面使用dash to dock插件使dock居中
    选择扩展,开启Dash to dock,点击设置图标,按图片进行设置
    Dash to Dock

启动美化

  • https://www.opendesktop.org/p/1154790/下载文件,解压备用
  • 把解压的Ubuntu-paw文件夹复制到/usr/share/plymouth/themes/
  • 备份并编辑文件

    1
    2
    sudo cp /etc/alternatives/default.plymouth /etc/alternatives/default.plymouth.bak
    sudo gedit /etc/alteernatives/default.plymouth
  • 最后两行按照以下方式修改为新加入的启动主题
    修改启动主题

登录界面美化

登录界面美化即是修改GDM (GNOME Display Manager,GDM)主题,可以使用 https://www.opendesktop.org/s/Gnome/p/1207015/ ,但我在试验中发现一些问题。所以只改了登录背景。

1
2
sudo cp /etc/alternatives/gdm3.css /etc/alternatives/gdm3.css.bak
sudo gedit /etc/alternatives/gdm3.css

找到lockDialogGroup并更改为以下内容:

1
2
3
4
5
6
#lockDialogGroup {
background: #2c001e url(file:///usr/share/backgrounds/HighSierra-wallpapers/Sierra.jpg);
background-repeat: no-repeat;
background-size: cover;
background-position: center;
}

锁定之后即可看到效果,以下是手机拍摄的。
锁屏

以上是对桌面、启动和锁屏界面的美化过程,还有字体、光标等美化感觉Ubuntu自带的已经非常不错了,没有深究,喜欢的快试试吧!

Contents
  1. 1. 桌面美化
    1. 1.1. 资源下载
    2. 1.2. 工具安装
    3. 1.3. 美化过程
  2. 2. 启动美化
  3. 3. 登录界面美化