Update dotfiles/.local/bin/install-terminal-theme, dotfiles/.local/bin/ramqube, dotfiles/.local/bin/quickstart, dotfiles/.local/bin/install-dotfiles, dotfiles/.local/share/qt5ct/colors/flat-remix-dark.conf
Deleted dotfiles/.vimrc, dotfiles/.yarnrc, dotfiles/.tool-versions, dotfiles/.netrc
This commit is contained in:
parent
09693f03f4
commit
f87744d4c7
9 changed files with 1151 additions and 1 deletions
58
dotfiles/.local/bin/install-dotfiles
Normal file
58
dotfiles/.local/bin/install-dotfiles
Normal file
|
@ -0,0 +1,58 @@
|
||||||
|
#!/usr/bin/env bash
|
||||||
|
|
||||||
|
if [ -f '/etc/qubes-release' ]; then
|
||||||
|
# Qubes dom0
|
||||||
|
if qvm-check dom-dotfiles &> /dev/null; then
|
||||||
|
qvm-shutdown --force dom-dotfiles &> /dev/null || EXIT_CODE=$?
|
||||||
|
sleep 1
|
||||||
|
qvm-remove --force dom-dotfiles &> /dev/null || EXIT_CODE=$?
|
||||||
|
sleep 1
|
||||||
|
fi
|
||||||
|
qvm-create --label red --template debian-11 dom-dotfiles
|
||||||
|
qvm-run dom-dotfiles 'curl -sSL https://gitlab.com/megabyte-labs/dotfiles/-/archive/master/dotfiles-master.tar.gz > dotfiles.tar.gz'
|
||||||
|
qvm-run --pass-io dom-dotfiles "cat dotfiles.tar.gz" > "$HOME/dotfiles.tar.gz"
|
||||||
|
tar -xzf "$HOME/dotfiles.tar.gz" -C "$HOME"
|
||||||
|
rm -f "$HOME/dotfiles.tar.gz"
|
||||||
|
sudo rm -rf /usr/src/dotfiles
|
||||||
|
sudo cp -rf "$HOME/dotfiles" /usr/src/dotfiles
|
||||||
|
|
||||||
|
# Delete DispVM
|
||||||
|
qvm-shutdown --force dom-dotfiles &> /dev/null || EXIT_CODE=$?
|
||||||
|
sleep 1
|
||||||
|
qvm-remove --force dom-dotfiles &> /dev/null || EXIT_CODE=$?
|
||||||
|
else
|
||||||
|
if [ -d /usr/src/dotfiles/.git ]; then
|
||||||
|
cd /usr/src/dotfiles
|
||||||
|
git pull origin master
|
||||||
|
cd ~/
|
||||||
|
else
|
||||||
|
sudo git clone https://gitlab.com/megabyte-labs/dotfiles.git /usr/src/dotfiles
|
||||||
|
fi
|
||||||
|
fi
|
||||||
|
|
||||||
|
# Copy dotfile folders
|
||||||
|
while read DOTFILE_FOLDER; do
|
||||||
|
BASENAME_FOLDER="$(basename "$DOTFILE_FOLDER")"
|
||||||
|
cp -rf "$DOTFILE_FOLDER/" "$HOME/$BASENAME_FOLDER"
|
||||||
|
done < <(find /usr/src/dotfiles/dotfiles -type d -maxdepth 1)
|
||||||
|
|
||||||
|
# Copy dotfile files
|
||||||
|
while read DOTFILE_FILE; do
|
||||||
|
BASENAME_FILE="$(basename "$DOTFILE_FILE")"
|
||||||
|
cp "$DOTFILE_FILE" "$HOME/$BASENAME_FILE"
|
||||||
|
chmod 600 "$HOME/$BASENAME_FILE"
|
||||||
|
done < <(find /usr/src/dotfiles/dotfiles -type f -maxdepth 1)
|
||||||
|
|
||||||
|
# Ensure .local/bin contents are executable
|
||||||
|
while read LOCAL_BIN; do
|
||||||
|
chmod +x "${LOCAL_BIN}"
|
||||||
|
done < <(find "$HOME/.local/bin" -type f -maxdepth 1)
|
||||||
|
|
||||||
|
# Firefox theme
|
||||||
|
if [ ! -f ~/.mozilla/firefox ] && [ ! -f '/etc/qubes-release' ]; then
|
||||||
|
git clone https://github.com/EliverLara/firefox-sweet-theme /tmp/firefox-sweet-theme
|
||||||
|
bash /tmp/firefox-sweet-theme/scripts/install.sh
|
||||||
|
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
|
1046
dotfiles/.local/bin/install-terminal-theme
Normal file
1046
dotfiles/.local/bin/install-terminal-theme
Normal file
File diff suppressed because it is too large
Load diff
18
dotfiles/.local/bin/quickstart
Normal file
18
dotfiles/.local/bin/quickstart
Normal file
|
@ -0,0 +1,18 @@
|
||||||
|
#!/usr/bin/env bash
|
||||||
|
|
||||||
|
if [ -f /etc/lightdm/lightdm.conf.bak ]; then
|
||||||
|
sudo mv /etc/lightdm/lightdm.conf.bak /etc/lightdm/lightdm.conf
|
||||||
|
fi
|
||||||
|
|
||||||
|
if [ -f ~/.config/autostart/first-boot.desktop ]; then
|
||||||
|
rm ~/.config/autostart/first-boot.desktop
|
||||||
|
fi
|
||||||
|
|
||||||
|
if type qvm-run &> /dev/null; then
|
||||||
|
qvm-run --pass-io personal "curl -sSL https://install.doctor/qubes" > "$HOME/setup.sh" && bash "$HOME/setup.sh"
|
||||||
|
elif [ -d '/Applications' ] && [ -d '/Users' ] && [ -d '/Library' ]; then
|
||||||
|
curl -sSL https://install.doctor/quickstart > "$HOME/setup.sh" && bash "$HOME/setup.sh"
|
||||||
|
elif [ -f '/etc/os-release' ]; then
|
||||||
|
curl -sSL https://install.doctor/quickstart > "$HOME/setup.sh" && bash "$HOME/setup.sh"
|
||||||
|
fi
|
||||||
|
rm -f "$HOME/setup.sh"
|
28
dotfiles/.local/bin/ramqube
Normal file
28
dotfiles/.local/bin/ramqube
Normal file
|
@ -0,0 +1,28 @@
|
||||||
|
#!/usr/bin/env bash
|
||||||
|
|
||||||
|
# Creates a Qube on RAM disk and opens Firefox if the Qube does not already exist.
|
||||||
|
# If the Qube already exists, then running this will delete it.
|
||||||
|
# Source: https://github.com/unman/stuff/blob/main/ramqube.sh
|
||||||
|
# Source: https://github.com/unman/stuff/blob/main/rmram.sh
|
||||||
|
|
||||||
|
if [ -f '/home/user/RQube' ]; then
|
||||||
|
mkdir /home/user/RQube
|
||||||
|
sudo mount -t tmpfs -o size=2G rqube /home/user/RQube/
|
||||||
|
qvm-pool --add rqubepool file -o revisions_to_keep=1,dir_path=/home/user/RQube/
|
||||||
|
qvm-create rqube -P rqubepool -t debian-11 -l purple --property netvm=tor
|
||||||
|
qvm-run rqube firefox-esr
|
||||||
|
else
|
||||||
|
read -p "RAM Qube alredy exists. Press ENTER to delete."
|
||||||
|
qvm-kill rqube
|
||||||
|
qvm-remove -f rqube
|
||||||
|
qvm-pool -r rqubepool
|
||||||
|
sudo umount rqube
|
||||||
|
rm -rf /home/user/RQube
|
||||||
|
sudo rm -rf /var/log/libvirt/libxl/new.log
|
||||||
|
sudo rm -rf /var/log/libvirt/libxl/new.log
|
||||||
|
sudo rm -rf /var/log/qubes/vm-new.log
|
||||||
|
sudo rm -rf /var/log/guid/new.log
|
||||||
|
sudo rm -rf /var/log/qrexec.new.log
|
||||||
|
sudo rm -rf /var/log/pacat.new.log
|
||||||
|
sudo rm -rf /var/log/qubesdb.new.log
|
||||||
|
fi
|
|
@ -1,4 +1,4 @@
|
||||||
[ColorScheme]
|
[ColorScheme]
|
||||||
active_colors=#ffffffff, #ff1c2029, #ff3c4150, #ff21242d, #ff050609, #ff15171e, #ffffffff, #ffffffff, #ffffffff, #ff272a34, #ff23252e, #ffe7e4e0, #ff2777ff, #fff9f9f9, #ff2777ff, #ff2777ff, #ff21242d, #ffffffff, #ff23252e, #ffffffff, #80ffffff
|
active_colors=#ffffffff, #ff1c2029, #ff3c4150, #ff21242d, #ff050609, #ff15171e, #ffffffff, #ffffffff, #ffffffff, #ff272a34, #ff23252e, #ffe7e4e0, #ff2777ff, #fff9f9f9, #ff2777ff, #ff2777ff, #ff21242d, #ffffffff, #ff23252e, #ffffffff, #80ffffff
|
||||||
disabled_colors=#ff808080, #ff1c2029, #ff3c4150, #ff21242d, #ff050609, #ff15171e, #ff808080, #ffffffff, #ff808080, #ff272a34, #ff23252e, #ffe7e4e0, #ff2777ff, #ff808080, #ff2777ff, #ff2777ff, #ff21242d, #ffffffff, #ff23252e, #ffffffff, #80ffffff
|
disabled_colors=#ff808080, #ff1c2029, #ff3c4150, #ff21242d, #ff050609, #ff15171e, #ff808080, #ffffffff, #ff808080, #ff272a34, #ff23252e, #ffe7e4e0, #ff2777ff, #ff808080, #ff2777ff, #ff2777ff, #ff21242d, #ffffffff, #ff23252e, #ffffffff, #80ffffff
|
||||||
inactive_colors=#ffffffff, #ff1c2029, #ff3c4150, #ff21242d, #ff050609, #ff15171e, #ffffffff, #ffffffff, #ffffffff, #ff272a34, #ff23252e, #ffe7e4e0, #ff2777ff, #fff9f9f9, #ff2777ff, #ff2777ff, #ff21242d, #ffffffff, #ff23252e, #ffffffff, #80ffffff
|
inactive_colors=#ffffffff, #ff1c2029, #ff3c4150, #ff21242d, #ff050609, #ff15171e, #ffffffff, #ffffffff, #ffffffff, #ff272a34, #ff23252e, #ffe7e4e0, #ff2777ff, #fff9f9f9, #ff2777ff, #ff2777ff, #ff21242d, #ffffffff, #ff23252e, #ffffffff, #80ffffff
|
||||||
|
|
Loading…
Reference in a new issue