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 \
|
yay -S --noconfirm --needed \
|
||||||
tzupdate wl-screenrec \
|
tzupdate wl-screenrec \
|
||||||
python-poetry-core python-terminaltexteffects
|
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
|
else
|
||||||
echo -e "\n\e[31mAUR is unavailable. Skipping installation of: 1password, Typora, tte, tzupdate !\e[0m"
|
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."
|
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 \
|
nautilus sushi ffmpegthumbnailer gvfs-mtp \
|
||||||
slurp satty wf-recorder \
|
slurp satty wf-recorder \
|
||||||
mpv evince imv \
|
mpv evince imv \
|
||||||
walker-bin \
|
walker-bin omarchy-chromium
|
||||||
chromium
|
|
||||||
|
@ -1,28 +1,24 @@
|
|||||||
echo "Switch to Omarchy Chromium for synchronized theme switching"
|
echo "Switch to Omarchy Chromium for synchronized theme switching"
|
||||||
|
|
||||||
if omarchy-pkg-aur-accessible; then
|
set_theme_colors() {
|
||||||
set_theme_colors() {
|
if [[ -f ~/.config/omarchy/current/theme/chromium.theme ]] && command -v chromium &>/dev/null; then
|
||||||
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)"
|
||||||
chromium --no-startup-window --set-theme-color="$(<~/.config/omarchy/current/theme/chromium.theme)"
|
else
|
||||||
else
|
# Use a default, neutral grey if theme doesn't have a color
|
||||||
# Use a default, neutral grey if theme doesn't have a color
|
chromium --no-startup-window --set-theme-color="28,32,39"
|
||||||
chromium --no-startup-window --set-theme-color="28,32,39"
|
fi
|
||||||
fi
|
}
|
||||||
}
|
|
||||||
|
|
||||||
if command -v chromium &>/dev/null; then
|
if command -v chromium &>/dev/null; then
|
||||||
sudo pacman -Rns --noconfirm chromium || true
|
sudo pacman -Rns --noconfirm chromium || true
|
||||||
yay -Sy --noconfirm omarchy-chromium-bin
|
yay -Sy --noconfirm omarchy-chromium
|
||||||
|
|
||||||
if pgrep -x chromium; then
|
if pgrep -x chromium; then
|
||||||
if gum confirm "Chromium must be restarted. Ready?"; then
|
if gum confirm "Chromium must be restarted. Ready?"; then
|
||||||
pkill -x chromium
|
pkill -x chromium
|
||||||
set_theme_colors
|
|
||||||
fi
|
|
||||||
else
|
|
||||||
set_theme_colors
|
set_theme_colors
|
||||||
fi
|
fi
|
||||||
|
else
|
||||||
|
set_theme_colors
|
||||||
fi
|
fi
|
||||||
else
|
|
||||||
echo -e "\n\e[31mAUR is unavailable. Skipping installation. Please try manually later.\e[0m"
|
|
||||||
fi
|
fi
|
||||||
|
Loading…
x
Reference in New Issue
Block a user