From 9141d0ef5fc468cce6e084c2243b89a73c7d08b0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Thomas=20Av=C3=A9?= Date: Mon, 8 May 2023 17:06:58 +0200 Subject: [PATCH] don't reinstall packages --- install.sh | 17 +++++++++-------- 1 file changed, 9 insertions(+), 8 deletions(-) diff --git a/install.sh b/install.sh index 856a485..1061972 100755 --- a/install.sh +++ b/install.sh @@ -34,7 +34,7 @@ fi if $NVIM; then dependencies="neovim git npm unzip fzf cmake gcc make curl wget" if [[ $OS == "NAME=\"Arch Linux\"" ]]; then - pacman -Sy --noconfirm $dependencies + pacman -Sy --needed --noconfirm $dependencies elif [[ $OS == "NAME=\"Ubuntu\"" ]]; then apt update apt install -y software-properties-common @@ -56,7 +56,7 @@ if $ZSH; then PROFILE=true dependencies="fzf zsh curl" if [[ $OS == "NAME=\"Arch Linux\"" ]]; then - pacman -Sy --noconfirm $dependencies + pacman -Sy --needed --noconfirm $dependencies echo "Please manually install yay and autojump-rs" elif [[ $OS == "NAME=\"Ubuntu\"" ]]; then apt update @@ -82,9 +82,9 @@ fi ################################################# if $AWESOME; then - dependencies="awesome picom xbindkeys numlockx xcape" + dependencies="awesome picom numlockx xcape rofi" if [[ $OS == "NAME=\"Arch Linux\"" ]]; then - pacman -Sy --noconfirm $dependencies network-manager-applet + pacman -Sy --needed --noconfirm $dependencies network-manager-applet xorg-xmodmap adobe-source-code-pro-fonts noto-fonts ttf-nerd-fonts-symbols elif [[ $OS == "NAME=\"Ubuntu\"" ]]; then apt update apt install -y $dependencies awesome-extra @@ -92,7 +92,8 @@ if $AWESOME; then ln -s $PWD/awesome $XDG_CONFIG_HOME/awesome ln -s $PWD/picom/picom.conf $XDG_CONFIG_HOME/picom.conf - ln -s $PWD/picom/picom.conf $XDG_CONFIG_HOME/picom.conf + ln -s $PWD/xmodmap/.Xmodmap $XDG_CONFIG_HOME/.Xmodmap + ln -s $PWD/rofi $XDG_CONFIG_HOME/rofi fi ################################################# @@ -102,7 +103,7 @@ fi if $ALACRITTY; then dependencies="alacritty" if [[ $OS == "NAME=\"Arch Linux\"" ]]; then - pacman -Sy --noconfirm $dependencies + pacman -Sy --needed --noconfirm $dependencies elif [[ $OS == "NAME=\"Ubuntu\"" ]]; then apt update apt install -y software-properties-common @@ -121,7 +122,7 @@ fi if $MPV; then dependencies="mpv" if [[ $OS == "NAME=\"Arch Linux\"" ]]; then - pacman -Sy --noconfirm $dependencies + pacman -Sy --needed --noconfirm $dependencies elif [[ $OS == "NAME=\"Ubuntu\"" ]]; then apt update apt install -y $dependencies @@ -137,7 +138,7 @@ fi if $TMUX; then dependencies="tmux git zsh xdg-utils" if [[ $OS == "NAME=\"Arch Linux\"" ]]; then - pacman -Sy --noconfirm $dependencies + pacman -Sy --needed --noconfirm $dependencies elif [[ $OS == "NAME=\"Ubuntu\"" ]]; then apt update apt install -y $dependencies