2023-08-08 20:53:26 +00:00
|
|
|
#!/usr/bin/env bash
|
|
|
|
source /etc/default/bazzite
|
|
|
|
|
|
|
|
if [[ $BASE_IMAGE_NAME =~ "kinoite" ]]; then
|
|
|
|
echo 'Running setup for Kinoite'
|
|
|
|
|
2023-08-08 21:20:09 +00:00
|
|
|
echo 'Enabling System76-Scheduler KWin script'
|
2023-08-09 02:23:10 +00:00
|
|
|
kwriteconfig5 --file kwinrc --group Plugins --key kwin-system76-scheduler-integrationEnabled true
|
2023-08-08 20:53:26 +00:00
|
|
|
|
|
|
|
if [[ $IMAGE_NAME =~ "deck" ]]; then
|
2023-08-08 21:48:45 +00:00
|
|
|
echo 'Running setup for Kinoite on Steam Deck'
|
|
|
|
|
2023-08-08 20:53:26 +00:00
|
|
|
echo 'Creating Desktop shortcuts'
|
2023-08-11 07:10:49 +00:00
|
|
|
mkdir -p $HOME/Desktop/
|
2023-08-15 14:56:28 +00:00
|
|
|
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
|
2023-08-08 20:53:26 +00:00
|
|
|
fi
|
|
|
|
else
|
|
|
|
echo 'Running setup for Silverblue'
|
|
|
|
|
|
|
|
echo 'Enabling GNOME extensions'
|
2023-08-09 02:00:31 +00:00
|
|
|
gnome-extensions enable s76-scheduler@mattjakeman.com
|
|
|
|
gnome-extensions enable gsconnect@andyholmes.github.io
|
|
|
|
gnome-extensions disable background-logo@fedorahosted.org
|
2023-08-08 20:53:26 +00:00
|
|
|
|
|
|
|
echo 'Enabling VRR'
|
|
|
|
gsettings set org.gnome.mutter experimental-features "['variable-refresh-rate']"
|
|
|
|
|
2023-08-10 15:25:13 +00:00
|
|
|
echo 'Disabling automatic GNOME Software updates'
|
|
|
|
gsettings set org.gnome.software download-updates false
|
|
|
|
gsettings set org.gnome.software download-updates-notify false
|
|
|
|
|
2023-08-08 20:53:26 +00:00
|
|
|
echo 'Installing Gradience presets'
|
|
|
|
mkdir -p $HOME/.config/presets/user/
|
2023-08-08 22:06:50 +00:00
|
|
|
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
|
2023-08-08 20:53:26 +00:00
|
|
|
|
|
|
|
if [[ $IMAGE_NAME =~ "deck" ]]; then
|
|
|
|
echo 'Running setup for Silverblue on Steam Deck'
|
|
|
|
|
2023-08-08 21:48:45 +00:00
|
|
|
echo 'Enabling Bazzite tofu menu fork'
|
2023-08-09 02:00:31 +00:00
|
|
|
gnome-extensions enable tofumenu@tofu
|
2023-08-15 06:32:09 +00:00
|
|
|
|
|
|
|
echo 'Disabling GNOME keyboard'
|
|
|
|
gsettings set org.gnome.desktop.interface toolkit-accessibility false
|
|
|
|
gnome-extensions enable cariboublocker@git.keringar.xyz
|
2023-08-15 14:52:22 +00:00
|
|
|
|
2023-08-16 06:11:05 +00:00
|
|
|
echo 'Configuring search replacement with Steam Deck Keyboard support'
|
|
|
|
gnome-extensions enable search-light@icedman.github.com
|
|
|
|
|
2023-08-15 14:52:22 +00:00
|
|
|
echo 'Tweaking GNOME indexer'
|
|
|
|
mkdir -p $HOME/.steam
|
|
|
|
touch $HOME/.steam/.trackerignore
|
2023-08-15 17:44:00 +00:00
|
|
|
mkdir -p $HOME/.local/share/Steam
|
|
|
|
touch $HOME/.local/share/Steam/.trackerignore
|
2023-08-08 20:53:26 +00:00
|
|
|
fi
|
2023-08-08 21:48:45 +00:00
|
|
|
fi
|
|
|
|
|
2023-08-09 04:21:05 +00:00
|
|
|
# Setup Flathub
|
|
|
|
if grep -qz 'fedora' <<< $(flatpak remotes); then
|
2023-08-09 15:50:35 +00:00
|
|
|
flatpak remote-delete --user fedora --force
|
2023-08-09 04:21:05 +00:00
|
|
|
fi
|
2023-08-09 15:50:35 +00:00
|
|
|
flatpak remote-add --if-not-exists --user flathub /etc/flatpak/remotes.d/flathub.flatpakrepo
|
2023-08-09 04:21:05 +00:00
|
|
|
|
2023-08-16 17:15:31 +00:00
|
|
|
# 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
|
|
|
|
|
2023-08-08 21:48:45 +00:00
|
|
|
# Prevent future executions
|
|
|
|
echo "Writing state file"
|
2023-08-09 04:21:05 +00:00
|
|
|
touch $HOME/.bazzite-configured
|