Siga as instruções no Wiki do Arch Linux:
https://wiki.archlinux.org/index.php/GDM#Log-in_screen_background_image
Aqui está o que você precisa fazer:
1. Extraia o bianry do tema gnome-shell-theme
Crie e execute o seguinte script ( /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
2. Edite gnome-shell-theme.gresource.xml e gnome-shell.css (seção #lockDialogGroup
)
Isso cria o diretório $HOME/shell-theme/theme
. Mude o diretório para este local.
Em seguida, crie o arquivo gnome-shell-theme.gresource.xml
no diretório acima.
Com o seguinte conteúdo, enquanto imagefilename deve ser substituído pelo nome do arquivo da sua imagem de plano de fundo .
<?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>
Agora, abra o gnome-shell.css
-file no diretório e altere a definição #lockDialogGroup da seguinte maneira:
#lockDialogGroup {
background: #2e3436 url(imagefilename);
background-size: [WIDTH]px [HEIGHT]px;
background-repeat: no-repeat;
}
Defina background-size
a resolução que o GDM usa, isso pode não ser necessariamente a resolução da imagem.
3. Em seguida, compile-o novamente
Por fim, compile o tema usando o seguinte comando:
glib-compile-resources gnome-shell-theme.gresource.xml
4. Copie o arquivo gnome-shell-theme compilado
E copie o gnome-shell-theme.gresource
arquivo- resultante para o /usr/share/gnome-shell
diretório
5. Reinicie o gdm ou logout
Eventualmente, reinicie o gdm ou faça logout.
Acabado!