使用 GDM 设置来自定义 GNOME 中的登录屏幕
GDM GNOME
![](/data/attachment/album/202401/23/111959p1n47oww7wu7f1t4.jpg)



> 
> 没错，即使是 GNOME 登录屏幕也可以自定义。这里有一个方便的实用工具，可以让事情变得更简单。
> 
> 
> 


从停靠区到 GRUB 屏幕，GNOME 都可以根据你的喜好进行定制。


登录界面也在此列，因为一款名为 “<ruby> GDM 设置 <rt>  GDM Settings </rt></ruby>”的新工具可让你更改 GNOME 登录界面的外观并调整其功能。


你可以更改壁纸、主题、图标、时间格式、顶部面板项目等。你还可以在登录界面启用轻击功能（我喜欢这个）。


在本教程中，你将了解安装此工具的步骤以及如何使用它来更改 GDM 登录屏幕的各个方面。


不用说，你必须使用 GNOME 桌面环境和 GDM 显示管理器才能按照此处的说明进行操作。



> 
> ? 以这种方式使用设置可能会产生问题。请使用 Timeshift 备份系统设置。如果你容易手忙脚乱，不喜欢排除故障，这篇文章就不适合你。
> 
> 
> 


### 使用 GDM 设置工具进行调整


让我们首先看看你可以使用这个很棒的程序进行哪些更改。


#### 1、更改 shell 主题、图标和壁纸


你可以更改登录屏幕的主题、图标和壁纸。这是一个例子。


![](/data/attachment/album/202401/23/112244n1dddvnshv5eyi5j.png)


要更改主题，你应该先下载它。可以从 [GNOME Look 网站](https://www.gnome-look.org/browse/) 获取一个。


接下来，确保主题位于 `/usr/share/themes` 中。存储在 `~/.themes` 中的主题对 GDM 设置应用是不可见的。


在 GDM 设置应用中，转到 “<ruby> 外观 <rt>  Appearance </rt></ruby>” 选项卡并选择 “<ruby> 主题 <rt>  Themes </rt></ruby>”（Shell/图标/光标）。


![GDM 主题设置](/data/attachment/album/202401/23/112058hfrocxvk3vifjxpi.png)


如果要设置壁纸，请将 “<ruby> 背景 <rt>  Background </rt></ruby>” 更改为 “<ruby> 图像 <rt>  Image </rt></ruby>”，然后从文件浏览器浏览图片。


![更换壁纸](/data/attachment/album/202401/23/112058l3ly3855v88l9039.png)


完成后，单击 “<ruby> 应用 <rt>  Apply </rt></ruby>”。这将要求输入密码。请在出现提示时提供。


你将收到注销通知以应用更改。注销后，更改将可见。


![注销提示](/data/attachment/album/202401/23/112059cwqgxqx81ftgxgpz.png)



> 
> ? 你可以更改所有设置然后单击“应用”，或者每次设置后单击“应用”。如果按“应用”，则会提示你注销，每次都需要重新登录并再次打开该设置应用。
> 
> 
> 


#### 2、更改字体


在更改字体之前，你需要为所有用户在系统上安装该字体。


为了确保这一点，请将下载的自定义字体文件粘贴到 `/usr/local/share/fonts`，然后使用以下命令创建字体缓存：



```
fc-cache -f -v

```

现在，打开 GDM 设置并转到“<ruby> 字体 <rt>  Fonts </rt></ruby>”选项卡。在那里，你可以设置字体、抗锯齿设置等。


![更改字体设置](/data/attachment/album/202401/23/112059tme54o13j5ec5o3k.png)


你可以看到新字体现已设置为你的登录屏幕。


![自定义字体](/data/attachment/album/202401/23/112059nuujtoavfe22ofjp.png)


#### 3、更改顶部面板的颜色


要更改顶部面板颜色，请转到侧栏中的 “<ruby> 顶部栏 <rt>  Top Bar </rt></ruby>” 选项。在 “<ruby> 调整 <rt>  Tweaks </rt></ruby>” 下，启用 “<ruby> 更改背景颜色 <rt>  Change Background Color </rt></ruby>” 按钮，然后设置所需的颜色。


![更改顶部面板颜色设置](/data/attachment/album/202401/23/112100juis22sg6w2bnzee.png)


将顶部栏的文本颜色更改为适合你选择的背景的颜色也同样重要。


![更改顶栏颜色](/data/attachment/album/202401/23/112100oz7ulec0le9mezqq.png)


#### 4、更改时间显示格式


使用下拉菜单将时钟更改为 24 小时或 12 小时格式。


![更改时间显示格式设置](/data/attachment/album/202401/23/112101xxr3rrz3e3abke6f.png)


此外，你可以通过切换相应的按钮使秒在顶部栏上可见。


![顶栏显示秒](/data/attachment/album/202401/23/112102zss93r3tqeqrrzip.png)


#### 5、启用登录屏幕轻击


在大多数发行版中，这是默认行为。即使在系统中启用了轻击，GNOME 登录界面也需要使用鼠标左键点击。


要更改此设置，请转到鼠标和触摸板部分并启用 “<ruby> 轻击 <rt>  Tap to Click </rt></ruby>” 按钮。


![启用屏幕点击](/data/attachment/album/202401/23/112102w3qtyt2ztatjb4ii.png)


在同一菜单上，你可以选择调整鼠标光标大小（如果你觉得它很小）。


![更改鼠标光标大小](/data/attachment/album/202401/23/112102e3ses7epqipekshs.png)


#### 6、启用夜灯


你可以为 GDM 启用预定的夜灯。


转到 “<ruby> 显示 <rt>  Display </rt></ruby>”，打开 “<ruby> 夜灯 <rt>  Night Light </rt></ruby>” 按钮。现在，安排日落到日出或你选择的方便时间。


![启用夜灯](/data/attachment/album/202401/23/112103zplledzw8u8778bw.png)


#### 7、添加徽标和欢迎消息


转到 “<ruby> 登录屏幕 <rt>  Login Screen </rt></ruby>” 选项卡，然后启用 “<ruby> 启用徽标 <rt>  Enable Logo </rt></ruby>” 按钮。这将为你提供一个浏览图像的按钮。


![添加 logo](/data/attachment/album/202401/23/112104g9pssv9hgg3dd9lr.png)


选择图像并按 “<ruby> 应用 <rt>  Apply </rt></ruby>”。



> 
> ? 在我的系统显示器上，尺寸高达 128×128 像素的图像看起来是可以接受的，超出这个尺寸对我来说看起来很大。因此，请相应地选择尺寸。
> 
> 
> 


应用图像后，要设置欢迎消息，请启用欢迎消息按钮，然后添加你想要显示的文本。


![添加欢迎信息](/data/attachment/album/202401/23/112104vygmfabfgcngnpno.png)


当你选择用户输入密码时，将显示该消息。


![登录屏幕欢迎消息](/data/attachment/album/202401/23/112105aubju6f88nnzmp5u.png)


#### 8、导出和导入设置


如果你想在其他系统上应用相同的设置，你可以导出设置并将其导入到运行 GDM 设置工具的其他系统上。


单击左上角的菜单，然后选择 “<ruby> 导出到文件 <rt>  Export to file </rt></ruby>”。


![导出到文件](/data/attachment/album/202401/23/112105ssr7rf3kwpeaa2of.png)


将文件命名为 “.ini” 并将其保存在安全的地方。你可以稍后导入。


![命名文件](/data/attachment/album/202401/23/112106mzg9qq78xyeq9dzb.png)


#### 9、重置所有设置


不喜欢你所做的更改？ 有一个简单的方法可以恢复默认值。


要重置调整，请单击左上角的菜单并选择 “<ruby> 重置设置 <rt>  Reset settings </rt></ruby>”。


![重置设置](/data/attachment/album/202401/23/112106jkr2hvbuujd7xxzz.png)


现在，按 “<ruby> 应用 <rt>  Apply </rt></ruby>”。它会询问你的密码。提供后，系统将提示你注销。


你可以看到，所有更改均已恢复。


#### 10、更多设置


还有其他可用的调整，例如：


1. 通过 “<ruby> 顶栏 <rt>  Top Bar </rt></ruby> ⇾ <ruby> 电源 <rt>  Power </rt></ruby> ⇾ <ruby> 显示电池百分比 <rt>  Show Battery Percentage </rt></ruby>”，在顶栏显示电池百分比。
2. 通过 “<ruby> 登录屏幕 <rt>  Login Screen </rt></ruby> ⇾ <ruby> 禁用用户列表 <rt>  Disable User List </rt></ruby>”，在登录屏幕上禁用或启用用户列表。
3. 通过 “<ruby> 电源 <rt>  Power </rt></ruby>” 选项卡更改屏幕关闭时间、暂停时间和其他电源设置。


### 安装 GDM 设置工具


既然你知道该工具可以进行哪些调整，你可能想自己尝试一下。让我们看看如何安装它。



> 
> ? 在 Ubuntu / Pop!\_OS 上，GDM 设置工具对我不起作用。我在 Debian 12 Bookworm 上以 Flatpak 应用使用。
> 
> 
> 


GDM 设置工具可以作为 Flatpak 安装。



```
flatpak install flathub io.github.realmazharhussain.GdmSettings

```

或者，它可以作为 [AppImage](https://github.com/gdm-settings/gdm-settings/releases) 提供。


对于 Arch Linux 用户，请使用 AUR 中的任何 AUR 助手进行安装。



```
yay -S gdm-settings

```

### 结论


登录屏幕并不是每个人都可以定制的。除了“轻击”更改之外，大多数其他更改都只是外观更改。


总的来说，对于喜欢自定义设置的每个角落的人们来说，有这样的选择是件好事。


?️ 你是那些痴迷于定制的 Linux 用户之一吗？ 你会尝试 GDM 设置工具吗？


*（题图：DA/fb8961d0-852d-4d89-b5b2-d2912b38f6f8）*




---


via: <https://itsfoss.com/customize-gdm-login/>


作者：[Sreenath](https://itsfoss.com/author/sreenath/) 选题：[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)

From the dock to grub screen, GNOME can be customized to your liking.

Add the login screen to this list as a new tool called GDM Settings allows you to change the looks and tweak functionalities of the login screen in GNOME.

You can change the wallpaper, theme, icon, time format, top panel items etc. You can also enable tap to click on the login screen (I love this one) among other things.

In this tutorial, you'll see the steps for installing this tool and how you can use it to change various aspects of the GDM login screen.

Needless to say, you must be using GNOME desktop environment and GDM display manager in order to follow the instructions here.

## Tweaks using GDM Settings tool

Let's first see the kind of changes you can make with this awesome utility.

### 1. Change shell theme, icon, and wallpaper

You can change the theme, icon and wallpaper of the login screen. Here's an example.

![GDM login screen customization](https://itsfoss.com/content/images/2024/01/gdm-settings-applied.webp)

To change the theme, you should download it first. Get one from the [GNOME Look website](https://www.gnome-look.org/browse/).

Next, ensure that the theme is in `/usr/share/themes`

. Themes stored in `~/.themes`

are not visible to the GDM settings app.

In the GDM Settings tool, go to the Appearance tab and select the themes/icons/cursors.

![Apply themes to the GDM Login Screen](https://itsfoss.com/content/images/2023/12/gdm-settings-set-log-in-themes-settings.png)

If you want to set a wallpaper, change the Backgrounds to “Image” and then browse a picture from the file browser.

![Add a custom wallpaper to the GDM login screen](https://itsfoss.com/content/images/2023/12/gdm-settings-set-an-image-settings.png)

Once finished, click Apply. This will ask for the password. Give it when prompted.

You will be notified to log out to apply changes. When logged out, the changes will be visible.

![GDM Settings tool will prompt the user to log out in order to apply the changes that have been made.](https://itsfoss.com/content/images/2023/12/gdm-settings-click-on-logout.png)

### 2. Change fonts

Before you change the font, you need to have that fonts installed on your system for all users.

To ensure that, paste the downloaded custom font file to `/usr/local/share/fonts`

and then make a font cache using:

```
fc-cache -f -v
```


Now, open GDM Settings and go to the Fonts tab. There, you can set the fonts, anti-alias settings etc.

![The settings to change the default font to a custom font](https://itsfoss.com/content/images/2023/12/gdm-settings-apply-custom-font-settings.png)

You can see that the new font is now set to your log in screen.

![A GDM log in screen with a custom font applied](https://itsfoss.com/content/images/2023/12/different-font-applied-1.png)

### 3. Change color of top panel

To change the top panel color, go to Top Bar option in the sidebar. Under Tweaks, enable the "Change Background Color" button and then set a color you want.

![GDM Settings tool, setting to change the top bar background and text color.](https://itsfoss.com/content/images/2023/12/gdm-settings-change-topbar-background-color.png)

It is equally important to change the text color of the top bar to a convenient color to the background you have selected.

![The top bar color is changed to gren rom the default black.](https://itsfoss.com/content/images/2023/12/panel-color-changed.png)

### 4. Change the time display format

Change the clock to 24 hr or 12hr format using the dropdown menu.

![The Setting to change the GDM log in screen top bar time display format.](https://itsfoss.com/content/images/2023/12/gdm-settings-top-bar-clock-settings.png)

Furthermore, you can make seconds visible on the top bar, by toggling the corresponding button.

![GDM log in screen top bar shows seconds](https://itsfoss.com/content/images/2023/12/gdm-settings-show-seconds-on-top-bar.png)

### 5. Enable tap to click on login screen

On most distros, this is the default behavior. Even if you have tap to click enabled in the system, the GNOME login screen need you to use left mouse click.

To change that, go to the Mouse and Touchpad section and enable the Tap to Click button.

![Setting to enable tap to click](https://itsfoss.com/content/images/2023/12/gdm-settings-enable-tap-to-click-settings.png)

On the same menu, you have an option to tweak the mouse cursor size, if it looks small to you.

![Setting to change the display size of cursors](https://itsfoss.com/content/images/2023/12/gdm-settings-add-different-cursor-size-settings.png)

### 6. Enable night light

You can enable a scheduled night light to the GDM.

Go to Display, toggle the Night Light button on. Now, Schedule either sunset to sunrise or to a convenient time of your choice.

![Setting to enable night light in GDM Screen](https://itsfoss.com/content/images/2023/12/gdm-settings-change-night-light-settings.png)

### 7. Add a logo and welcome Message

Go to the Login screen tab and then enable the "Enable Logo" button. This will give you a button to browse for the image.

![Add a logo to the GDM log in screen](https://itsfoss.com/content/images/2023/12/gdm-settings-enable-logo-settings.png)

Select the Image and press Apply.

After the image is applied, to set a welcome message, enable the Welcome Message button and then add the text you wanted to show.

![Add a welcome message on GDM Settings tool](https://itsfoss.com/content/images/2023/12/gdm-settings-enable-welcome-message-settings.png)

This will display the message, when you selected a user to enter the password.

![GDM log in screen welcome message and logo](https://itsfoss.com/content/images/2023/12/logo-and-welcome-message-added.png)

### 8. Export and import settings

If you want to apply the same settings on some other system, you can export the settings and import it on the other system running GDM Settings tool.

Click on the top-left hamburger menu, and select **Export to file**.

![Click on the Export to file button on the top left hamburger menu](https://itsfoss.com/content/images/2023/12/gdm-settings-click-on-export-to-file.png)

Name the `.ini`

file and save it somewhere safe. You can import it later.

![Name the file and save it somewhere safe.](https://itsfoss.com/content/images/2023/12/gdm-settings-save-the-export-file-as-gdm-settings-ini.png)

### 9. Reset all settings

Don't like the changes you made? There is an easy way to revert to default.

To reset the tweaks, click on the top-left hamburger menu and select Reset.

![Click on the Reset Settings button on the top-left hamburger menu](https://itsfoss.com/content/images/2023/12/gdm-settings-click-on-reset.png)

Now, press Apply. It will ask for your password. Once provided, you will be prompted to log out.

You can see that, all the changes have been reverted.

### 10. More settings

There are other tweaks available too, like:

- Show battery percentage on the top bar, through
**Top Bar ⇾ Power ⇾ Show Battery Percentage.** - Disable or enable the user list on the login screen through
**Login Screen ⇾ Disable User List**. - Change the screen off time, suspend time and other power settings through the
**Power**tab.

## Installing GDM Settings Tool

Now that you know what tweaks this tool can do, you may want to try it on your own. Let's see about installing it.

GDM Settings Tool can be installed as a Flatpak.

`flatpak install flathub io.github.realmazharhussain.GdmSettings`


Or, It is available as [an AppImage](https://github.com/gdm-settings/gdm-settings/releases?ref=itsfoss.com).

For Arch Linux users, install using any AUR Helper from AUR.

`yay -S gdm-settings`


## Conclusion

Login screen is not something that everyone customizes. Other than the "tap to click" change, most other changes are just cosmetic changes.

Overall, it is good to have such options available for people who love to customize every nook and corner of their settings.

🗨️ Are you one of those Linux users who are obsessed with customization? Will you be trying GDM Settings?