如何在使用 Xfce 桌面环境的 Xubuntu 上安装主题
Xfce 主题

> 
> 这是一个循序渐进的初学者教程，展示了如何在 Xubuntu 和其他使用 Xfce 桌面环境的 Linux 发行版中安装主题和图标。
> 
> 
> 


![](/data/attachment/album/202110/29/103958hrv6vruu163zrtvr.png)


在 Xubuntu 上安装主题与 Ubuntu 或其他 Linux 发行版类似。你把主题文件放在 `~/.themes` 文件夹中，然后用一个工具来改变它。


然而，考虑到 Xubuntu 使用 [Xfce 桌面环境](https://xfce.org/)，一些选项或用户界面看起来会有所不同。这就是为什么我创建了这个教程，用适当的截图来展示步骤。


### 在 Xubuntu（Xfce）中安装新主题


开始前，你需要在主目录下创建一个 `.themes` 文件夹。注意文件夹名称前的点（`.`）。它很重要，可以从正常的视图中隐藏该文件夹。


要检查你是否已经有了它，你可以 [启用查看隐藏文件](https://itsfoss.com/hide-folders-and-show-hidden-files-in-ubuntu-beginner-trick/)，然后在它不存在的时候创建它。


![](/data/attachment/album/202110/29/104003n1opsjln1blpbj1d.png)


完成后，你需要下载一个主题。


1、你可以在 [Xfce-look](https://www.xfce-look.org/browse?cat=138&ord=latest) 门户网站上浏览 XFCE 主题。你所要做的就是下载存档（压缩）文件。


2、接下来，你需要 [解压缩文件](https://itsfoss.com/unzip-linux/)，如下面的截图所示。


![](/data/attachment/album/202110/29/104003y53gti52bo2pt2m2.png)


3、解压后，你会发现出现一个文件夹，你要复制它。


![](/data/attachment/album/202110/29/104004agawwgwgfvy712jy.png)


4、然后你要把这个文件夹粘贴到你最初创建的 `.themes` 目录中。


![](/data/attachment/album/202110/29/104004lm9xmderk91mam1e.png)


5、最后，你需要到外观设置中找到它，并选择它/应用它以使其生效。


![](/data/attachment/album/202110/29/104004pbnbzhrfonu0n0cz.png)


正如你在下面的截图中注意到的，新的主题已经被添加和应用：


![](/data/attachment/album/202110/29/104004tytgaaa0tmkbpje6.png)


除了主题之外，如果你需要定制你的 Xubuntu 桌面的图标，你需要在主目录中创建另一个 `.icons` 文件夹。


就像你安装主题一样，你将不得不遵循一个类似的过程来应用图标主题。


为了给你一个例子，让我在这里强调这些步骤：


### 在 Xubuntu（Xfce） 中添加图标主题


你可以浏览同样的 [xfce-look portal](https://www.xfce-look.org/browse?cat=132&ord=latest) 来寻找完整的图标主题。


或者，你可以寻找一些最好的 [可用于 Ubuntu 的图标主题](https://itsfoss.com/best-icon-themes-ubuntu-16-04/)，它们应该也适用于 Xubuntu。


一旦你找到了你喜欢的，就下载它，并按下面的方式解压。


![](/data/attachment/album/202110/29/104005j2yc9pz5cclcoolo.png)


接下来，你需要把这个文件夹复制并粘贴到 `.icons` 文件夹中。


![](/data/attachment/album/202110/29/104005cjv9jgzj68vf996x.png)


现在，你可以回到外观设置中，找到列在“图标”下的可用图标。


为了向你展示区别，**我把默认的 Xubuntu 主题改为 adwaita-dark**，你可以在这里看到：


![](/data/attachment/album/202110/29/104007sog1tb04e7xxb1xz.png)


**注意**：一些图标或主题文件可能包含有不同变体的嵌套文件夹。你会注意到它们并没有出现在外观工具中。如果是这种情况，直接将内部文件夹复制到 `~/.themes` 或 `~/.icons` 文件夹中。


### 总结


通过对风格和图标的调整，你可以 [定制你的 Xubuntu 体验](https://itsfoss.com/customize-xfce/) 以融入你的品味。


你是喜欢默认的 Xubuntu 外观还是使用不同的主题/图标来定制它的外观？请在评论中告诉我你的想法。




---


via: <https://itsfoss.com/install-themes-xfce-xubuntu/>


作者：[Ankush Das](https://itsfoss.com/author/ankush/) 选题：[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
*Brief: This is a step-by-step beginner’s tutorial to show how to install themes and icons in Xubuntu and other Linux distributions that use Xfce desktop environment.*

Installing themes on Xubuntu is similar to Ubuntu or any other Linux distribution. You put the theme files in the ~/.themes folder and then use a tool to change it.

However, some options or the user interface will look different considering Xubuntu uses the [Xfce desktop environment](https://xfce.org/). This is why I created this specific tutorial to show the steps with proper screenshots.

## Install new themes in Xubuntu (Xfce)

To get started, you need to create a **.themes **folder in the home directory. Mind the dot (.) before the folder name. It’s important and hides the folder from normal view.

To check if you already have it, you can [enable viewing hidden files](https://itsfoss.com/hide-folders-and-show-hidden-files-in-ubuntu-beginner-trick/) and then create it if it isn’t present.

![xubuntu hidden files](https://itsfoss.com/content/images/wordpress/2021/10/xubuntu-hidden-files.png)

Once done, you need to download a theme.

1. You can browse for XFCE themes on the [Xfce-look](https://www.xfce-look.org/browse?cat=138&ord=latest) portal. All you have to do is download the archive (compressed) file.

2. Next, you need to [extract the zip file](https://itsfoss.com/unzip-linux/), as shown in the screenshot below.

![extract xubuntu theme](https://itsfoss.com/content/images/wordpress/2021/10/extract-xubuntu-theme.png)

3. Once you extract it, you will notice a folder appear, and you will have to copy it.

![extracted xubuntu theme](https://itsfoss.com/content/images/wordpress/2021/10/extracted-xubuntu-theme.png)

4. You will have to then paste this folder into the **.themes** directory that you created initially.

![copy theme xubuntu](https://itsfoss.com/content/images/wordpress/2021/10/copy-theme-xubuntu.png)

5. Finally, you need to head to the Appearance setting to find it listed and select it/apply it for it to take effect.

![appearance xfce](https://itsfoss.com/content/images/wordpress/2021/10/appearance-xfce.png)

As you notice in the screenshot below, the new theme has been added and applied:

![xpro xubuntu theme](https://itsfoss.com/content/images/wordpress/2021/10/xpro-xubuntu-theme.png)

In addition to the theme, if you need to customize the icons of your Xubuntu desktop, you need to create another .icons folder in the home directory.

Like you installed the theme, you will have to follow a similar process to apply the icon themes.

To give you an example, let me highlight those steps here:

## Adding icon themes in Xubuntu (Xfce)

You can browse through the same [xfce-look portal](https://www.xfce-look.org/browse?cat=132&ord=latest) to look for complete icon themes.

Or, you can explore some of the best [icon themes available for Ubuntu](https://itsfoss.com/best-icon-themes-ubuntu-16-04/) that should work for Xubuntu as well.

Once you find the one you like, download it, and extract it as shown below.

![xubuntu icon theme](https://itsfoss.com/content/images/wordpress/2021/10/xubuntu-icon-theme.png)

Next, you will have to copy and paste the folder into the .**icons** folder.

![xubuntu icon theme selection](https://itsfoss.com/content/images/wordpress/2021/10/xubuntu-icon-theme-selection.png)

Now, you can head back to the Appearance settings and find the icon listed under the “Icons” available.

To show you the difference, **I changed the default Xubuntu theme to adwaita-dark**, as you can see here:

![xubuntu icon theme change](https://itsfoss.com/content/images/wordpress/2021/10/xubuntu-icon-theme-change.png)

**Note**: Some icon or theme files may contain nested folders with different variants in it. You’ll notice that they do not appear in the appearance tool. If that’s the case, copy the inner folder directly in ~/.themes or ~/.icons folder.

## Wrapping Up

With both the style and icons tweaked, you can [customize your Xubuntu experience](https://itsfoss.com/customize-xfce/) to blend in with your taste.

Do you prefer the default Xubuntu look or customize the look of it using different themes/icons? Let me know your thoughts in the comments.