FrancescoCaracciolo / material-you-colors

Applies generated libadwaita theme from wallpaper using Material You
GNU General Public License v3.0
26 stars 1 forks source link
gnome gnome-extension gnome-shell gnome-shell-extension

Material You Gnome

Applies generated libadwaita and gnome theme from wallpaper using Material You. It also supports custom color theming and pywal theming. Fork of material-you-theme.

extension-screenshot

Installation

Copy the extension to your extensions folder (create the folder if it does not exist).

Build Dependencies

Ubuntu

apt install gettext

Fedora

dnf install gettext

Extension Installation

git clone https://github.com/FrancescoCaracciolo/material-you-colors.git
cd material-you-colors
make && make install

Log out and log back in and you should be able to enable it in your extension manager.

NOTE: Using the extension now will only theme your native installed libadwaita apps, follow the steps below to have the theme apply to GTK3 and flatpak apps and the shell.

Shell Theming

To enable gnome shell theming first install nodejs and npm, then click the install sass button in extension preferences.

You also need to install the User Themes extensions to apply the theme.

If User Themes is installed through gnome extension store you will get a warning that the MaterialYou shell theme could not be applied automatically. In this case use Gnome Tweaks or User Themes to manually apply the MaterialYou shell theme.

Pywal Theming

To enable Pywal theming pip3 must be installed, then click the install Pywal button in extension preferences and toggle Pywal theming on.

If you are new to Pywal, check out the Pywal wiki. There are lots of things that Pywal integrates with such as Vim, Neovim, VSCode, Zathura, and many more.

Out of the box, Pywal will only temporarily change the colors of your terminal. As a first step you should include something like

if [[ -f "$HOME/.cache/wal/sequences" ]]; then
    (cat $HOME/.cache/wal/sequences)
fi

in your ~/.bashrc or ~/.zshrc

GDM Theming

To enable GDM theming first install gdm-tools. Then run following commands to install the theme.

sudo cp -r ~/.local/share/themes/MaterialYou/ /usr/share/themes
set-gdm-theme backup update
gsettings get org.gnome.desktop.background picture-uri | set-gdm-theme set MaterialYou

If you experience problems, you need to run

set-gdm-theme default

Libadwaita

Native

Theming for native libadwaita will work by default.

Flatpak

Install Flatseal, and add xdg-config/gtk-4.0:ro and xdg-config/gtk-4.0 to Other Files under the category Filesystem in the All Applications section.

GTK3

Native

Install the adw-gtk3 theme and apply it.

Flatpak

After installing the adw-gtk3 add xdg-config/gtk-3.0:ro and xdg-config/gtk-3.0 to Other Files under the category Filesystem in the All Applications section using Flatseal.

Usage

Once the extension is enabled the extension will update your theme based on your current wallpaper and system dark mode preference. When you change your system dark mode preference or wallpaper the extension will automatically refresh your theme.

Uninstall

Disabling the extension in your extension manager will undo theme changes back to default.