diff --git a/user_arch.sh b/user_arch.sh index 9831dfc..218c3e3 100755 --- a/user_arch.sh +++ b/user_arch.sh @@ -32,13 +32,13 @@ usertest() { exit 1 fi - sudo pacman -Syu - sudo pacman --noconfirm -S base-devel + sudo -S pacman -Syu + sudo -S pacman --noconfirm -S base-devel } dev() { echo "Developer tools..." - sudo pacman --noconfirm -S neovim nodejs + sudo -S pacman --noconfirm -S neovim nodejs } @@ -51,20 +51,20 @@ sysinfo() { git clone https://github.com/dylanaraps/fff "$HOME/repos/fff" cd "$HOME/repos/pfetch" || exit 1; - sudo make install || exit 2; + sudo -S make install || exit 2; cd "$HOME" || exit 1; cd "$HOME/repos/neofetch" || exit 1; - sudo make install || exit 2; + sudo -S make install || exit 2; cd "$HOME" || exit 1; cd "$HOME/repos/fff" || exit 1; - sudo make install || exit 2; + sudo -S make install || exit 2; cd "$HOME" || exit 1; } shell() { - sudo pacman --noconfirm -S zsh tmux starship + sudo -S pacman --noconfirm -S zsh tmux starship } browsers() { @@ -72,15 +72,15 @@ browsers() { } torbrowser() { - sudo pacman --noconfirm -S torbrowser-launcher + sudo -S pacman --noconfirm -S torbrowser-launcher } meetings() { paru_exists paru --noconfirm -S skypeforlinux-stable-bin zoom # install mt - sudo curl -LJ https://github.com/junikimm717/mt/releases/download/33627ab/mt -o /usr/local/bin/mt - sudo chmod +x /usr/local/bin/mt + sudo -S curl -LJ https://github.com/junikimm717/mt/releases/download/33627ab/mt -o /usr/local/bin/mt + sudo -S chmod +x /usr/local/bin/mt } # neovim must be installed. @@ -112,7 +112,7 @@ dotfiles() { } graphical() { - sudo pacman --noconfirm -S xorg xorg xorg-server xorg-xinit xorg-fonts-misc \ + sudo -S pacman --noconfirm -S xorg xorg xorg-server xorg-xinit xorg-fonts-misc \ xclip nitrogen dmenu ttf-jetbrains-mono noto-fonts-emoji ttf-dejavu \ picom xclip kitty paru -S --noconfirm polybar cwm @@ -120,7 +120,7 @@ graphical() { } sound() { - sudo pacman --noconfirm -S pipewire-pulse + sudo -S pacman --noconfirm -S pipewire-pulse systemctl --user --now enable pipewire-pulse }