From ca922bda274624faf93d52c4f8b79502df6639db Mon Sep 17 00:00:00 2001 From: HikariKnight <2557889+HikariKnight@users.noreply.github.com> Date: Sat, 9 Mar 2024 09:48:44 +0100 Subject: [PATCH] chore(just): move incus to apps justfile --- just/bluefin-apps.just | 17 +++++++++++++++++ just/custom.just | 16 ---------------- 2 files changed, 17 insertions(+), 16 deletions(-) diff --git a/just/bluefin-apps.just b/just/bluefin-apps.just index 8f2387069c7..cfdd4aa458e 100644 --- a/just/bluefin-apps.just +++ b/just/bluefin-apps.just @@ -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 diff --git a/just/custom.just b/just/custom.just index 5fd6bd92357..7ad9f83e2b0 100644 --- a/just/custom.just +++ b/just/custom.just @@ -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 @@ -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