Update to allow for choosing whether to download JetbrainsMono or not
This commit is contained in:
parent
0a3ad6c0ab
commit
48d31c99d5
31
archsetup.sh
31
archsetup.sh
|
@ -1,6 +1,6 @@
|
||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
|
|
||||||
scripts_PATH=$1
|
scripts_PATH=$1/arch-automated-installer
|
||||||
username=$(whoami)
|
username=$(whoami)
|
||||||
home_PATH=/home/$username
|
home_PATH=/home/$username
|
||||||
|
|
||||||
|
@ -112,16 +112,27 @@ echo "========"
|
||||||
echo ""
|
echo ""
|
||||||
|
|
||||||
# Get JetBrainsMono font
|
# Get JetBrainsMono font
|
||||||
font_PATH="$home_PATH/.local/share/fonts"
|
while true; do
|
||||||
if [[ ! -d $font_PATH ]]; then
|
read -p "Do you want to install JetBrainsMono Nerd Font?" answer
|
||||||
|
if [[ "${answer}" == "y" ]]; then
|
||||||
|
font_PATH="$home_PATH/.local/share/fonts"
|
||||||
|
if [[ ! -d $font_PATH ]]; then
|
||||||
mkdir $font_PATH
|
mkdir $font_PATH
|
||||||
fi
|
fi
|
||||||
mkdir $font_PATH/JetBrainsMono
|
mkdir $font_PATH/JetBrainsMono
|
||||||
cd $font_PATH/JetBrainsMono
|
cd $font_PATH/JetBrainsMono
|
||||||
wget https://github.com/ryanoasis/nerd-fonts/releases/latest/download/JetBrainsMono.tar.xz
|
wget https://github.com/ryanoasis/nerd-fonts/releases/latest/download/JetBrainsMono.tar.xz
|
||||||
cd $font_PATH/JetbrainsMono && tar -xvf JetBrainsMono.tar.xz
|
cd $font_PATH/JetbrainsMono && tar -xvf JetBrainsMono.tar.xz
|
||||||
cd ""
|
cd ""
|
||||||
echo ""
|
echo ""
|
||||||
|
break
|
||||||
|
elif [[ "${answer}" == "n" ]]; then
|
||||||
|
echo "Skipping JetBrainsMono Nerd Font Install"
|
||||||
|
break
|
||||||
|
else
|
||||||
|
echo "Invalid Response (y/n)"
|
||||||
|
fi
|
||||||
|
done
|
||||||
|
|
||||||
# Build pijulius's Picom
|
# Build pijulius's Picom
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue