自定义你的 GNOME 桌面主题
GNOME

> 
> 使用“优化”和它的用户主题扩展来改变你的 Linux UI。
> 
> 
> 


![](/data/attachment/album/202009/06/110116kmufkkc31akwfp1w.jpg)


GNOME 是一个相当简单和精简的 Linux 图形用户界面（GUI），很多用户喜欢它的简约外观。虽然它基本上是开箱即用的，但你可以根据自己的喜好来定制 [GNOME](https://www.gnome.org/) 。有了 GNOME “优化” 和用户主题扩展，你可以改变顶部栏、窗口标题栏、图标、光标和许多其他 UI 选项的外观。


### 开始使用


在你改变你的 GNOME 主题之前，你必须安装 “<ruby> <a href="https://wiki.gnome.org/Apps/Tweaks">  优化 </a> <rt>  Tweaks </rt></ruby>” 并启用用户主题扩展。


#### 安装 GNOME “优化”


你可以在 GNOME “软件”中找到“优化”，只需点击一个按钮就可以快速安装。


![Install Tweaks in Software Center](/data/attachment/album/202009/06/110152sll71z1o2yq7hssh.png "Install Tweaks in Software Center")


如果你喜欢命令行，请使用你的软件包管理器。例如，在 Fedora 或 CentOS 上：



```
$ sudo dnf install gnome-tweaks

```

在 Debian 或类似的发行版：



```
$ sudo apt install gnome-tweaks

```

#### 启用用户主题


要启用用户主题扩展，启动“优化”并选择“<ruby> 扩展 <rt>  Extensions </rt></ruby>”。找到 “用户主题User themes”，点击滑块启用。


![Enable User Themes Extension](/data/attachment/album/202009/06/110158nsrad9xod4m6qzd6.png "Enable User Themes Extension")


### 获取主题


现在你已经完成了这些预先条件，你已经准备好寻找和下载一些主题了。一个寻找新主题的好网站是 [GNOME-Look.org](https://www.gnome-look.org)。


在页面的左侧有一个主题类别的列表。当你找到一个你想要的主题，你需要下载它。我直接把 `.tar` 文件下载到我的家目录下的 `.themes` 目录（你可能需要先创建这个目录）。



```
$ mkdir ~/.themes

```

如果你想让所有用户都能使用这个主题，请把它放在 `/usr/share/themes` 中。



```
$ tar xvf theme_archive.tar.xz

```

下载后，解压压缩包。你可以删除 `.tar.xz` 文件以节省一些磁盘空间。


### 应用主题


要应用你的新主题，在“优化”中进入“<ruby> 外观 <rt>  Appearance </rt></ruby>”。在这里，你可以为你的桌面的每个方面选择不同的选项。


![Apply a theme](/data/attachment/album/202009/06/110200hfaxeu7lqifxke7u.png "Apply a theme")


### 多样性是生活的调剂品


自从第一个图形界面面市以来，能够用不同的墙纸、颜色、字体等个性化电脑桌面一直是一个受欢迎的功能。GNOME “优化”和用户主题扩展可以在所有 GNU/Linux 操作系统上的 GNOME 桌面环境中实现这种自定义。而且开源社区还在持续提供广泛的主题、图标、字体和壁纸，任何人都可以下载、尝试和定制。


你最喜欢的 GNOME 主题是什么，你为什么喜欢它们？请在评论中分享。




---


via: <https://opensource.com/article/20/8/gnome-themes>


作者：[Alan Formy-Duval](https://opensource.com/users/alanfdoss) 选题：[lujun9972](https://github.com/lujun9972) 译者：[geekpi](https://github.com/geekpi) 校对：[wxy](https://github.com/wxy)


本文由 [LCTT](https://github.com/LCTT/TranslateProject) 原创编译，[Linux中国](https://linux.cn/) 荣誉推出


OK
GNOME is a fairly simple and streamlined Linux graphical user interface (GUI), and a lot of users appreciate its minimalist look. Although it's pretty basic out of the box, you can customize [GNOME](https://www.gnome.org/) to match your preferences. Thanks to GNOME Tweaks and the user themes extension, you can change the look and feel of the top bar, window title bars, icons, cursors, and many other UI options.

## Get started

Before you can change your GNOME theme, you have to install [Tweaks](https://wiki.gnome.org/Apps/Tweaks) and enable the user themes extension.

### Install GNOME Tweaks

You can find Tweaks in the GNOME Software Center, where you can install it quickly with just the click of a button.

![Install Tweaks in Software Center Install Tweaks in Software Center](https://opensource.com/sites/default/files/uploads/gnome-install_tweaks_gui.png)

(Alan Formy-Duval, CC BY-SA 4.0)

If you prefer the command line, use your package manager. For instance, on Fedora or CentOS:

`$ sudo dnf install gnome-tweaks`


On Debian or similar:

`$ sudo apt install gnome-tweaks`


### Enable user themes

To enable the user themes extension, launch Tweaks and select **Extensions**. Find **User themes** and click the slider to enable it.

![Enable User Themes Extension Enable User Themes Extension](https://opensource.com/sites/default/files/uploads/gnome-enable_user_theme_extension.png)

(Alan Formy-Duval, CC BY-SA 4.0)

## Get a theme

Now that you've completed those prerequisites, you're ready to find and download some themes. A great site to find new themes is [GNOME-Look.org](https://www.gnome-look.org).

There's a list of theme categories on the left-hand side of the page. Once you find a theme you want, you need to download it. I downloaded the `.tar`

file directly to the `.themes`

directory under my home directory (you may need to create the directory first):

`$ mkdir ~/.themes`


If you want all the machine's users to be able to use the theme, place it in `/usr/share/themes`

.

`$ tar xvf theme_archive.tar.xz`


Once you have downloaded the file, extract the archive. You can delete the `.tar.xz`

file to save some disk space.

## Apply a theme

To apply your new theme, go to the **Appearance** section in Tweaks. Here, you can select different options for each aspect of your desktop.

![Apply a theme Apply a theme](https://opensource.com/sites/default/files/uploads/gnome-apply_theme.png)

(Alan Formy-Duval, CC BY-SA 4.0)

## Variety is the spice of life


Being able to personalize a computer desktop with different wallpaper, colors, fonts, and more has been a popular feature since the first graphical interfaces hit the market. GNOME Tweaks and the user themes extension enable this customization on the GNOME desktop environment on all the GNU/Linux operating systems where it is available. And the open source community continues to provide a wide range of themes, icons, fonts, and wallpapers that anyone can download, play with, and customize.

What are your favorite GNOME themes, and why do you like them? Please share in the comments.

## 5 Comments