diff --git a/dotfiles/.local/bin/install-dotfiles b/dotfiles/.local/bin/install-dotfiles index 6b90f42f..a55e3744 100644 --- a/dotfiles/.local/bin/install-dotfiles +++ b/dotfiles/.local/bin/install-dotfiles @@ -76,5 +76,26 @@ if [ -d /Applications ] && [ -d /System ]; then fi fi +# Update local Betelgeuse theme files (if not on macOS system) +if [ ! -d /Applications ] && [ ! -d /Library ]; then + if [ -f '/etc/qubes-release' ]; then + # Qubes dom0 + qvm-create --label red --template debian-11 provision &> /dev/null || EXIT_CODE=$? + qvm-run --pass-io provision 'rm -f ~/Downloads/betelgeuse-master.tar.gz && curl -sSL https://gitlab.com/megabyte-labs/misc/betelgeuse/-/archive/master/betelgeuse-master.tar.gz > /tmp/betelgeuse-master.tar.gz' + qvm-run --pass-io provision "cat /tmp/betelgeuse-master.tar.gz" > "/tmp/betelgeuse-master.tar.gz" + cd /tmp + tar -xvf betelgeuse-master.tar.gz > /dev/null + rm betelgeuse-master.tar.gz + cp -rf betelgeuse-master/share/ "$HOME/.local/share" + rm -rf betelgeuse-master + else + curl -sSL https://gitlab.com/megabyte-labs/misc/betelgeuse/-/archive/master/betelgeuse-master.tar.gz > betelgeuse-master.tar.gz + tar -xzf betelgeuse-master.tar.gz > /dev/null + rm betelgeuse-master.tar.gz + cp -rf betelgeuse-master/share/ "$HOME/.local/share" + rm -rf betelgeuse-master + fi +fi + # grep -q QT_QPA_PLATFORMTHEME=qt5ct /etc/environment || echo QT_QPA_PLATFORMTHEME=qt5ct | sudo tee -a /etc/environment # sudo cp -rv "$HOME/.local/share/qt5ct" /usr/share diff --git a/dotfiles/.local/bin/provision b/dotfiles/.local/bin/provision index b6e78a83..673c659f 100644 --- a/dotfiles/.local/bin/provision +++ b/dotfiles/.local/bin/provision @@ -12,11 +12,9 @@ fi # Install Homebrew bundle and go-task brew install go-task/tap/go-task -# Use run alias to invoke the `$HOME/.local/Taskfile.yml` +# Run dotfiles install scripts chmod +x $HOME/.local/bin/* -install-dotfiles & -install-terminal-theme & -update-local-betelgeuse & -update-taskfiles & -wait +install-dotfiles + +# Use run alias to invoke the `$HOME/.local/Taskfile.yml` run localhost:provision diff --git a/dotfiles/.local/bin/update-local-betelgeuse b/dotfiles/.local/bin/update-local-betelgeuse deleted file mode 100644 index 2d01f876..00000000 --- a/dotfiles/.local/bin/update-local-betelgeuse +++ /dev/null @@ -1,19 +0,0 @@ -#!/usr/bin/env bash - -if [ -f '/etc/qubes-release' ]; then - # Qubes dom0 - qvm-create --label red --template debian-11 provision &> /dev/null || EXIT_CODE=$? - qvm-run --pass-io provision 'rm -f ~/Downloads/betelgeuse-master.tar.gz && curl -sSL https://gitlab.com/megabyte-labs/misc/betelgeuse/-/archive/master/betelgeuse-master.tar.gz > /tmp/betelgeuse-master.tar.gz' - qvm-run --pass-io provision "cat /tmp/betelgeuse-master.tar.gz" > "/tmp/betelgeuse-master.tar.gz" - cd /tmp - tar -xvf betelgeuse-master.tar.gz > /dev/null - rm betelgeuse-master.tar.gz - cp -rf betelgeuse-master/share/ "$HOME/.local/share" - rm -rf betelgeuse-master -else - curl -sSL https://gitlab.com/megabyte-labs/misc/betelgeuse/-/archive/master/betelgeuse-master.tar.gz > betelgeuse-master.tar.gz - tar -xzf betelgeuse-master.tar.gz > /dev/null - rm betelgeuse-master.tar.gz - cp -rf betelgeuse-master/share/ "$HOME/.local/share" - rm -rf betelgeuse-master -fi