diff --git a/larbs.sh b/larbs.sh index 365bdd6..78df437 100755 --- a/larbs.sh +++ b/larbs.sh @@ -57,7 +57,7 @@ preinstallmsg() { \ adduserandpass() { \ # Adds user `$name` with password $pass1. dialog --infobox "Adding user \"$name\"..." 4 50 - useradd -m -G wheel -s /bin/zsh "$name" >/dev/null 2>&1 || + useradd -m -g wheel -s /bin/zsh "$name" >/dev/null 2>&1 || usermod -a -G wheel "$name" && mkdir -p /home/"$name" && chown "$name":wheel /home/"$name" export repodir="/home/$name/.local/src"; mkdir -p "$repodir"; chown -R "$name":wheel "$(dirname "$repodir")" echo "$name:$pass1" | chpasswd @@ -199,10 +199,10 @@ newperms "%wheel ALL=(ALL) NOPASSWD: ALL" # Make pacman colorful, concurrent downloads and Pacman eye-candy. grep -q "ILoveCandy" /etc/pacman.conf || sed -i "/#VerbosePkgLists/a ILoveCandy" /etc/pacman.conf -sed -i "s/^#ParallelDownloads.*$/ParallelDownloads = 5/;s/^#Color$/Color/" /etc/pacman.conf +sed -i "/^#ParallelDownloads/s/=.*/= 5/;s/^#Color$/Color/" /etc/pacman.conf # Use all cores for compilation. -sed -i "s/-j2/-j$(nproc)/;s/^#MAKEFLAGS/MAKEFLAGS/" /etc/makepkg.conf +sed -i "s/-j2/-j$(nproc)/;/^#MAKEFLAGS/s/^#//" /etc/makepkg.conf manualinstall yay || error "Failed to install AUR helper." @@ -235,6 +235,8 @@ systembeepoff # Make zsh the default shell for the user. chsh -s /bin/zsh "$name" >/dev/null 2>&1 sudo -u "$name" mkdir -p "/home/$name/.cache/zsh/" +sudo -u "$name" mkdir -p "/home/$name/.config/abook/" +sudo -u "$name" mkdir -p "/home/$name/.config/mpd/playlists/" # dbus UUID must be generated for Artix runit. dbus-uuidgen > /var/lib/dbus/machine-id