mirror of
https://github.com/ublue-os/bazzite.git
synced 2025-01-29 18:32:48 +00:00
d9be9733f9
The rpm-ostree extension won't have proper support for OCI until Fedora 39, leading to false update notifications. We also already handle Flatpak updates in ublue-update, making this redundant for everything, but FW updates, which some hardware may or may not support, and regardless these can be installed by just manually checking in GNOME Software for updates
58 lines
2.1 KiB
Bash
Executable File
58 lines
2.1 KiB
Bash
Executable File
#!/usr/bin/env bash
|
|
source /etc/default/bazzite
|
|
|
|
if [[ $BASE_IMAGE_NAME =~ "kinoite" ]]; then
|
|
echo 'Running setup for Kinoite'
|
|
|
|
echo 'Enabling System76-Scheduler KWin script'
|
|
kwriteconfig5 --file kwinrc --group Plugins --key kwin-system76-scheduler-integrationEnabled true
|
|
|
|
if [[ $IMAGE_NAME =~ "deck" ]]; then
|
|
echo 'Running setup for Kinoite on Steam Deck'
|
|
|
|
echo 'Creating Desktop shortcuts'
|
|
cp /usr/share/applications/steam.desktop ~/Desktop/steam.desktop
|
|
sed -i 's@ (Runtime)@@g' ~/Desktop/steam.desktop
|
|
sed -i 's@/usr/bin/steam-runtime@/usr/bin/bazzite-steam-runtime@g' ~/Desktop/steam.desktop
|
|
cp /etc/skel.d/Desktop/Return.desktop ~/Desktop/Return.desktop
|
|
cp /usr/share/applications/lutris.desktop ~/Desktop/lutris.desktop
|
|
cp /usr/share/applications/yafti.desktop ~/Desktop/yafti.desktop
|
|
fi
|
|
else
|
|
echo 'Running setup for Silverblue'
|
|
|
|
echo 'Enabling GNOME extensions'
|
|
gnome-extensions enable s76-scheduler@mattjakeman.com
|
|
gnome-extensions enable gsconnect@andyholmes.github.io
|
|
gnome-extensions disable background-logo@fedorahosted.org
|
|
|
|
echo 'Enabling VRR'
|
|
gsettings set org.gnome.mutter experimental-features "['variable-refresh-rate']"
|
|
|
|
echo 'Disabling automatic GNOME Software updates'
|
|
gsettings set org.gnome.software download-updates false
|
|
gsettings set org.gnome.software download-updates-notify false
|
|
|
|
echo 'Installing Gradience presets'
|
|
mkdir -p $HOME/.config/presets/user/
|
|
ln -s /usr/share/ublue-os/bazzite/themes/vapor.json $HOME/.config/presets/user/vapor.json
|
|
ln -s /usr/share/ublue-os/bazzite/themes/vgui2.json $HOME/.config/presets/user/vgui2.json
|
|
|
|
if [[ $IMAGE_NAME =~ "deck" ]]; then
|
|
echo 'Running setup for Silverblue on Steam Deck'
|
|
|
|
echo 'Enabling Bazzite tofu menu fork'
|
|
gnome-extensions enable tofumenu@tofu
|
|
fi
|
|
fi
|
|
|
|
# Setup Flathub
|
|
if grep -qz 'fedora' <<< $(flatpak remotes); then
|
|
flatpak remote-delete --user fedora --force
|
|
fi
|
|
flatpak remote-add --if-not-exists --user flathub /etc/flatpak/remotes.d/flathub.flatpakrepo
|
|
|
|
# Prevent future executions
|
|
echo "Writing state file"
|
|
touch $HOME/.bazzite-configured
|