From b2910edbb5114bc7e8ad0af5aeabe1636cdfaa12 Mon Sep 17 00:00:00 2001 From: appeasementPolitik <108810900+appeasementPolitik@users.noreply.github.com> Date: Wed, 28 Sep 2022 09:41:29 +0000 Subject: [PATCH 1/2] Make pacman passwordless in `yay` and `yay -Syu` These are the pacman processes that are spawned with both commands respectively. Can be found by looking at htop while calling yay --- larbs.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/larbs.sh b/larbs.sh index c7e5e58..a7a2cfd 100755 --- a/larbs.sh +++ b/larbs.sh @@ -307,7 +307,7 @@ EndSection' >/etc/X11/xorg.conf.d/40-libinput.conf # Allow wheel users to sudo with password and allow several system commands # (like `shutdown` to run without password). echo "%wheel ALL=(ALL:ALL) ALL" >/etc/sudoers.d/00-larbs-wheel-can-sudo -echo "%wheel ALL=(ALL:ALL) NOPASSWD: /usr/bin/shutdown,/usr/bin/reboot,/usr/bin/systemctl suspend,/usr/bin/wifi-menu,/usr/bin/mount,/usr/bin/umount,/usr/bin/pacman -Syu,/usr/bin/pacman -Syyu,/usr/bin/pacman -Syyu --noconfirm,/usr/bin/loadkeys,/usr/bin/yay,/usr/bin/pacman -Syyuw --noconfirm" >/etc/sudoers.d/01-larbs-cmds-without-password +echo "%wheel ALL=(ALL:ALL) NOPASSWD: /usr/bin/shutdown,/usr/bin/reboot,/usr/bin/systemctl suspend,/usr/bin/wifi-menu,/usr/bin/mount,/usr/bin/umount,/usr/bin/pacman -Syu,/usr/bin/pacman -Syyu,/usr/bin/pacman -Syyu --noconfirm,/usr/bin/loadkeys,/usr/bin/pacman -Syyuw --noconfirm,/usr/bin/pacman -S -u -y --config /etc/pacman.conf --,/usr/bin/pacman -S -y -u --config /etc/pacman.conf --" >/etc/sudoers.d/01-larbs-cmds-without-password # Last message! Install complete! finalize From f881b45029420c3e9b1b952431fb40cf08b894cc Mon Sep 17 00:00:00 2001 From: Luke Smith Date: Thu, 29 Sep 2022 10:22:00 -0400 Subject: [PATCH 2/2] normal libxft now patched --- larbs.sh | 5 ----- progs.csv | 1 - 2 files changed, 6 deletions(-) diff --git a/larbs.sh b/larbs.sh index c7e5e58..5f40c26 100755 --- a/larbs.sh +++ b/larbs.sh @@ -265,11 +265,6 @@ manualinstall yay || error "Failed to install AUR helper." # and all build dependencies are installed. installationloop -whiptail --title "LARBS Installation" \ - --infobox "Finally, installing the newest version of \`libxft\` to enable color emoji in suckless software without crashes." 8 70 -pacman -Qs libxft-git || - yes | sudo -u "$name" $aurhelper -S libxft-git >/dev/null 2>&1 - # Install the dotfiles in the user's home directory, but remove .git dir and # other unnecessary files. putgitrepo "$dotfilesrepo" "/home/$name" "$repobranch" diff --git a/progs.csv b/progs.csv index 9673aef..dbd7772 100644 --- a/progs.csv +++ b/progs.csv @@ -1,5 +1,4 @@ #TAG,NAME IN REPO (or git url),PURPOSE (should be a verb phrase to sound right while installing) -A,libxft-git,"is a FreeType-based font drawing library for X" ,xorg-server,"is the graphical server." ,xorg-xwininfo,"allows querying information about windows." ,xorg-xinit,"starts the graphical server."