Protect from AUR outage
This commit is contained in:
parent
f0a77e65cd
commit
a0c3a435fc
@ -1,5 +1,6 @@
|
|||||||
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)"
|
||||||
@ -22,3 +23,6 @@ if command -v chromium &>/dev/null; then
|
|||||||
set_theme_colors
|
set_theme_colors
|
||||||
fi
|
fi
|
||||||
fi
|
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