如何更改 GDM 登录屏幕壁纸?

fal*_*alk 16 wallpaper gdm boot login

如何更改 GDM 3.6 壁纸?我指的不是桌面背景,而是登录时的壁纸(GDM 3.6)。

谢谢


谢谢您的回答,

我确切地知道你的意思。最近我安装了LightDm,但是今天我卸载了它,并用GDM替换了它。Ubuntu-Tweak 不显示登录屏幕外观按钮。我认为这是因为当前未安装 LightDM。有谁知道存储图像的文件夹在哪里?

Tri*_*onX 7

另外值得一提的是 Ubuntu Artful 17.10,您可以通过以下方式恢复到默认的 Gnome 3 主题体验:

sudo update-alternatives --config gdm3.css
Run Code Online (Sandbox Code Playgroud)

并选择默认gnome-shell.css选项。

来源:https : //didrocks.fr/2017/09/11/ubuntu-gnome-shell-in-artful-day-11/


小智 5

  1. 将要使用的图片复制到/usr/share/gnome-shell/theme文件夹中

    sudo gedit /usr/share/gnome-shell/theme/gnome-shell.css
    
    Run Code Online (Sandbox Code Playgroud)
  2. 搜索以下部分

    #lockDialogGroup {
    background: #2e3436 url(noise-texture.png);
    background-repeat: no-repeat;
    
    Run Code Online (Sandbox Code Playgroud)
  3. 将图像名称更改为您的图像

  4. 背景设置为重复不重复

  5. 保存文件

注销,你的新背景就在那里


Arc*_*Tux 5

按照 Arch Linux Wiki 上的说明进行操作:

https://wiki.archlinux.org/index.php/GDM#Log-in_screen_background_image

这是您需要做的:

1. 提取 gnome-shell-theme 二进制文件

创建并运行以下脚本 ( /usr/local/bin/extractgst.sh)

#!/bin/sh

workdir=${HOME}/shell-theme
if [ ! -d ${workdir}/theme ]; then
  mkdir -p ${workdir}/theme
fi
gst=/usr/share/gnome-shell/gnome-shell-theme.gresource

for r in `gresource list $gst`; do
        gresource extract $gst $r >$workdir/${r#\/org\/gnome\/shell/}
done
Run Code Online (Sandbox Code Playgroud)

2. 编辑 gnome-shell-theme.gresource.xml 和 gnome-shell.css(部分#lockDialogGroup

这将创建目录$HOME/shell-theme/theme。将目录更改到此位置。

gnome-shell-theme.gresource.xml然后在上面的目录中创建文件。

使用以下内容,而imagefilename必须替换为您的背景图片的文件名。

<?xml version="1.0" encoding="UTF-8"?>
<gresources>
  <gresource prefix="/org/gnome/shell/theme">

    <file>imagefilename</file>

    <file>calendar-arrow-left.svg</file>
    <file>calendar-arrow-right.svg</file>
    <file>calendar-today.svg</file>
    <file>checkbox-focused.svg</file>
    <file>checkbox-off-focused.svg</file>
    <file>checkbox-off.svg</file>
    <file>checkbox.svg</file>
    <file>close-window.svg</file>
    <file>close.svg</file>
    <file>corner-ripple-ltr.png</file>
    <file>corner-ripple-rtl.png</file>
    <file>dash-placeholder.svg</file>
    <file>filter-selected-ltr.svg</file>
    <file>filter-selected-rtl.svg</file>
    <file>gnome-shell.css</file>
    <file>gnome-shell-high-contrast.css</file>
    <file>logged-in-indicator.svg</file>
    <file>more-results.svg</file>
    <file>no-events.svg</file>
    <file>no-notifications.svg</file>
    <file>noise-texture.png</file>
    <file>page-indicator-active.svg</file>
    <file>page-indicator-inactive.svg</file>
    <file>page-indicator-checked.svg</file>
    <file>page-indicator-hover.svg</file>
    <file>process-working.svg</file>
    <file>running-indicator.svg</file>
    <file>source-button-border.svg</file>
    <file>summary-counter.svg</file>
    <file>toggle-off-us.svg</file>
    <file>toggle-off-intl.svg</file>
    <file>toggle-on-hc.svg</file>
    <file>toggle-on-us.svg</file>
    <file>toggle-on-intl.svg</file>
    <file>ws-switch-arrow-up.png</file>
    <file>ws-switch-arrow-down.png</file>
  </gresource>
</gresources>
Run Code Online (Sandbox Code Playgroud)

现在,打开gnome-shell.css目录中的 -file 并更改 #lockDialogGroup 定义,如下所示:

#lockDialogGroup {
  background: #2e3436 url(imagefilename);
  background-size: [WIDTH]px [HEIGHT]px;
  background-repeat: no-repeat;
}
Run Code Online (Sandbox Code Playgroud)

设置background-size为 GDM 使用的分辨率,这不一定是图像的分辨率。

3.然后再次编译

最后,使用以下命令编译主题:

glib-compile-resources gnome-shell-theme.gresource.xml
Run Code Online (Sandbox Code Playgroud)

4.复制编译好的gnome-shell-theme文件

并将生成的gnome-shell-theme.gresource文件复制到/usr/share/gnome-shell目录中。

5. 重新启动gdm或注销

最后重新启动 gdm 或直接注销。

完成的!


Wey*_*eck 1

您将需要 Ubuntu Tweak,如果您还没有,您可以通过在终端中运行以下代码来安装它。

sudo add-apt-repository ppa:tualatrix/ppa
sudo apt-get update
sudo apt-get install ubuntu-tweak
Run Code Online (Sandbox Code Playgroud)

然后启动 Ubuntu Tweak 并在搜索栏中搜索“登录”,然后单击“登录设置”,然后按搜索栏右上角的解锁按钮。然后您可以通过更改背景或图标主题等来编辑您的登录屏幕。

在此输入图像描述

这应该适用于 GDM 登录和 LightDM。

资料来源:http ://www.techdrivein.com/2011/01/how-to-change-gdmlogin-screen.html

  • 这不适用于 GDM(3)。 (4认同)

小智 0

我刚刚去探索。查看/etc/gdm/greeter.gsettings

在终端中,您可以通过键入以下内容获得对此文件的读取访问权限:

nano /etc/gdm/greeter.gsettings
Run Code Online (Sandbox Code Playgroud)

您将在该文件中看到对:的引用,/usr/share/themes/Adwaita/backgrounds 它似乎包含您正在寻找的条纹背景。祝你好运!

请记住,您需要提升使用权限sudo才能写入此目录。gedit或者,如果您更愿意使用图形界面,您可以在终端中键入以下内容以作为提升的用户打开,但要小心不要破坏您的系统:

gksudo gedit /etc/gdm/greeter.gsettings
Run Code Online (Sandbox Code Playgroud)