Skip to content

Commit

Permalink
feat(gnome): Add ujust command to reset Bazzite setting customizations
Browse files Browse the repository at this point in the history
  • Loading branch information
KyleGospo committed Jan 11, 2024
1 parent fbbea6c commit e4455c6
Show file tree
Hide file tree
Showing 2 changed files with 51 additions and 0 deletions.
26 changes: 26 additions & 0 deletions system_files/deck/shared/usr/share/ublue-os/just/60-custom.just
Original file line number Diff line number Diff line change
Expand Up @@ -441,6 +441,32 @@ install-opentabletdriver:
systemctl enable --user --now arch-opentabletdriver.service && \
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
[private]
distrobox-check-fedora:
Expand Down
25 changes: 25 additions & 0 deletions system_files/desktop/shared/usr/share/ublue-os/just/60-custom.just
Original file line number Diff line number Diff line change
Expand Up @@ -507,6 +507,31 @@ remove-virtual-surround-71:
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."

# 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
[private]
distrobox-check-fedora:
Expand Down

0 comments on commit e4455c6

Please sign in to comment.