如何在 Linux 中为每个屏幕设置不同的壁纸
壁纸 桌面

> 
> 如果你想在 Ubuntu 18.04 或任何其他 Linux 发行版上使用 GNOME、MATE 或 Budgie 桌面环境在多个显示器上显示不同的壁纸，这个小工具将帮助你实现这一点。
> 
> 
> 


多显示器设置通常会在 Linux 上出现多个问题，但我不打算在本文中讨论这些问题。我有另外一篇关于 Linux 上多显示器支持的文章。


如果你使用多台显示器，也许你想为每台显示器设置不同的壁纸。我不确定其他 Linux 发行版和桌面环境，但是 [GNOME 桌面](https://www.gnome.org/) 的 Ubuntu 本身并不提供此功能。


不要烦恼！在本教程中，我将向你展示如何使用 GNOME 桌面环境为 Linux 发行版上的每个显示器设置不同的壁纸。


### 在 Ubuntu 18.04 和其他 Linux 发行版上为每个显示器设置不同的壁纸


![Different wallaper on each monitor in Ubuntu](/data/attachment/album/201812/03/102549hroplu5pol5cc2oq.jpg)


我将使用一个名为 [HydraPaper](https://github.com/GabMus/HydraPaper) 的小工具在不同的显示器上设置不同的背景。HydraPaper 是一个基于 [GTK](https://www.gtk.org/) 的应用，用于为 [GNOME 桌面环境](https://itsfoss.com/gnome-tricks-ubuntu/)中的每个显示器设置不同的背景。


它还支持 [MATE](https://mate-desktop.org/) 和 [Budgie](https://budgie-desktop.org/home/) 桌面环境。这意味着 Ubuntu MATE 和 [Ubuntu Budgie](https://itsfoss.com/ubuntu-budgie-18-review/) 用户也可以从这个应用中受益。


#### 使用 FlatPak 在 Linux 上安装 HydraPaper


使用 [FlatPak](https://flatpak.org) 可以轻松安装 HydraPaper。Ubuntu 18.04 已 经提供对 FlatPaks 的支持，所以你需要做的就是下载应用文件并双击在 GNOME 软件中心中打开它。


你可以参考这篇文章来了解如何在你的发行版[启用 FlatPak 支持](https://flatpak.org/setup/)。启用 FlatPak 支持后，只需从 [FlatHub](https://flathub.org) 下载并安装即可。


* [下载 HydraPaper](https://flathub.org/apps/details/org.gabmus.hydrapaper)


#### 使用 HydraPaper 在不同的显示器上设置不同的背景


安装完成后，只需在应用菜单中查找 HydraPaper 并启动应用。你将在此处看到“图片”文件夹中的图像，因为默认情况下，应用会从用户的“图片”文件夹中获取图像。


你可以添加自己的文件夹来保存壁纸。请注意，它不会递归地查找图像。如果你有嵌套文件夹，它将只显示顶部文件夹中的图像。


![Setting up different wallpaper for each monitor on Linux](/data/attachment/album/201812/03/102552urf5r9xxpc7pp9tt.jpg)


使用 HydraPaper 很简单。只需为每个显示器选择壁纸，然后单击顶部的应用按钮。你可以轻松地用 HDMI 标识来识别外部显示器。


![Setting up different wallpaper for each monitor on Linux](/data/attachment/album/201812/03/102553whrq91821x8tqroo.jpg)


你还可以将选定的壁纸添加到“收藏夹”以便快速访问。这样做会将“最喜欢的壁纸”从“壁纸”选项卡移动到“收藏夹”选项卡。


![Setting up different wallpaper for each monitor on Linux](/data/attachment/album/201812/03/102555cxeqt7bs9etxtat7.jpg)


你不需要在每次启动时启动 HydraPaper。为不同的显示器设置不同的壁纸后，设置将被保存，即使重新启动后你也会看到所选择的壁纸。这当然是预期的行为，但我想特别提一下。


HydraPaper 的一大缺点在于它的设计工作方式。你可以看到，HydraPaper 将你选择的壁纸拼接成一张图像并将其拉伸到屏幕上，给人的印象是每个显示器上都有不同的背景。当你移除外部显示器时，这将成为一个问题。


例如，当我尝试使用没有外接显示器的笔记本电脑时，它向我展示了这样的背景图像。


![Dual Monitor wallpaper HydraPaper](/data/attachment/album/201812/03/102556awvw76fw8c92xcgc.jpg)


很明显，这不是我所期望的。


#### 你喜欢它吗？


HydraPaper 使得在不同的显示器上设置不同的背景变得很方便。它支持超过两个显示器和不同的显示器方向。只有所需功能的简单界面使其成为那些总是使用双显示器的人的理想应用。


如何在 Linux 上为不同的显示器设置不同的壁纸？你认为 HydraPaper 是值得安装的应用吗？


请分享您的观点，另外如果你看到这篇文章，请在各种社交媒体渠道上分享，如 Twitter 和 [Reddit](https://www.reddit.com/r/LinuxUsersGroup/)。




---


via: <https://itsfoss.com/wallpaper-multi-monitor/>


作者：[Abhishek Prakash](https://itsfoss.com/author/abhishek/) 选题：[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
![Warp Terminal](/assets/images/warp-terminal.webp)


![Warp Terminal](/assets/images/warp-terminal.webp)

Multi-monitor setup often leads to multiple issues on Linux but I am not going to discuss those issues in this article. I have rather a positive article on multiple monitor support on Linux.

If you are using multiple monitors, perhaps you would like to set up a different wallpaper for each monitor. I am not sure about other Linux distributions and desktop environments, but Ubuntu with [GNOME desktop](https://www.gnome.org/?ref=itsfoss.com) doesn’t provide this functionality on its own.

Fret not! In this quick tutorial, I’ll show you how to set a different wallpaper for each monitor on Linux distributions.

## Setting up a different wallpaper for each monitor on Ubuntu

![Different wallaper on each monitor in Ubuntu](https://itsfoss.com/content/images/wordpress/2018/05/multi-monitor-wallpaper-setup-800x450.jpeg)

I am going to use a nifty tool called [HydraPaper](https://gitlab.com/gabmus/HydraPaper?ref=itsfoss.com) for setting different backgrounds on different monitors. HydraPaper is a [GTK](https://www.gtk.org/?ref=itsfoss.com) based application to span different backgrounds for each monitor in [GNOME desktop environment](https://itsfoss.com/gnome-tricks-ubuntu/).

[MATE](https://mate-desktop.org/?ref=itsfoss.com)and

[Budgie](https://budgie-desktop.org/home/?ref=itsfoss.com)desktop environments. Which means Ubuntu MATE and

[Ubuntu Budgie](https://itsfoss.com/ubuntu-budgie-18-review/)users can also benefit from this application.

### Features of HydraPaper

![hydrapaper folders](https://itsfoss.com/content/images/wordpress/2022/05/hydrapaper-folders.png)

HydraPaper lets you add your custom wallpaper collection, organize/select the folders you want, and pick wallpapers conveniently.

Some of the essential features include:

- Manager folder collection (toggle them in a single click as required).
- Pick a favorite wallpaper and add them to your favorite collection.
- Position the wallpaper as you prefer (zoom, fit with a black background/blur, center, and more)
- Ability to set a random wallpaper quickly from your collection, if that’s how you decide.
- Customize the wallpaper manager experience with dark mode, choose to save wallpaper separately, clear cache, etc.
- CLI support
- Single spanned wallpaper mode to apply across multi-monitors

![single span mode](https://itsfoss.com/content/images/wordpress/2022/05/single-span-mode.jpg)

It is pretty simple to use; you can pick and select wallpapers for different monitors or use the single spanned wallpaper mode from the options to apply one across multi-monitors.

![hydrapaper options](https://itsfoss.com/content/images/wordpress/2022/05/hydrapaper-options.jpg)

You get to choose/add/delete folders, adjust the position, add favorites, and apply the wallpaper for dark mode.

### Install HydraPaper on Linux using Flatpak

HydraPaper can be installed easily using [Flatpak](https://flatpak.org/?ref=itsfoss.com).

You can refer to this article to learn [how to enable FlatPak support](https://flatpak.org/setup/?ref=itsfoss.com) on your distribution. Once you have the FlatPak support enabled, just use this command to install it.

`flatpak install flathub org.gabmus.hydrapaper`


### Using HydraPaper for setting different background on different monitors

Once installed, just look for [HydraPaper](https://flathub.org/apps/org.gabmus.hydrapaper?ref=itsfoss.com) in the application menu and start the application. You’ll see images from your Pictures folder here because by default the application takes images from the Pictures folder of the user.

You can add your own folder(s) where you keep your wallpapers. Do note that it doesn’t find images recursively. If you have nested folders, it will only show images from the top folder.

![Setting up different wallpaper for each monitor on Linux](https://itsfoss.com/content/images/wordpress/2018/05/different-wallpaper-each-monitor-hydrapaper-2-800x631.jpeg)

Using HydraPaper is absolutely simple. Just select the wallpapers for each monitor and click on the apply button at the top. You can easily identify external monitor(s) termed with HDMI.

![Setting up different wallpaper for each monitor on Linux](https://itsfoss.com/content/images/wordpress/2018/05/different-wallpaper-each-monitor-hydrapaper-1.jpeg)

You can also add selected wallpapers to ‘Favorites’ for quick access. Doing this will move the ‘favorite wallpapers’ from Wallpapers tab to Favorites tab.

![Setting up different wallpaper for each monitor on Linux](https://itsfoss.com/content/images/wordpress/2018/05/different-wallpaper-each-monitor-hydrapaper-3.jpeg)

You may also set random wallpapers. You can also span the same wallpaper across all the monitors.

![hydrapaper options](https://itsfoss.com/content/images/wordpress/2022/05/hydrapaper-options.jpg)

**You don’t need to start HydraPaper at each boot**. Once you set a different wallpaper for different monitor, the settings are saved and you’ll see your chosen wallpapers even after restart. This would be expected behaviour of course but I thought I would mention the obvious.

**One big downside of HydraPaper** is in the way it is designed to work. You see, HydraPaper combines your selected wallpapers into one single image and stretches it across the screens giving an impression of having different background on each display. And this becomes an issue when you remove the external display.

For example, when I tried using my laptop without the external display, it showed me an background image like this.

![Dual Monitor wallpaper HydraPaper](https://itsfoss.com/content/images/wordpress/2018/05/hydra-paper-dual-monitor-800x450.jpeg)

Quite obviously, this is not what I would expect.

### Did you like it?

HydraPaper makes setting up different backgrounds on different monitors a painless task. It supports more than two monitors and monitors with different orientation. Simple interface with only the required features makes it an ideal application for those who always use dual monitors.

How do you set different wallpaper for different monitor on Linux? Do you think HydraPaper is an application worth installing?

Do share your views and if you find this article, please share it on various social media channels such as Twitter and [Reddit](https://www.reddit.com/r/LinuxUsersGroup/?ref=itsfoss.com).