diff --git a/scripts/02_setup_programs.sh b/scripts/02_setup_programs.sh index ff14c0b..bba4434 100755 --- a/scripts/02_setup_programs.sh +++ b/scripts/02_setup_programs.sh @@ -16,6 +16,8 @@ sudo pacman -S --noconfirm ueberzug # ranger image previewer # nvim sudo pacman -S --noconfirm neovim +sudo pacman -S --noconfirm xclip + sudo pacman -S --noconfirm lazygit # lunarvim diff --git a/scripts/03_setup_gui_programs.sh b/scripts/03_setup_gui_programs.sh index 2d95518..cee026e 100755 --- a/scripts/03_setup_gui_programs.sh +++ b/scripts/03_setup_gui_programs.sh @@ -3,17 +3,32 @@ # GUI Programs # run the 02_setup_programs.sh first +installed() { + if command -v "$1" > /dev/null 2>&1 ; then + return 0 + fi + return 1 +} + # brave -paru -S --noconfirm brave-bin +if ! installed "brave" ; then + yay -S --noconfirm brave-bin +fi # obsidian -sudo pacman -S --noconfirm obsidian +if ! installed "obsidian" ; then + sudo pacman -S --noconfirm obsidian +fi # keepassxc -sudo pacman -S --noconfirm keepassxc +if ! installed "keepassxc" ; then + sudo pacman -S --noconfirm keepassxc +fi # syncthing -sudo pacman -S --noconfirm syncthing -systemctl --user enable syncthing -systemctl --user start syncthing +if ! installed "syncthing" ; then + sudo pacman -S --noconfirm syncthing + systemctl --user enable syncthing + systemctl --user start syncthing +fi diff --git a/scripts/04_setup_languages.sh b/scripts/04_setup_languages.sh index 0821c11..7fe570c 100755 --- a/scripts/04_setup_languages.sh +++ b/scripts/04_setup_languages.sh @@ -1,13 +1,26 @@ #!/bin/bash +installed() { + if command -v "$1" > /dev/null 2>&1 ; then + return 0 + fi + return 1 +} + # python -sudo pacman -S --noconfirm python python-pip +if ! installed "python" ; then + sudo pacman -S --noconfirm python python-pip +fi # node -sudo pacman -S --noconfirm nvm -source /usr/share/nvm/init-nvm.sh -nvm install node +if ! installed "node" ; then + yay -S --noconfirm nvm + source /usr/share/nvm/init-nvm.sh + nvm install node +fi -#sudo pacman -S --noconfirm rustup -rustup default stable +if ! installed "cargo" ; then + sudo pacman -S --noconfirm rustup + rustup default stable +fi