diff --git a/bin/omarchy-theme-set b/bin/omarchy-theme-set index 94221af8..81607137 100755 --- a/bin/omarchy-theme-set +++ b/bin/omarchy-theme-set @@ -39,6 +39,14 @@ else gsettings set org.gnome.desktop.interface icon-theme "Yaru-blue" fi +# Change Chromium colors +if [[ -f ~/.config/omarchy/current/theme/chromium.theme ]] && command -v chromium &>/dev/null; then + chromium --no-startup-window --set-theme-color="$(<~/.config/omarchy/current/theme/chromium.theme)" +else + # Use a default, neutral grey if theme doesn't have a color + chromium --no-startup-window --set-theme-color="28,32,39" +fi + # Trigger alacritty config reload touch "$HOME/.config/alacritty/alacritty.toml" diff --git a/install/desktop/desktop.sh b/install/desktop/desktop.sh index 626b6c27..45d89321 100644 --- a/install/desktop/desktop.sh +++ b/install/desktop/desktop.sh @@ -6,7 +6,7 @@ yay -S --noconfirm --needed \ nautilus sushi ffmpegthumbnailer gvfs-mtp \ slurp satty \ mpv evince imv \ - chromium + omarchy-chromium-bin # Add screen recorder based on GPU if lspci | grep -qi 'nvidia'; then diff --git a/migrations/1755164105.sh b/migrations/1755164105.sh new file mode 100644 index 00000000..d0f32c0b --- /dev/null +++ b/migrations/1755164105.sh @@ -0,0 +1,24 @@ +echo "Switch to Omarchy Chromium for synchronized theme switching" + +set_theme_colors() { + if [[ -f ~/.config/omarchy/current/theme/chromium.theme ]] && command -v chromium &>/dev/null; then + chromium --no-startup-window --set-theme-color="$(<~/.config/omarchy/current/theme/chromium.theme)" + else + # Use a default, neutral grey if theme doesn't have a color + chromium --no-startup-window --set-theme-color="28,32,39" + fi +} + +if command -v chromium &>/dev/null; then + yay -Rns chromium + yay -Sy omarchy-chromium-bin + + if pgrep -x chromium; then + if gum confirm "Chromium must be restarted. Ready?"; then + pkill -x chromium + set_theme_colors + fi + else + set_theme_colors + fi +fi diff --git a/themes/catppuccin-latte/chromium.theme b/themes/catppuccin-latte/chromium.theme new file mode 100644 index 00000000..8bd675bc --- /dev/null +++ b/themes/catppuccin-latte/chromium.theme @@ -0,0 +1 @@ +239,241,245 diff --git a/themes/catppuccin/chromium.theme b/themes/catppuccin/chromium.theme new file mode 100644 index 00000000..1d965999 --- /dev/null +++ b/themes/catppuccin/chromium.theme @@ -0,0 +1 @@ +24,24,36 diff --git a/themes/everforest/chromium.theme b/themes/everforest/chromium.theme new file mode 100644 index 00000000..381b5ba6 --- /dev/null +++ b/themes/everforest/chromium.theme @@ -0,0 +1 @@ +45,53,59 diff --git a/themes/gruvbox/chromium.theme b/themes/gruvbox/chromium.theme new file mode 100644 index 00000000..40520c92 --- /dev/null +++ b/themes/gruvbox/chromium.theme @@ -0,0 +1 @@ +40,40,40 diff --git a/themes/kanagawa/chromium.theme b/themes/kanagawa/chromium.theme new file mode 100644 index 00000000..ca40205b --- /dev/null +++ b/themes/kanagawa/chromium.theme @@ -0,0 +1 @@ +31,31,40 diff --git a/themes/matte-black/chromium.theme b/themes/matte-black/chromium.theme new file mode 100644 index 00000000..6e77e856 --- /dev/null +++ b/themes/matte-black/chromium.theme @@ -0,0 +1 @@ +30,30,30 diff --git a/themes/nord/chromium.theme b/themes/nord/chromium.theme new file mode 100644 index 00000000..33a45e46 --- /dev/null +++ b/themes/nord/chromium.theme @@ -0,0 +1 @@ +46,52,64 diff --git a/themes/osaka-jade/chromium.theme b/themes/osaka-jade/chromium.theme new file mode 100644 index 00000000..6524c764 --- /dev/null +++ b/themes/osaka-jade/chromium.theme @@ -0,0 +1 @@ +17,34,28 diff --git a/themes/ristretto/chromium.theme b/themes/ristretto/chromium.theme new file mode 100644 index 00000000..4b5c8eb0 --- /dev/null +++ b/themes/ristretto/chromium.theme @@ -0,0 +1 @@ +37,33,30 diff --git a/themes/rose-pine/chromium.theme b/themes/rose-pine/chromium.theme new file mode 100644 index 00000000..072dd44c --- /dev/null +++ b/themes/rose-pine/chromium.theme @@ -0,0 +1 @@ +210,196,219 diff --git a/themes/tokyo-night/chromium.theme b/themes/tokyo-night/chromium.theme new file mode 100644 index 00000000..bf2774da --- /dev/null +++ b/themes/tokyo-night/chromium.theme @@ -0,0 +1 @@ +26,27,38