feat(gnome): Add ujust command to reset Bazzite setting customizations

This commit is contained in:
Kyle Gospodnetich 2024-01-10 20:05:21 -08:00
parent fbbea6ce20
commit e4455c67fd
2 changed files with 51 additions and 0 deletions

View File

@ -441,6 +441,32 @@ install-opentabletdriver:
systemctl enable --user --now arch-opentabletdriver.service && \ systemctl enable --user --now arch-opentabletdriver.service && \
distrobox enter -n arch -- 'distrobox-export --app otd-gui' distrobox enter -n arch -- 'distrobox-export --app otd-gui'
# Restore Bazzite customized DE settings (GNOME only)
restore-gnome-de-settings:
#!/usr/bin/bash
IMAGE_INFO="/usr/share/ublue-os/image-info.json"
BASE_IMAGE_NAME=$(jq -r '."base-image-name"' < $IMAGE_INFO)
if [[ ${BASE_IMAGE_NAME} == 'silverblue' ]]; then
dconf load / < /usr/etc/dconf/db/local.d/02-bazzite-global
dconf load / < /usr/etc/dconf/db/local.d/03-bazzite-dash
dconf load / < /usr/etc/dconf/db/local.d/05-bazzite-extensions
dconf load / < /usr/etc/dconf/db/local.d/06-bazzite-theme
dconf load / < /usr/etc/dconf/db/local.d/07-bazzite-deck
else
echo 'This command may only be used on GNOME.'
fi
# Restore Bazzite customized applications folders (GNOME only)
restore-gnome-folders:
#!/usr/bin/bash
IMAGE_INFO="/usr/share/ublue-os/image-info.json"
BASE_IMAGE_NAME=$(jq -r '."base-image-name"' < $IMAGE_INFO)
if [[ ${BASE_IMAGE_NAME} == 'silverblue' ]]; then
dconf load / < /usr/etc/dconf/db/local.d/04-bazzite-folders
else
echo 'This command may only be used on GNOME.'
fi
# Create fedora distrobox if it doesn't exist # Create fedora distrobox if it doesn't exist
[private] [private]
distrobox-check-fedora: distrobox-check-fedora:

View File

@ -507,6 +507,31 @@ remove-virtual-surround-71:
rm ~/.config/pipewire/hrir_hesuvi/Control_Room_1.wav rm ~/.config/pipewire/hrir_hesuvi/Control_Room_1.wav
echo "Virtual Surround 7.1 removed, please reboot or restart pipewire for it to take effect." echo "Virtual Surround 7.1 removed, please reboot or restart pipewire for it to take effect."
# Restore Bazzite customized DE settings (GNOME only)
restore-gnome-de-settings:
#!/usr/bin/bash
IMAGE_INFO="/usr/share/ublue-os/image-info.json"
BASE_IMAGE_NAME=$(jq -r '."base-image-name"' < $IMAGE_INFO)
if [[ ${BASE_IMAGE_NAME} == 'silverblue' ]]; then
dconf load / < /usr/etc/dconf/db/local.d/02-bazzite-global
dconf load / < /usr/etc/dconf/db/local.d/03-bazzite-dash
dconf load / < /usr/etc/dconf/db/local.d/05-bazzite-extensions
dconf load / < /usr/etc/dconf/db/local.d/06-bazzite-theme
else
echo 'This command may only be used on GNOME.'
fi
# Restore Bazzite customized applications folders (GNOME only)
restore-gnome-folders:
#!/usr/bin/bash
IMAGE_INFO="/usr/share/ublue-os/image-info.json"
BASE_IMAGE_NAME=$(jq -r '."base-image-name"' < $IMAGE_INFO)
if [[ ${BASE_IMAGE_NAME} == 'silverblue' ]]; then
dconf load / < /usr/etc/dconf/db/local.d/04-bazzite-folders
else
echo 'This command may only be used on GNOME.'
fi
# Create fedora distrobox if it doesn't exist # Create fedora distrobox if it doesn't exist
[private] [private]
distrobox-check-fedora: distrobox-check-fedora: