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-08 20:53:26 +00:00
|
|
|
kcmshell5 kcm_kwin_scripts
|
|
|
|
|
|
|
|
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'
|
|
|
|
cp /usr/share/applications/steam.desktop ~/Desktop
|
|
|
|
sed -i 's@Steam (Runtime)@Steam@g' ~/Desktop/steam.desktop
|
|
|
|
cp /etc/skel.d/Desktop/Return.desktop ~/Desktop
|
|
|
|
cp /usr/share/applications/lutris.desktop ~/Desktop
|
2023-08-08 22:01:41 +00:00
|
|
|
cp /usr/share/applications/yafti.desktop ~/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']"
|
|
|
|
|
|
|
|
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-08 20:53:26 +00:00
|
|
|
gsettings set org.gnome.shell.extensions.fedora-menu menu-button-icon-size 20
|
2023-08-09 02:00:31 +00:00
|
|
|
gnome-extensions enable tofumenu@tofu
|
2023-08-08 20:53:26 +00:00
|
|
|
fi
|
2023-08-08 21:48:45 +00:00
|
|
|
fi
|
|
|
|
|
|
|
|
# Prevent future executions
|
|
|
|
echo "Writing state file"
|
|
|
|
touch $HOME/.bazzite-configured
|