install.fairie/dotfiles/.local/bin/install-rofi-theme
Brian Zalewski 8431fd8df8 Update dotfiles/.vim/colors/betelgeuse.vim, dotfiles/.local/share/xfce4/terminal/colorschemes/betelgeuse.theme, dotfiles/.config/alacritty/alacritty.yml, dotfiles/.local/bin/install-rofi-theme, dotfiles/.config/xfce4/terminal/terminalrc
Deleted dotfiles/.local/share/rofi/themes/material.rasi, dotfiles/.local/share/qt5ct/colors/flat-remix-dark.conf, dotfiles/.local/share/qt5ct/colors/flat-remix-light.conf, dotfiles/.local/share/qt5ct/qss/fusion-simple-scrollbar.qss, dotfiles/.config/qt5ct/qt5ct.conf, dotfiles/.config/tilix/schemes/Betelgeuse.json, dotfiles/.config/inkscape/palettes/betelgeuse-palette.gpl
2022-09-30 14:57:44 +00:00

22 lines
925 B
Bash

#!/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 'if [ -d ~/Downloads/rofi ]; then cd ~/Downloads/rofi && git config pull.rebase false && git pull origin master; else git clone https://github.com/adi1090x/rofi.git ~/Downloads/rofi; fi; tar -zcvf /tmp/rofi.tar.gz ~/Downloads/rofi'
qvm-run --pass-io provision "cat /tmp/rofi.tar.gz" > "/tmp/rofi.tar.gz"
tar -xvf "/tmp/rofi.tar.gz" -C "$HOME"
rm -f "/tmp/rofi.tar.gz"
cd "$HOME/rofi" && bash setup.sh
rm -rf "$HOME/rofi"
else
if [ -d /usr/local/src/rofi-theme/.git ]; then
cd /usr/local/src/rofi-theme
sudo git config pull.rebase false
sudo git pull origin master
cd ~/
else
sudo rm -rf /usr/local/src/rofi-theme
sudo git clone https://github.com/adi1090x/rofi.git /usr/local/src/rofi-theme
fi
fi