-
Notifications
You must be signed in to change notification settings - Fork 20
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Regenerate/Update GTK theme (themix-gui 1.15.1)
The Materia version that themix-gui-1.15.1 uses is still from May 12, 2021 Some notible changes is that I had to switch from inkscape to resvg since exporting using inkscape has been borked since 2021. Hopefully things still render properly. Issue on themix-gui's repository regarding inkscape and materia. themix-project/themix-gui#387 How I got materia to export with resvg. nana-4/materia-theme#591
- Loading branch information
1 parent
27c7ed1
commit b2d4d50
Showing
478 changed files
with
2,154 additions
and
1,382 deletions.
There are no files selected for viewing
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,47 @@ | ||
# 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 :warning: | ||
|
||
- 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. | ||
> Tip: On Arch Linux, you can automatically reinstall the GDM theme by creating a [hook](https://wiki.archlinux.org/index.php/Pacman#Hooks) file. For example, if you use Materia-compact as your GDM theme, put [this file](https://gist.github.com/looselyrigorous/a1aa931ce48627cc39daccc9253b30c7) in the `/usr/share/libalpm/hooks/` directory. | ||
## Requirements | ||
|
||
- `glib-compile-resources` — The package name depends on the distro. | ||
- `glib2` (Arch Linux) | ||
- `glib2-devel` (Fedora, openSUSE, etc.) | ||
- `libglib2.0-dev-bin` (Debian, Ubuntu, etc.) | ||
- `libxml2-utils` — Ubuntu users only. | ||
|
||
## Installation | ||
|
||
1. **Back up** the original theme file first. If you are already using a custom GDM theme, skip this: | ||
|
||
```sh | ||
sudo cp -av /usr/share/gnome-shell/gnome-shell-theme.gresource{,~} | ||
``` | ||
|
||
2. Select a **GTK** theme to decide which variant to install. | ||
3. Replace the default theme file: | ||
|
||
```sh | ||
THEME_NAME="$(gsettings get org.gnome.desktop.interface gtk-theme | sed "s/'//g")" | ||
THEME_SRC_DIR="/usr/share/themes/$THEME_NAME/gnome-shell" | ||
sudo glib-compile-resources --target="/usr/share/gnome-shell/gnome-shell-theme.gresource" --sourcedir="$THEME_SRC_DIR" "$THEME_SRC_DIR/gnome-shell-theme.gresource.xml" | ||
``` | ||
|
||
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 from the backup: | ||
|
||
```sh | ||
sudo mv -v /usr/share/gnome-shell/gnome-shell-theme.gresource{~,} | ||
``` | ||
|
||
2. Reload the theme. If you are running GNOME Shell, press <kbd>Alt</kbd> + <kbd>F2</kbd> then type `rt`. |
Oops, something went wrong.