diff --git a/bin/omarchy-theme-set b/bin/omarchy-theme-set index 3766c20..46cd7a0 100755 --- a/bin/omarchy-theme-set +++ b/bin/omarchy-theme-set @@ -32,6 +32,13 @@ else gsettings set org.gnome.desktop.interface gtk-theme "Adwaita-dark" fi +# Change gnome icon theme color +if [[ -f ~/.config/omarchy/current/theme/icons.theme ]]; then + gsettings set org.gnome.desktop.interface icon-theme "$(<~/.config/omarchy/current/theme/icons.theme)" +else + gsettings set org.gnome.desktop.interface icon-theme "Adwaita" +fi + # Trigger alacritty config reload touch "$HOME/.config/alacritty/alacritty.toml" diff --git a/install/desktop/theme.sh b/install/desktop/theme.sh index c744c2a..a61a4de 100644 --- a/install/desktop/theme.sh +++ b/install/desktop/theme.sh @@ -10,6 +10,11 @@ if ! yay -Q gnome-themes-extra &>/dev/null; then yay -S --noconfirm gnome-themes-extra # Adds Adwaita-dark theme fi +# Allow icons to match the theme +if ! yay -! yaru-icon-theme &>/dev/null; then + yay -S --noconfirm yaru-icon-theme +fi + gsettings set org.gnome.desktop.interface gtk-theme "Adwaita-dark" gsettings set org.gnome.desktop.interface color-scheme "prefer-dark" diff --git a/migrations/1754047941.sh b/migrations/1754047941.sh new file mode 100644 index 0000000..39ddd15 --- /dev/null +++ b/migrations/1754047941.sh @@ -0,0 +1,9 @@ +echo "Add icon theme coloring" + +if ! yay -! yaru-icon-theme &>/dev/null; then + yay -S --noconfirm yaru-icon-theme + + if [[ -f ~/.config/omarchy/current/theme/icons.theme ]]; then + gsettings set org.gnome.desktop.interface icon-theme "$(<~/.config/omarchy/current/theme/icons.theme)" + fi +fi diff --git a/themes/catppuccin-latte/icons.theme b/themes/catppuccin-latte/icons.theme new file mode 100644 index 0000000..6ce2f14 --- /dev/null +++ b/themes/catppuccin-latte/icons.theme @@ -0,0 +1 @@ +Yaru-blue diff --git a/themes/catppuccin/icons.theme b/themes/catppuccin/icons.theme new file mode 100644 index 0000000..24a4551 --- /dev/null +++ b/themes/catppuccin/icons.theme @@ -0,0 +1 @@ +Yaru-purple diff --git a/themes/everforest/icons.theme b/themes/everforest/icons.theme new file mode 100644 index 0000000..140e422 --- /dev/null +++ b/themes/everforest/icons.theme @@ -0,0 +1 @@ +Yaru-sage diff --git a/themes/gruvbox/icons.theme b/themes/gruvbox/icons.theme new file mode 100644 index 0000000..7bb20fc --- /dev/null +++ b/themes/gruvbox/icons.theme @@ -0,0 +1 @@ +Yaru-olive diff --git a/themes/kanagawa/icons.theme b/themes/kanagawa/icons.theme new file mode 100644 index 0000000..6ce2f14 --- /dev/null +++ b/themes/kanagawa/icons.theme @@ -0,0 +1 @@ +Yaru-blue diff --git a/themes/matte-black/icons.theme b/themes/matte-black/icons.theme new file mode 100644 index 0000000..a3c0a4c --- /dev/null +++ b/themes/matte-black/icons.theme @@ -0,0 +1 @@ +Yaru-red diff --git a/themes/nord/icons.theme b/themes/nord/icons.theme new file mode 100644 index 0000000..6ce2f14 --- /dev/null +++ b/themes/nord/icons.theme @@ -0,0 +1 @@ +Yaru-blue diff --git a/themes/ristretto/icons.theme b/themes/ristretto/icons.theme new file mode 100644 index 0000000..e38b9ce --- /dev/null +++ b/themes/ristretto/icons.theme @@ -0,0 +1 @@ +Yaru-yellow diff --git a/themes/rose-pine/icons.theme b/themes/rose-pine/icons.theme new file mode 100644 index 0000000..6ce2f14 --- /dev/null +++ b/themes/rose-pine/icons.theme @@ -0,0 +1 @@ +Yaru-blue diff --git a/themes/tokyo-night/icons.theme b/themes/tokyo-night/icons.theme new file mode 100644 index 0000000..5d00638 --- /dev/null +++ b/themes/tokyo-night/icons.theme @@ -0,0 +1 @@ +Yaru-magenta