mirror of
https://github.com/LukeHagar/omarchy.git
synced 2025-12-08 20:47:46 +00:00
* Get rid of -Sy and -Syy * Get rid of all naked -Sy usage * Don't need a full system update for this * Combine * Does not need a full system update * Need to refresh even just for Omarchy repository * Does not warrant a full system update * No longer need the sudoless pacman runs * We have already added the Omarchy repo before getting to here So fine to just do a straight install
25 lines
753 B
Bash
25 lines
753 B
Bash
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
|
|
sudo pacman -Rns --noconfirm chromium || true
|
|
sudo pacman -S --noconfirm omarchy-chromium
|
|
|
|
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
|