在 18.04 中使用 Yaru Gnome Shell 主题

在 18.04 中使用 Yaru Gnome Shell 主题

Github 上的 Yaru repo 有一个 gnome-shell 文件夹

https://github.com/ubuntu/yaru/tree/master/gnome-shell

usr/share/themes我们可以通过或通过文件夹在 Ubuntu 18.04 上构建它并使用 Yaru Gnome Shell 主题.themes吗?

如果我把它弄复杂了,Yaru repo 有 gnome shell 主题文件夹,可以在 18.04 上运行吗?如果可以,请告诉我怎么做。谢谢。

答案1

链接https://github.com/ubuntu/yaru下面的引用中有一部分说“对于一般用途,不建议从源代码安装!”

在 Ubuntu 上使用 Yaru

Yaru 主题套件默认随 Ubuntu 18.10+ 一起安装!无需进一步操作即可使用它。

对于一般用途,不建议从源代码安装!通过 snap 安装使用 Ubuntu 18.04 (bionic beaver) 上的旧版 Yaru/Communitheme 版本

Note that for backward compatibility, we kept the name "communitheme" for bionic beaver. 

仅图标和声音更新将被推送到此版本的主题套件中。

这些步骤仅适用于 Ubuntu 18.04 (bionic beaver)!请勿在 18.10+ 安装上安装 snap!

按照以下步骤安装并启用 communitytheme。

Install the communitheme snap on 18.04 by installing communitheme in the Ubuntu Software Application or running snap install communitheme.

Restart your computer.

Click on your user, click on the gear icon and select the "Ubuntu with communitheme snap" session from the pop-up, and login.

Now Ubuntu is using the communitheme including the system, applications, icons, sounds and the cursor.

从源安装:

尝试使用实时 ISO 并运行 Ubuntu 18.04 的安装。在这两种情况下。观察到,要从源代码构建它,需要这些包。

meson sassc pkg-config libglib2.0-dev

因此,使用以下命令安装所需的包。

sudo apt install meson sassc pkg-config libglib2.0-dev

从此链接下载文件https://github.com/ubuntu/yaru/archive/master.zip

提取它。

在此处输入图片描述

在此处输入图片描述

yaru.sh现在在您的目录中创建一个名为以下内​​容的脚本$HOME

#!/bin/bash

cd $HOME/Downloads/yaru-master
mkdir xyz $HOME/YaruBuiltFromSource
meson setup --prefix=$HOME/YaruBuiltFromSource xyz
ninja -C xyz
ninja -C xyz install

$HOME使用以下命令从目录运行脚本

/bin/bash yaru.sh

$HOME/YaruBuiltFromSource该脚本在下面的目录中创建所需的主题,即 ICONS、CURSOR、GTK、SHELL、SOUND 等。

您可以根据您的选择(例如图标主题)将它们复制到$HOME/.icons$HOME/.local/share/icons类似/usr/share/icons地复制到其他主题

请注意,您需要对 Yaru shell 主题的符号链接进行一些技巧。

在此处输入图片描述

在此处输入图片描述

在此处输入图片描述

相关内容