#!/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' mkdir -p $HOME/Desktop/ cp /usr/share/applications/steam.desktop $HOME/Desktop/steam.desktop cp /etc/skel.d/Desktop/Return.desktop $HOME/Desktop/Return.desktop cp /usr/share/applications/net.lutris.Lutris.desktop $HOME/Desktop/net.lutris.Lutris.desktop cp /usr/share/applications/yafti.desktop $HOME/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 echo 'Disabling GNOME keyboard' gsettings set org.gnome.desktop.interface toolkit-accessibility false gnome-extensions enable cariboublocker@git.keringar.xyz echo 'Configuring search replacement with Steam Deck Keyboard support' gnome-extensions enable search-light@icedman.github.com echo 'Tweaking GNOME indexer' mkdir -p $HOME/.steam touch $HOME/.steam/.trackerignore mkdir -p $HOME/.local/share/Steam touch $HOME/.local/share/Steam/.trackerignore 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 # Apply Neofetch alias to Fish Shell mkdir -p $HOME/.config/fish/functions/ ln -s /etc/profile.d/neofetch.sh $HOME/.config/fish/functions/neofetch.fish # Prevent future executions echo "Writing state file" touch $HOME/.bazzite-configured