Add Waywallen flatpak/extension and prioritize Flathub
This commit is contained in:
1 parent
8c6b6ebf28
commit
d177b4dd9b
1 file changed
+16
-2
+16
-2
@@ -59,6 +59,7 @@ FLATPAK_PACKAGES=(
|
|||||||
"com.collaboraoffice.Office"
|
"com.collaboraoffice.Office"
|
||||||
"io.github.kolunmi.Bazaar"
|
"io.github.kolunmi.Bazaar"
|
||||||
"com.fastmail.Fastmail"
|
"com.fastmail.Fastmail"
|
||||||
|
"org.waywallen.waywallen"
|
||||||
)
|
)
|
||||||
|
|
||||||
GNOME_EXTENSIONS=(
|
GNOME_EXTENSIONS=(
|
||||||
@@ -73,7 +74,6 @@ GNOME_EXTENSIONS=(
|
|||||||
#"lan-ip-address@mrhuber.com"
|
#"lan-ip-address@mrhuber.com"
|
||||||
#"update-extension@purejava.org"
|
#"update-extension@purejava.org"
|
||||||
"user-theme@gnome-shell-extensions.gcampax.github.com"
|
"user-theme@gnome-shell-extensions.gcampax.github.com"
|
||||||
"gnome-wallpaper-engine@gjs.com.zip"
|
|
||||||
)
|
)
|
||||||
|
|
||||||
# -----------------------------------------------------------------------------
|
# -----------------------------------------------------------------------------
|
||||||
@@ -216,8 +216,9 @@ install_software() {
|
|||||||
sudo dnf install -y flatpak
|
sudo dnf install -y flatpak
|
||||||
fi
|
fi
|
||||||
|
|
||||||
log_info "Adding Flathub remote..."
|
log_info "Adding Flathub remote and setting its priority..."
|
||||||
flatpak remote-add --if-not-exists flathub https://flathub.org/repo/flathub.flatpakrepo
|
flatpak remote-add --if-not-exists flathub https://flathub.org/repo/flathub.flatpakrepo
|
||||||
|
sudo flatpak remote-modify --prio=10 flathub || true
|
||||||
check_status "Flathub remote add" "non-critical"
|
check_status "Flathub remote add" "non-critical"
|
||||||
|
|
||||||
log_info "Installing Flatpak packages..."
|
log_info "Installing Flatpak packages..."
|
||||||
@@ -529,6 +530,19 @@ install_gnome_extensions() {
|
|||||||
# Prompt user to press Enter to continue
|
# Prompt user to press Enter to continue
|
||||||
read -p "Press Enter to continue (if a popup appeared, confirm it first)..."
|
read -p "Press Enter to continue (if a popup appeared, confirm it first)..."
|
||||||
done
|
done
|
||||||
|
|
||||||
|
log_info "Installing waywallen-display extension from GitHub..."
|
||||||
|
WAYWALLEN_URL=$(curl -s https://api.github.com/repos/waywallen/waywallen-display/releases/latest | grep -oP 'https://[^"]+waywallen-gnome-[^"]+-x86_64\.zip' | head -n 1)
|
||||||
|
if [ -n "$WAYWALLEN_URL" ]; then
|
||||||
|
TEMP_EXT=$(mktemp -d)
|
||||||
|
curl -sL "$WAYWALLEN_URL" -o "$TEMP_EXT/waywallen.zip"
|
||||||
|
gnome-extensions install -f "$TEMP_EXT/waywallen.zip"
|
||||||
|
gnome-extensions enable gnome-wallpaper-engine@gjs.com || true
|
||||||
|
rm -rf "$TEMP_EXT"
|
||||||
|
check_status "Waywallen GNOME Extension" "non-critical"
|
||||||
|
else
|
||||||
|
log_error "Failed to resolve Waywallen extension download URL."
|
||||||
|
fi
|
||||||
}
|
}
|
||||||
|
|
||||||
install_antigravity() {
|
install_antigravity() {
|
||||||
|
|||||||
Reference in new issue
Block a user