Fixed install.sh

This commit is contained in:
Darkkal44
2023-04-29 18:24:45 +05:30
parent eb4526c5ae
commit 56c04e4649
+2 -3
View File
@@ -30,7 +30,7 @@ else
fi
# Install packages
sudo paru -Syu base-devel qtile python-psutil pywal-git picom-jonaburg-fix dunst zsh starship mpd ncmpcpp playerctl brightnessctl alacritty pfetch htop flameshot thunar roficlip rofi ranger cava pulseaudio pavucontrol neovim vim git sddm zsh-autosuggestions zsh-syntax-highlighting --noconfirm --needed
paru -Syu base-devel qtile python-psutil pywal-git picom-jonaburg-fix dunst zsh starship mpd ncmpcpp playerctl brightnessctl alacritty pfetch htop flameshot thunar roficlip rofi ranger cava pulseaudio pavucontrol neovim vim git sddm zsh-autosuggestions zsh-syntax-highlighting --noconfirm --needed
# Check and set Zsh as the default shell
[[ "$(awk -F: -v user="$USER" '$1 == user {print $NF}' /etc/passwd) " =~ "zsh " ]] || chsh -s $(which zsh)
@@ -53,7 +53,7 @@ echo "Backing up the current configs. All the backup files will be available at
mkdir -p ~/.cozy.bak
for folder in .* *; do
if [[ -d "$folder" && ! "$folder" =~ ^(\.|\.\.)$ ]]; then
if [[ -d "$folder" && ! "$folder" =~ ^(\.|\.\.)$ && "$folder" != ".git" ]]; then
if [ -d "$HOME/$folder" ]; then
echo "Backing up ~/$folder"
cp -r "$HOME/$folder" ~/.cozy.bak
@@ -70,7 +70,6 @@ done
# Check if SDDM is installed and install if not
if pacman -Qs sddm > /dev/null; then
echo "SDDM is already installed"