另外值得一提的是 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
将要使用的图片复制到/usr/share/gnome-shell/theme文件夹中
sudo gedit /usr/share/gnome-shell/theme/gnome-shell.css
Run Code Online (Sandbox Code Playgroud)搜索以下部分
#lockDialogGroup {
background: #2e3436 url(noise-texture.png);
background-repeat: no-repeat;
Run Code Online (Sandbox Code Playgroud)将图像名称更改为您的图像
将背景设置为重复或不重复
保存文件
注销,你的新背景就在那里
按照 Arch Linux Wiki 上的说明进行操作:
https://wiki.archlinux.org/index.php/GDM#Log-in_screen_background_image
这是您需要做的:
创建并运行以下脚本 ( /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)
#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 使用的分辨率,这不一定是图像的分辨率。
最后,使用以下命令编译主题:
glib-compile-resources gnome-shell-theme.gresource.xml
Run Code Online (Sandbox Code Playgroud)
并将生成的gnome-shell-theme.gresource文件复制到/usr/share/gnome-shell目录中。
最后重新启动 gdm 或直接注销。
您将需要 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
小智 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)
| 归档时间: |
|
| 查看次数: |
77150 次 |
| 最近记录: |