by roundabout, Monday, 12 November 2018, 12:05:17 (1542024317), pushed by roundabout, Sunday, 11 May 2025, 13:22:28 (1746969748)
Author identity: nana-4 <hnmaigo@gmail.com>
a6e4fa56d823f4ad870e335a3757f3e4aa6870a0
README.md
@@ -115,7 +115,7 @@ To use the Chrome theme;
### GDM Theme
You can change the GDM (lock/login screen) theme by replacing the default GNOME Shell theme.
See the wiki for details: https://github.com/nana-4/materia-theme/wiki/GDM-Theme
See [`gnome-shell/README.md`](src/gnome-shell/README.md) for details.
## Customization
install.sh
@@ -85,6 +85,7 @@ install() {
mkdir -p "$THEME_DIR/gnome-shell"
cp -r "$SRC_DIR/gnome-shell/"{*.svg,extensions,noise-texture.png,pad-osd.css} "$THEME_DIR/gnome-shell"
cp -r "$SRC_DIR/gnome-shell/gnome-shell-theme.gresource.xml" "$THEME_DIR/gnome-shell"
cp -r "$SRC_DIR/gnome-shell/README.md" "$THEME_DIR/gnome-shell"
cp -r "$SRC_DIR/gnome-shell/assets${ELSE_DARK:-}" "$THEME_DIR/gnome-shell/assets"
cp -r "$SRC_DIR/gnome-shell/$GS_VERSION/gnome-shell$color$size.css" "$THEME_DIR/gnome-shell/gnome-shell.css"
src/gnome-shell/README.md
@@ -0,0 +1,58 @@
## How to change the GDM theme
To change the GDM (lock/login screen) theme, you need to replace the system's _default_ GNOME Shell theme.
### :warning: Cautions
- If the replacement fails, your desktop environment will not work properly. So please **be careful** if doing this.
- When applying this, other third-party GNOME Shell themes would look broken until you restore to the original theme.
- If GNOME Shell has been updated and restored to the original theme, you will need to install this again.
### Requirements
- `glib-compile-resources` — The package name depends on the distro.
- `glib2` (Arch Linux)
- `glib2-devel` (Fedora, openSUSE, etc.)
- `libglib2.0-dev` (Debian, Ubuntu, etc.)
- `libxml2-utils` — Ubuntu users only.
### Installation
1. **Back up** the original theme file(s) first. If you are already using a custom GDM theme, skip this:
```sh
sudo cp -av /usr/share/gnome-shell/gnome-shell-theme.gresource{,~}
# For Ubuntu 17.10 or 18.04, you also need the following:
sudo cp -av /usr/share/gnome-shell/theme/ubuntu.css{,~}
# For Ubuntu 18.10, you also need the following:
sudo cp -av /usr/share/gnome-shell/theme/Yaru/gnome-shell.css{,~}
```
2. Select a **GTK+** theme to decide which variant to install.
3. Replace the default theme file(s):
```sh
GTK_THEME=$(gsettings get org.gnome.desktop.interface gtk-theme | sed "s/'//g")
cd /usr/share/themes/${GTK_THEME}/gnome-shell
sudo glib-compile-resources --target=/usr/share/gnome-shell/gnome-shell-theme.gresource gnome-shell-theme.gresource.xml
# For Ubuntu 17.10 or 18.04, you also need the following:
sudo cp -av gnome-shell.css /usr/share/gnome-shell/theme/ubuntu.css
# For Ubuntu 18.10, you also need the following:
sudo cp -av gnome-shell.css /usr/share/gnome-shell/theme/Yaru/gnome-shell.css
```
4. Reload the theme. If you are running GNOME Shell, press <kbd>Alt</kbd> + <kbd>F2</kbd> then type `rt`.
### Uninstallation
1. Restore to the original theme file(s) from the backup:
```sh
sudo mv -av /usr/share/gnome-shell/gnome-shell-theme.gresource{~,}
# For Ubuntu 17.10 or 18.04, you also need the following:
sudo mv -av /usr/share/gnome-shell/theme/ubuntu.css{~,}
# For Ubuntu 18.10, you also need the following:
sudo mv -av /usr/share/gnome-shell/theme/Yaru/gnome-shell.css{~,}
```
2. Reload the theme. If you are running GNOME Shell, press <kbd>Alt</kbd> + <kbd>F2</kbd> then type `rt`.