在 Ubuntu 20.04 上安装 Adwaita shell 主题?

Ama*_*liw 6 gnome 20.04

我知道这个问题已经有人问过了,但是是针对 Ubuntu 18.10 的。

我找到了这个问题,但是当我试图找到时,/usr/share/gnome-shell/theme/gnome-shell.css我什么也没找到。所以此方法不再适用于最新版本的 ubuntu。

我想知道如何在带有 Gnome 3.36 的 Ubuntu 20.04 上安装 Adwaita shell 主题?

编辑:我通过/usr/share/gnome-shell/gnome-shell-theme.gresource使用这个脚本提取找到了解决方案,我得到了 gnome-shell.css 文件,我移到了该文件,/usr/share/themes/AnyNameOfYourChoice/gnome-shell/ 然后使用 gnome-tweaks 更改了 shell 主题

谢谢您的回答

小智 5

我已经gnome-session安装了软件包,因为我在 20.04 上使用普通 GNOME。它已更改为gnome-shell-theme.gresource. 位于/usr/share/gnome-shell

我设法gresource通过运行来提取

cd /usr/share/gnome-shell

gresource extract gnome-shell-theme.gresource /org/gnome/shell/theme/gnome-shell.css > ~/gnome-shell.css

sudo mkdir -p /usr/share/themes/new-theme/gnome-shell

sudo cp ~/gnome-shell.css /usr/share/themes/new-theme/gnome-shell
Run Code Online (Sandbox Code Playgroud)

确保用户主题扩展已启用。现在它应该出现在 GNOME Tweaks 中。

  • 另一个受支持的位置是“~/.themes/${theme-name}/gnome-shell/gnome-shell.css”。我更喜欢这样,因为它不需要 root 来修改。必须查看用户主题扩展的[源](https://gitlab.gnome.org/GNOME/gnome-shell-extensions/-/blob/master/extensions/user-theme/util.js#L6)想出解决办法。 (2认同)