Skip to content

Commit

Permalink
fix(just): Use image info consistently
Browse files Browse the repository at this point in the history
  • Loading branch information
EyeCantCU committed Sep 22, 2023
1 parent de1945d commit 74aac9f
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 9 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,7 @@ install-fleek-themes:
#!/usr/bin/env bash
if [[ -x "/var/usrlocal/bin/fleek" ]]; then
IMAGE_INFO="/usr/share/ublue-os/image-info.json"
BASE_IMAGE_NAME=$(jq '."base-image-name"' $BASE_IMAGE_NAME)
BASE_IMAGE_NAME=$(jq '."base-image-name"' $IMAGE_INFO)
if [[ ${BASE_IMAGE_NAME} == 'silverblue' ]]; then
fleek add adw-gtk3 --apply
else
Expand Down Expand Up @@ -172,7 +172,7 @@ patch-gmod:
enable-vapor-theme:
#!/usr/bin/env bash
IMAGE_INFO="/usr/share/ublue-os/image-info.json"
BASE_IMAGE_NAME=$(jq '."base-image-name"' $BASE_IMAGE_NAME)
BASE_IMAGE_NAME=$(jq '."base-image-name"' IMAGE_INFO)
if [[ ${BASE_IMAGE_NAME} == 'silverblue' ]]; then
gnome-extensions enable [email protected]
gsettings set org.gnome.mutter center-new-windows true
Expand All @@ -195,7 +195,7 @@ enable-vapor-theme:
enable-vgui2-theme:
#!/usr/bin/env bash
IMAGE_INFO="/usr/share/ublue-os/image-info.json"
BASE_IMAGE_NAME=$(jq '."base-image-name"' $BASE_IMAGE_NAME)
BASE_IMAGE_NAME=$(jq '."base-image-name"' $IMAGE_INFO)
if [[ ${BASE_IMAGE_NAME} == 'silverblue' ]]; then
gnome-extensions enable [email protected]
gsettings set org.gnome.mutter center-new-windows true
Expand All @@ -218,7 +218,7 @@ enable-vgui2-theme:
install-adwaita-for-steam:
#!/usr/bin/env bash
IMAGE_INFO="/usr/share/ublue-os/image-info.json"
BASE_IMAGE_NAME=$(jq '."base-image-name"' $BASE_IMAGE_NAME)
BASE_IMAGE_NAME=$(jq '."base-image-name"' $IMAGE_INFO)
if [[ ${BASE_IMAGE_NAME} == 'silverblue' ]]; then
if [ -d "$HOME/homebrew/themes" ]; then
git clone https://github.com/tkashkin/Adwaita-for-Steam.git --single-branch "$HOME/homebrew/themes/Adwaita-for-Steam"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,8 @@ install-obs-studio-portable:

# Set up Bazzite-Arch Distrobox container
install-bazzite-arch:
source /etc/default/bazzite && \
IMAGE_INFO="/usr/share/ublue-os/image-info.json" && \
BASE_IMAGE_NAME=$(jq '."base-image-name"' $IMAGE_INFO) && \
if grep -qz "bazzite-arch" <<< $(distrobox list); then \
echo 'Removing existing Bazzite Arch install...' && \
distrobox rm bazzite-arch --force; \
Expand Down Expand Up @@ -71,8 +72,10 @@ install-bazzite-arch:

# Remove container image for bazzite-arch and reinstall it
reset-bazzite-arch:
IMAGE_INFO="/usr/share/ublue-os/image-info.json" && \
BASE_IMAGE_NAME=$(jq '."base-image-name"' $IMAGE_INFO) && \
distrobox stop bazzite-arch && \
distrobox rm bazzite-arch --force \
distrobox rm bazzite-arch --force && \
if [[ ${BASE_IMAGE_NAME} == 'kinoite' ]]; then \
podman image rm bazzite-arch --force \
else \
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,7 @@ get-greenlight:
enable-supergfxctl:
#!/usr/bin/env bash
IMAGE_INFO="/usr/share/ublue-os/image-info.json"
IMAGE_FLAVOR=$(jq '."image-flavor"' $IMAGE_FLAVOR)
IMAGE_FLAVOR=$(jq '."image-flavor"' $IMAGE_INFO)
if [[ ${IMAGE_FLAVOR} == 'nvidia' ]]; then
systemctl enable --now supergfxd.service
else
Expand Down Expand Up @@ -115,7 +115,7 @@ patch-gmod:
enable-vapor-theme:
#!/usr/bin/env bash
IMAGE_INFO="/usr/share/ublue-os/image-info.json"
BASE_IMAGE_NAME=$(jq '."base-image-name"' $BASE_IMAGE_NAME)
BASE_IMAGE_NAME=$(jq '."base-image-name"' $IMAGE_INFO)
if [[ ${BASE_IMAGE_NAME} == 'silverblue' ]]; then
gnome-extensions enable [email protected]
gsettings set org.gnome.mutter center-new-windows true
Expand All @@ -140,7 +140,7 @@ enable-vapor-theme:
enable-vgui2-theme:
#!/usr/bin/env bash
IMAGE_INFO="/usr/share/ublue-os/image-info.json"
BASE_IMAGE_NAME=$(jq '."base-image-name"' $BASE_IMAGE_NAME)
BASE_IMAGE_NAME=$(jq '."base-image-name"' $IMAGE_INFO)
if [[ ${BASE_IMAGE_NAME} == 'silverblue' ]]; then
gnome-extensions enable [email protected]
gsettings set org.gnome.mutter center-new-windows true
Expand All @@ -164,6 +164,8 @@ enable-vgui2-theme:
# Install Adwaita-for-Steam theme for CSS Loader (https://github.com/tkashkin/Adwaita-for-Steam)
install-adwaita-for-steam:
#!/usr/bin/env bash
IMAGE_INFO="/usr/share/ublue-os/image-info.json" && \
BASE_IMAGE_NAME=$(jq '."base-image-name"' $IMAGE_INFO) && \
if [[ ${BASE_IMAGE_NAME} == 'silverblue' ]]; then
if [ -d "$HOME/homebrew/themes" ]; then
git clone https://github.com/tkashkin/Adwaita-for-Steam.git --single-branch "$HOME/homebrew/themes/Adwaita-for-Steam"
Expand Down

0 comments on commit 74aac9f

Please sign in to comment.