Skip to content

Commit

Permalink
chore(just): move incus to apps justfile
Browse files Browse the repository at this point in the history
  • Loading branch information
HikariKnight committed Mar 9, 2024
1 parent fc34033 commit ca922bd
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 16 deletions.
17 changes: 17 additions & 0 deletions just/bluefin-apps.just
Original file line number Diff line number Diff line change
Expand Up @@ -134,3 +134,20 @@ install-atuin:
echo "Adding bash-prexec and atuin to your .bashrc"
printf '\n[[ -f /usr/share/bash-prexec ]] && source /usr/share/bash-prexec\n[[ "$(command -v atuin)" ]] && eval "$(atuin init bash)"\n' >> ~/.bashrc
fi

alias incus := install-incus

# Install and configure Incus
install-incus:
#!/usr/bin/env bash
source /usr/lib/ujust/ujust.sh
CURRENT_IMAGE=$(rpm-ostree status -b --json | jq -r '.deployments[0]."container-image-reference"')
if grep -q "bluefin-dx" <<< $CURRENT_IMAGE
then
echo 'Installing and configuring Incus.'
/usr/bin/bluefin-incus
else
echo "Developer mode is currently ${b}${red}Disabled${n}."
echo "Run \"just devmode\" to turn on Developer mode."
exit
fi
16 changes: 0 additions & 16 deletions just/custom.just
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,6 @@ configure-shell ACTION="":
printf "${USER}'s shell is now %s.\n" "$(cat /etc/passwd | grep ":$UID:" | cut '-d:' '-f7')"
fi


# Install recommended GNOME extensions
gnome-extensions:
pip install --upgrade gnome-extensions-cli
Expand Down Expand Up @@ -123,21 +122,6 @@ gnome-vrr:
fi
echo "To apply the changes make sure you logout and restart your session"

# Install and configure Incus
incus:
#!/usr/bin/env bash
source /usr/lib/ujust/ujust.sh
CURRENT_IMAGE=$(rpm-ostree status -b --json | jq -r '.deployments[0]."container-image-reference"')
if grep -q "bluefin-dx" <<< $CURRENT_IMAGE
then
echo 'Installing and configuring Incus.'
/usr/bin/bluefin-incus
else
echo "Developer mode is currently ${b}${red}Disabled${n}."
echo "Run \"just devmode\" to turn on Developer mode."
exit
fi

# Ptyxis terminal transparency
ptyxis-transparency opacity="0.95":
#!/usr/bin/env bash
Expand Down

0 comments on commit ca922bd

Please sign in to comment.