omarchy-chromium is now on the OPR
This commit is contained in:
parent
5ad441e539
commit
4d28721682
@ -10,11 +10,6 @@ if omarchy-pkg-aur-accessible; then
|
||||
yay -S --noconfirm --needed \
|
||||
tzupdate wl-screenrec \
|
||||
python-poetry-core python-terminaltexteffects
|
||||
|
||||
# We install chromium to be safe that we have a browser,
|
||||
# but replace it with our version if AUR is available
|
||||
sudo pacman -Rns chromium
|
||||
yay -S --noconfirm omarchy-chromium-bin
|
||||
else
|
||||
echo -e "\n\e[31mAUR is unavailable. Skipping installation of: 1password, Typora, tte, tzupdate !\e[0m"
|
||||
echo "You will have to install these later when AUR is available."
|
||||
|
@ -6,5 +6,4 @@ sudo pacman -S --noconfirm --needed \
|
||||
nautilus sushi ffmpegthumbnailer gvfs-mtp \
|
||||
slurp satty wf-recorder \
|
||||
mpv evince imv \
|
||||
walker-bin \
|
||||
chromium
|
||||
walker-bin omarchy-chromium
|
||||
|
@ -1,28 +1,24 @@
|
||||
echo "Switch to Omarchy Chromium for synchronized theme switching"
|
||||
|
||||
if omarchy-pkg-aur-accessible; then
|
||||
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
|
||||
}
|
||||
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
|
||||
yay -Sy --noconfirm omarchy-chromium-bin
|
||||
if command -v chromium &>/dev/null; then
|
||||
sudo pacman -Rns --noconfirm chromium || true
|
||||
yay -Sy --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
|
||||
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
|
||||
else
|
||||
echo -e "\n\e[31mAUR is unavailable. Skipping installation. Please try manually later.\e[0m"
|
||||
fi
|
||||
|
Loading…
x
Reference in New Issue
Block a user