Use omarchy-chromium-bin to give live theme changes
This commit is contained in:
parent
a9d70e6879
commit
bf49a86e98
@ -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"
|
||||
|
||||
|
@ -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
|
||||
|
24
migrations/1755164105.sh
Normal file
24
migrations/1755164105.sh
Normal file
@ -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
|
1
themes/catppuccin-latte/chromium.theme
Normal file
1
themes/catppuccin-latte/chromium.theme
Normal file
@ -0,0 +1 @@
|
||||
239,241,245
|
1
themes/catppuccin/chromium.theme
Normal file
1
themes/catppuccin/chromium.theme
Normal file
@ -0,0 +1 @@
|
||||
24,24,36
|
1
themes/everforest/chromium.theme
Normal file
1
themes/everforest/chromium.theme
Normal file
@ -0,0 +1 @@
|
||||
45,53,59
|
1
themes/gruvbox/chromium.theme
Normal file
1
themes/gruvbox/chromium.theme
Normal file
@ -0,0 +1 @@
|
||||
40,40,40
|
1
themes/kanagawa/chromium.theme
Normal file
1
themes/kanagawa/chromium.theme
Normal file
@ -0,0 +1 @@
|
||||
31,31,40
|
1
themes/matte-black/chromium.theme
Normal file
1
themes/matte-black/chromium.theme
Normal file
@ -0,0 +1 @@
|
||||
30,30,30
|
1
themes/nord/chromium.theme
Normal file
1
themes/nord/chromium.theme
Normal file
@ -0,0 +1 @@
|
||||
46,52,64
|
1
themes/osaka-jade/chromium.theme
Normal file
1
themes/osaka-jade/chromium.theme
Normal file
@ -0,0 +1 @@
|
||||
17,34,28
|
1
themes/ristretto/chromium.theme
Normal file
1
themes/ristretto/chromium.theme
Normal file
@ -0,0 +1 @@
|
||||
37,33,30
|
1
themes/rose-pine/chromium.theme
Normal file
1
themes/rose-pine/chromium.theme
Normal file
@ -0,0 +1 @@
|
||||
210,196,219
|
1
themes/tokyo-night/chromium.theme
Normal file
1
themes/tokyo-night/chromium.theme
Normal file
@ -0,0 +1 @@
|
||||
26,27,38
|
Loading…
x
Reference in New Issue
Block a user